Plan a one-sample study

Choose a sample size for detecting a meaningful difference from a reference mean.

Guides · Basic statistics · 4 min read

Example: a sachet-fill sample size

Plan independent sachet-fill measurements to detect a 2 g difference from a reference mean, with an assumed SD of 4 g and 90% power.

Download the planning reference (CSV)

This is the same example used in Help. The CSV lists reference scenarios. Enter the selected planning values manually on Inputs; importing it does not configure this calculator. Use Open example in a practice copy in Help to prefill the inputs.

1. Create the workspace

In the sidebar, open Basic Statistics and choose Power & Sample Size. Create an analysis, name it, select New blank worksheet, then choose Create analysis.

2. Choose the study

On Inputs, choose One-sample t for Test and Sample size for Solve for. Enter 0.05 in Significance level (α) and choose Two-sided for Alternative hypothesis.

3. Enter the planning values

Enter one value in each field for this scenario. No worksheet columns are assigned.

Enter 4 in Standard deviation (σ).

Enter 2 in Mean differences.

Enter 0.9 in Target powers.

Power & Sample Size: Inputs with the example’s assignments and settings
Inputs with the selected test, quantity to calculate and active planning assumptions. View full-size image (opens in a new tab)

4. Run analysis

Choose Run analysis, then open Results.

5. Interpret results

  1. Check the planned study

    Plan independent sachet-fill measurements to detect a 2 g difference from a reference mean, with an assumed SD of 4 g and 90% power.

  2. Read the calculated plan

    The smallest planned sample is 44 sachets. Achieved power is 0.900031, just above the 0.9 target. With 43 sachets, power is 0.893050.

  3. Follow the power curve

    The curve uses 44 observations. At a difference of +2 g or −2 g, power is about 90%. Smaller differences toward zero are harder to detect.

    Power versus effect
    Power versus effect View full-size chart (opens in a new tab)
  4. Understand the assumptions

    Power is the chance that the planned test detects the specified difference when that difference is real, under the entered assumptions. It is not the chance that a hypothesis is true and does not guarantee a significant result. The method uses a one-sample noncentral t calculation with independent normal observations and an assumed population SD of 4 g. The reference mean itself is not estimated from a second sample here.

  5. Decide how to collect the sample

    Confirm that 2 g is the smallest difference worth detecting and that 4 g is a reasonable planning SD. Allow for unusable measurements when deciding how many sachets to collect.

More details: read each result section

Complete result tables use six significant digits, as in Help.

Power and sample size scenarios

Scenario links this row to its input values. Branch records a solved effect direction; a dash means it is not applicable. Sample size is per group for two-group plans; Total observations counts both groups. Mean difference or Comparison proportion is the effect being planned. Target power is the request; Achieved power is the calculated result. Power at preceding size checks one fewer observation per group. DF is the t-test degrees of freedom, where applicable. Status and Details record whether the scenario was calculated. The smallest planned sample is 44 sachets. Achieved power is 0.900031, just above the 0.9 target. With 43 sachets, power is 0.893050.

Power and sample size scenarios · 1 row
ScenarioBranchSample sizeTotal observationsMean differenceTarget powerAchieved powerPower at preceding sizeDFStatusDetails
1—444420.90.9000310.8930543ok—
  • Unavailable branches retain their status and input values. Pairs count two observations each. A preceding-size power is reported only when that size is valid.

Planning method

Method and Calibration identify the calculation used. Alpha 0.05 is the test significance level; Alternative two-sided includes both directions. Solve for names the quantity being calculated. Assumptions and Planning SD or Baseline proportion record what the result depends on. The method uses a one-sample noncentral t calculation with independent normal observations and an assumed population SD of 4 g. The reference mean itself is not estimated from a second sample here.

Planning method · 7 rows
SettingValue
MethodOne-sample t
Calibrationnoncentral-t-v1
Alpha0.05
Alternativetwo-sided
Solve forSample size
AssumptionsIndependent normal observations; estimated population SD.
Planning SD4
  • Results and curve points are captured with this run. Sample sizes are whole numbers; target power and achieved power are distinct.

Scenario input values

Scenario matches the numbered result row. Inputs records the active scenario values; these are planning assumptions, not observed measurements. Single-value inputs produce one scenario here.

Scenario input values · 1 row
ScenarioInputs
1{"delta":2,"power":0.9}

Captured power curve values

Each row gives a sample size, a mean difference or comparison proportion, and its calculated Power. These are all captured values behind the native chart. For two-group plans the size is per group. Read power between zero and one; 0.9 means 90%. The curve uses 44 observations. At a difference of +2 g or −2 g, power is about 90%. Smaller differences toward zero are harder to detect.

Captured power curve values · 61 rows
Sample sizeMean differencePower
44-2.50.981762
44-2.416670.974804
44-2.333330.965746
44-2.250.954168
44-2.166670.939633
44-2.083330.921717
44-20.900031
44-1.916670.874253
44-1.833330.844165
44-1.750.80968
44-1.666670.770866
44-1.583330.727969
44-1.50.681415
44-1.416670.631805
44-1.333330.579891
44-1.250.526551
44-1.166670.472738
44-1.083330.419435
44-10.367602
44-0.9166670.318127
44-0.8333330.271787
44-0.750.229213
44-0.6666670.19088
44-0.5833330.157098
44-0.50.128031
44-0.4166670.103714
44-0.3333330.0840861
44-0.250.0690308
44-0.1666670.058409
44-0.08333330.0520945
4400.05
440.08333330.0520945
440.1666670.058409
440.250.0690308
440.3333330.0840861
440.4166670.103714
440.50.128031
440.5833330.157098
440.6666670.19088
440.750.229213
440.8333330.271787
440.9166670.318127
4410.367602
441.083330.419435
441.166670.472738
441.250.526551
441.333330.579891
441.416670.631805
441.50.681415
441.583330.727969
441.666670.770866
441.750.80968
441.833330.844165
441.916670.874253
4420.900031
442.083330.921717
442.166670.939633
442.250.954168
442.333330.965746
442.416670.974804
442.50.981762
  • All captured curves are included in this table and its CSV export; the plot shows at most 12 selected sample sizes.

6. Create a report

Keep Power and sample size scenarios, Planning method, Scenario input values, the native Power versus effect chart and its complete captured-values table. Record the difference worth detecting, planning spread or proportions, sample allocation and method. The method uses a one-sample noncentral t calculation with independent normal observations and an assumed population SD of 4 g. The reference mean itself is not estimated from a second sample here.

Choose Add to report from the completed run. Open Choose individual items and advanced options to select tables and charts, then choose Add to draft. Hidden items stay in the saved analysis.

Name the report and add the purpose of the study and your interpretation. Choose Save, review Preview, then use Export → Download HTML. The example below contains the full selected content, including results beyond one screen.

Complete native output for this Help example, including applicable tables, charts and run notes. Report numbers use the app’s displayed precision. Exported charts are static. On narrow screens, scroll wide charts and tables sideways.
View example report: Plan a one-sample fill study

We use Microsoft Clarity to understand how visitors use this website, including session recordings and heatmaps. You can use the website without accepting analytics.

Your choice is saved in this browser for six months. Privacy notice

Current choice: Not chosen.