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.
Compare exact sample mean probabilities
Count every attainable mean with and without replacement, then check a threshold.
With replacement has the higher threshold probability.
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
Exact outcome ledger and CSV
| Exact mean | With | Without | At or above |
|---|---|---|---|
| 0 | 1 | 0 | No |
| 1 | 2 | 1 | No |
| 2 | 1 | 0 | No |
| 4 | 2 | 1 | No |
| 5 | 4 | 2 | No |
| 6 | 2 | 1 | No |
| 8 | 1 | 0 | Yes |
| 9 | 2 | 1 | Yes |
| 10 | 1 | 0 | Yes |
How to use this calculator
- Enter one value per population unit. Use commas, spaces or line breaks to separate values.
- Enter the number of units drawn for each sample and the threshold for the sample mean.
- Compare the two at-or-above probabilities and use the binned plot to inspect intervals.
- 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
Standard Deviation Calculator
Calculate sample or population standard deviation, variance, mean and extrema from complete decimal data. Preserve small differences and identify invalid entries.
Binomial Probability Calculator
Find exact, cumulative, or upper-tail binomial probabilities for repeated yes/no events.
Confidence Interval Calculator
Calculate a two-sided confidence interval for a mean using sample SD with Student t or known population SD with z. See the margin and standard error.
Sample Size Calculator
Determine the minimum sample size needed for statistically valid survey or experiment results.
