Sample Mean Distribution Calculator

Enter a finite population, a sample size and a threshold. This worksheet counts every attainable sample mean and compares how often it reaches the threshold under two sampling methods. Inspect both probability distributions, compare variability, and export the exact counts and fractional results. Equal recorded values can belong to different population units.

Finite population sampling

Compare exact sample mean probabilities

Count every attainable mean with and without replacement, then check a threshold.

With replacement has the higher threshold probability.

Population and sampling inputs

Enter one value per unit, separated by commas, spaces or line breaks.

With replacement · at or above
1/4 · 25%
Without replacement · at or above
1/6 · 16.66667%

Expected mean and standard error

Both methods have expected mean 5.

With replacement
2.915476 · variance 17/2
Without replacement
2.380476 · variance 17/3

Probability across sample-mean intervals

  • With replacement
  • Without replacement
  • Mean threshold

[0, 5/6)

With replacement
6.25% · 1 of 16
Without replacement
0% · 0 of 6
Each interval includes its lower bound. The final interval includes both bounds.
Exact outcome ledger and CSV
Exact outcome counts for both sampling methods
Exact meanWithWithoutAt or above
010No
121No
210No
421No
542No
621No
810Yes
921Yes
1010Yes

How to use this calculator

  1. Enter one value per population unit. Use commas, spaces or line breaks to separate values.
  2. Enter the number of units drawn for each sample and the threshold for the sample mean.
  3. Compare the two at-or-above probabilities and use the binned plot to inspect intervals.
  4. Open the outcome ledger to check exact fractions, or download the full table.

The Formula

The mathematical logic powering this calculation is:

The population has N entered units and each sample has n draws. A sample mean is its sum divided by n. Entered decimals are stored as integer hundredths, so both sums and comparisons to the threshold are exact.

With replacement, count each ordered sequence of n draws from N equal units. There are Nⁿ sequences. For each count already at sum s, add that count to s + v for each possible next value v, accounting for repeated values’ frequencies.

Without replacement, each set of n distinct population positions has the same probability. There are C(N,n) sets. Consider population positions one at a time, adding each position exactly once to previously counted smaller subsets. Accumulate counts by subset size and sum. Entries with the same value still occupy separate positions.

The threshold probability adds counts whose sum is at least n times the entered threshold and divides by the relevant total. Each method’s variance is E[mean²] − E[mean]² using the exact distribution. Standard error is the square root. The shared plot groups outcomes into at most 12 equal-width bins. Each bin includes its lower bound and the last bin also includes its upper bound. The outcome ledger and CSV retain exact means and counts.

Use 2 to 12 units, values from −1,000,000 to 1,000,000 with up to two decimals, and 1 to 6 draws without exceeding the number of units. This comparison uses a supplied complete finite population and simple random sampling.

Worked Example

If you input:

  • Population: 0, 2, 8, 10
  • Draws per sample: 2
  • Mean threshold: 7

Result:

With replacement, four of the 16 ordered draws give a mean at least 7, for probability 1/4. Without replacement, one of the six distinct subsets reaches 7, for probability 1/6.

Frequently Asked Questions

What is a sampling distribution of the mean?

It describes how the average would vary across all possible samples of the chosen size under the specified sampling method.

Why does a duplicate population value appear more than once?

Each entry is a separate population unit. Two units can share a value, and both can be selected together in a sample without replacement.

Does a mean equal to my threshold count?

Yes. The displayed probability includes sample means equal to the threshold.

Why does the without-replacement distribution narrow?

Sampling across distinct units reduces variability relative to repeated draws from the same finite population. A complete census always gives the population mean exactly.

Where are the exact outcomes behind each plotted bar?

The chart groups nearby means. The outcome ledger and downloadable CSV show each attainable mean and its count under each method.

Similar Calculators