Hypothesis Testing for Beginners: P-Values and Statistical Significance
A student researcher finds an average assessment score of 68 out of 100 for 25 fictional learners. A stipulated benchmark is 65. The three-point difference looks encouraging, but is it large relative to the variation among students? Could a sample mean at least this far from 65 occur even if the target population mean really were 65? Before declaring a discovery, the researcher needs a method that accounts for sampling uncertainty, the study design and the question actually being asked.
This is the purpose of statistical hypothesis testing: to evaluate how compatible observed data are with a clearly specified statistical model or hypothesis. In this guide you will calculate the complete one-sample t-test, learn what a p-value does and does not mean, construct a confidence interval, compare one-sided and two-sided alternatives, and understand Type I and II errors, power and statistical versus practical significance. You will also learn to choose between paired, independent-samples and exact binomial tests rather than treating every dataset as one generic problem.
The 25-number example uses the precise fictional scores 53, 54, 55, 56, 57, 59, 59, 60, 61, 62, 63, 65, 68, 71, 73, 74, 75, 76, 77, 77, 79, 80, 81, 82 and 83. After verifying the mathematics, you will work through a separate reproducible 240-record synthetic investigation, Excel and Google Sheets-compatible calculations, a Python notebook, ten capstone tasks and thirty original practice questions. These activities support an international audience; no findings are claimed about a real school, teaching programme or national examination.
Main result, verified in SciPy: n=25, sum=1,700, sample mean 68, sample SD 10, standard error 2, t(24)=1.50, two-sided p=0.1466556461, and 95% t confidence interval 63.87–72.13. At the illustrative prespecified α=0.05, fail to reject H₀: μ=65. This does not prove that μ equals 65 or that the population is educationally equivalent to the reference.
What is hypothesis testing?
A statistical hypothesis is a claim about a population parameter, a distribution or another property of a specified model. A hypothesis test defines a statistic calculated from sample data, determines how that statistic would vary under a reference null model, and reports how unusual the observed statistic is under that model. The result is conditional on the study design and assumptions. It is not a machine that turns a number into a certainty about scientific truth.
Research questions arise in educational assessment, laboratory science, quality control, surveys, digital experiments, environmental monitoring and health research. In each setting, the meaning of a p-value depends on the target population, valid sampling or assignment, outcome type, chosen comparison and whether important dependencies have been respected. A numerically correct calculation based on biased observations can still support a misleading population claim. That is why analysis begins by specifying the research question—not with selecting a function in Excel.

Define the population, sample, parameter and statistic
A population is the group of units to which the research question refers; a sample is the set observed. A parameter describes the population, such as an unknown mean μ; a statistic is calculated from a sample, such as x̄=68. Our hypothetical researcher wishes to investigate whether the mean in a specified population of comparable learners differs from 65. But the scores were deliberately constructed for teaching, not randomly sampled from that population. The test illustrates mathematics, not genuine population inference.
If an authentic study used a convenience sample, systematic differences in who participated could bias its estimated mean even with hundreds of observations. Random sampling variability is only one source of uncertainty; nonresponse, measurement errors and selection mechanisms may matter as much or more. The earlier Descriptive vs. Inferential Statistics lesson reviews how sample summaries relate to wider inference, while the Variance and Standard Deviation guide explains the observed spread.
Null hypothesis and alternative hypothesis
The null hypothesis H₀ specifies the statistical claim whose assumed distribution is used as a reference for the test. For this study, H₀: μ=65. The alternative H₁ specifies the competing claim; because the researcher asks whether the mean is different, use H₁: μ≠65. This is a two-sided test, appropriate when either higher or lower means would matter under the original research question.
A null is not universally “nothing matters.” Depending on the problem it may state a precise population mean, equality of two rates, no association or another defined restriction. An alternative can be μ>65, μ<65 or μ≠65 depending on what was decided to be scientifically relevant in advance. Changing the alternative after seeing a promising sample mean to obtain a smaller p-value undermines a confirmatory interpretation. Exploratory alternatives are worth investigating, but they should be labelled exploratory.
One-sided versus two-sided hypotheses
| Research question | Alternative | Relevant evidence | Tail direction |
|---|---|---|---|
| Is the population mean greater than 65? | H₁: μ>65 | Unusually high statistic | Right tail |
| Is it lower than 65? | H₁: μ<65 | Unusually low statistic | Left tail |
| Is it different in either direction? | H₁: μ≠65 | Either extreme direction | Two tails |

A one-sided test is not automatically more rigorous or more powerful for every research purpose. It sacrifices sensitivity to differences in the untested direction, and the direction must be substantively defensible. For our example the sign of the observed difference is positive, but the preselected two-sided question remains the correct one: what is the evidence of any departure from the benchmark? Do not substitute the smaller one-sided tail probability simply because the sample happens to be above 65.
Ten essential steps in the testing process
| Step | What the student should do |
|---|---|
| 1. Research question | Specify the outcome and why a difference matters. |
| 2. Population and parameter | Define target learners and their mean μ. |
| 3. Hypotheses | H₀: μ=65; H₁: μ≠65. |
| 4. Significance level | Choose an appropriate α before inspecting results. |
| 5. Study design | Review how sample observations were selected. |
| 6. Select test | One-sample t-test under suitable assumptions. |
| 7. Check assumptions | Investigate independence, numeric scale, outliers and approximate reference validity. |
| 8. Calculate | Find sample statistics, t and model-based p-value. |
| 9. Evaluate | Use effect size, interval and uncertainty, not p alone. |
| 10. Report | Give a qualified conclusion and disclose limitations. |
What is the significance level alpha?
Alpha (α) is a prespecified rejection threshold, often illustrated with 0.05, 0.01 or 0.10. In a properly calibrated test, α bounds or specifies the long-run probability of a Type I error—rejecting a true null—under the relevant model conditions. It is not the probability that a particular published result is false. The choice of threshold should consider consequences of errors and field-specific standards; 0.05 is a useful teaching convention, not a universal scientific law.
A finding with p=0.049 and another with p=0.051 should not automatically be described as scientifically opposite worlds. Their numerical evidence may be very similar. Whenever possible report the actual p-value, effect estimate and compatible confidence interval, alongside study design and uncertainty. Moving the α threshold after seeing the data can turn a planned analysis into undisclosed selection. Such choices should be documented transparently rather than hidden behind a binary label.
A test statistic needs the correct null distribution
A test statistic condenses the relevant sample evidence into a quantity whose behavior under the null hypothesis can be described. Many introductory statistics use “observed estimate minus null value, divided by standard error,” but that is not a universal formula for chi-square, exact binomial or all other tests. The null distribution describes the statistic’s possible values under H₀ together with the other model assumptions. Student’s t distributions, normal curves, exact discrete distributions and randomization distributions play different roles, so they must not be casually interchanged.

What does a p-value actually mean?
A p-value is the probability, calculated under a specified null hypothesis and statistical model, of obtaining a test statistic at least as extreme as the observed value according to the chosen alternative. Extremeness might mean large positive values, large negative values, or both tails. This definition contains two important conditions: the null reference is assumed for the calculation, and the test and its tail rule must be defined. A p-value does not independently state which hypothesis is true.
For our two-sided t-test the observed t=+1.5, and the relevant extreme statistics fall at or beyond +1.5 and −1.5 on a Student t distribution with 24 degrees of freedom. Their combined area is approximately 0.1466556461. If H₀ and the test assumptions hold, a statistic at least this extreme arises with that model-based probability. This is not a 14.67% probability that μ=65 and not a 14.67% probability that the particular conclusion is wrong.

Ten things a p-value does not tell you
A p-value is not (1) the probability that H₀ is true, (2) the probability H₁ is true, (3) the probability data were generated by chance alone, (4) the chance a researcher’s conclusion is false, (5) a direct effect-size measure, (6) a measure of practical importance, (7) a replication guarantee, (8) a causal probability, (9) a complete summary of uncertainty, or (10) a substitute for sampling and measurement quality. The American Statistical Association statement explicitly warns about several of these common misconceptions. Its statistical-significance and replicability discussion also emphasizes context and additional information.
If a report says p=0.03, the defensible description is that the observed test statistic, or one more extreme under the selected rule, would have a 3% probability under the specified null model and assumptions. It is not valid to announce a 97% probability that the research hypothesis is correct. Similarly, a p-value above 0.05 does not prove that there is no real difference: the sample may lack precision, the effect may be smaller, or assumptions may not support the chosen test.
One-sample Student t-test: when and why to use it
A one-sample t-test compares a numerical sample mean with a hypothesized population mean when the population standard deviation is not known and the sample SD is used to estimate uncertainty, under suitable model assumptions. Its statistic is t=(x̄−μ₀)/(s/√n), with df=n−1 for the conventional test. The denominator is the estimated standard error of the mean, which generally decreases as independently sampled observations accumulate, not the standard deviation describing individual students.
Assumptions matter. Observations should arise from a study design appropriate for the target inference, and independence must be plausible or dependence appropriately modelled. The outcome should be numerical, and for small samples the sampling distribution of the mean should support a t-based approximation; extremely heavy tails or influential observations can make it unreliable. An approximately normal population provides a classic exact setting. The statement “n exceeds 30” is not a universal license to ignore severe dependence, selection bias or distributions that defeat a normal approximation.
The complete 25-score worked calculation
Our source contains exactly 25 scores summing to 1,700. Divide by 25 to obtain x̄=68. Subtract 68 from each score, square the deviations and sum. Because the sample standard deviation is exactly s=10, the total squared deviations equal (n−1)s² = 24×100 = 2,400 squared score points. The separate deviation worksheet supplied with the Excel workbook lets students verify this directly, avoiding reliance on a single summary statistic.
Hypotheses: H₀: μ=65 versus H₁: μ≠65
Sample n = 25, sum = 1700
Sample mean x̄ = 1700/25 = 68
Sample SD s = sqrt(2400/(25−1)) = 10
Estimated SE = s/sqrt(n) = 10/5 = 2
Test statistic t = (68−65)/2 = +1.5
Degrees of freedom df = 25−1 = 24
Two-sided p = 2 × P(T₂₄ ≥ 1.5) ≈ 0.1466556461
The observed difference of three points is therefore 1.5 estimated standard errors above the stipulated null value. This calculation shows how to translate a raw-unit difference into a reference statistic. The number 1.5 is not a standard normal z-score here: because the population SD is unknown and estimated from only 25 observations, the conventional reference is Student’s t with 24 degrees of freedom. Its heavier tails matter when calculating the two-sided probability.
P-value approach versus the critical-value approach
With an illustrative prespecified α=0.05, compare the exact two-sided p-value to 0.05: 0.1466556461 > 0.05, so fail to reject H₀. The equivalent critical-value approach uses the positive 97.5th percentile of Student t with df=24: t critical≈2.06389856. Reject only for t≤−2.0639 or t≥+2.0639. Because |1.5| is smaller, the observed statistic falls within the non-rejection region. These procedures give the same decision because they use the same test, tails, assumptions and α.

Why failing to reject is not accepting the null
“Fail to reject H₀” means the observed result does not cross the chosen statistical rejection criterion under the method used. It does not prove μ=65, demonstrate that any programme is ineffective, or establish equivalence. A genuine small difference, substantial variability, limited sample size, measurement error, inappropriate test or biased sample could each contribute to a non-significant result. To establish equivalence or noninferiority, researchers generally need a different design with a prespecified scientifically justified margin and appropriate statistical procedure.
An informative report therefore gives the observed estimate and its uncertainty. For this fictional 25-score example, the sample mean is 68, three points above 65, with uncertainty wide enough that differences on either side of the reference remain plausible under the model. A statement such as “the sample showed no difference” would conceal the observed three-point estimate. The test decision is only one part of the interpretation.
Confidence intervals: describe uncertainty in the estimate
A two-sided 95% Student t confidence interval for the mean is x̄ ± t critical×SE. With x̄=68, SE=2 and t critical≈2.0639, the lower endpoint is 68−4.127797≈63.8722; the upper endpoint is 68+4.127797≈72.1278. Because the null benchmark 65 lies inside this interval, the associated two-sided 5% t-test does not reject H₀. That agreement requires compatible methods and assumptions; arbitrary intervals and tests do not always correspond.
95% t critical (df=24) ≈ 2.0638985616
Margin = 2.0638985616 × 2 = 4.1277971233
95% CI = 68 ± 4.1277971233
= [63.8722028767, 72.1277971233]

A frequentist confidence procedure has a long-run coverage interpretation: if the procedure is repeated under suitable conditions, about 95% of resulting intervals include the fixed true parameter. It does not assign a 95% posterior probability to the fixed μ lying in this particular observed interval. Confidence intervals additionally show a range of parameter values compatible with the model and can help students discuss practical relevance rather than relying on a yes/no rejection label.
Statistical significance versus practical significance
A result is often called statistically significant when its p-value meets the prespecified testing threshold. It is not automatically scientifically important. Suppose a hypothetical enormous study estimates an average improvement of only 0.2 score points very precisely: it may produce a small p-value even though the difference is negligible for the educational decision. Conversely, a five-point sample difference might matter to learners but be estimated too imprecisely in a small study to reach a chosen threshold. Researchers should report magnitude, uncertainty, costs and context together.
For our example the raw mean difference is 68−65=3 points. A simple one-sample standardized mean difference is d=(68−65)/10=0.30 sample SD units. This helps communicate scale without changing the raw-score result. But standardized magnitudes are not universally labelled small, medium or important in every field. They depend on assessment reliability, population variation and consequences. A standardized observational difference is also not automatically an effect caused by a teaching intervention.
Type I and Type II errors
A Type I error occurs when a true null hypothesis is rejected. If the target population’s true mean were 65, repeated properly calibrated tests with α=0.05 would falsely reject roughly 5% of the time in the relevant long-run model. This is a feature of the procedure, not the probability that a particular significant result is false. A Type II error occurs when the test does not reject a null that is actually false. Its probability β depends on the particular true alternative, effect size, variability, sample size and design.
| Actual state | Reject H₀ | Fail to reject H₀ |
|---|---|---|
| H₀ true | Type I error | Correct non-rejection |
| H₀ false | Correct rejection under tested alternative | Type II error |

Statistical power and study planning
Power = 1−β is the probability of rejecting H₀ for a specified alternative when that alternative is true under the chosen model and study design. It depends on the effect being sought, sample size, population variability, test direction and significance threshold. Researchers use prospective power calculations to help plan studies with enough precision to detect effects worth investigating. Post-hoc observed p-values do not provide a meaningful universal estimate of the study’s prospective power.
To illustrate power transparently, consider a theoretical two-sided one-sample t-test at α=0.05 with true standardized mean difference d=0.30. Under a noncentral t model, increasing independent sample size generally increases power for that fixed alternative. The illustrated curve is a model-based calculation, not the success rate of actual classrooms. Bigger datasets reduce certain forms of random uncertainty, but cannot repair systematic selection, misleading outcome definitions or unmeasured confounding.

Z-test versus t-test: choose from the model, not a fixed sample-size slogan
A one-sample z-test in a common textbook setting uses a known population SD and a justified normal reference for the estimator, while a conventional one-sample t-test uses the sample SD to estimate unknown population variability with a Student t reference under appropriate conditions. Large-sample approximations are useful in many circumstances, but the rule “large samples use z and small samples use t” oversimplifies the actual assumptions. The sample design, estimator, data-generating mechanism and availability of population SD information determine a defensible test.
Paired t-test: the same units measured twice
When the same learner is measured at baseline and follow-up, the observations are paired. Compute the difference D for each student: follow-up minus baseline. A paired t-test is an ordinary one-sample t-test on these matched differences, testing H₀: μD=0 against a chosen alternative. The pairing can reduce irrelevant between-person variation, but valid inference still requires suitable assumptions about differences and independence across pairs. Treating baseline and follow-up values as if they came from unrelated learners misrepresents the design and can distort uncertainty.
A before-and-after difference does not automatically identify a programme’s causal effect. Maturation, external events, practice effects, selection and changed assessment difficulty could explain part of the change. In the 240-record fictional dataset, the student-level observations were algorithmically generated with documented baseline and follow-up values and self-selected study-support participation. It is deliberately not claimed to be a randomized experiment or evidence of real benefits.
Welch independent-samples t-test
Two unrelated groups may be compared using an independent-samples test. Welch’s t-test is a common choice when group variances should not automatically be assumed equal, with a test statistic and approximate degrees of freedom that account for separately estimated variances. In SciPy, ttest_ind(group_a,group_b,equal_var=False) selects Welch’s method. This does not eliminate sampling bias or make self-selected group membership causal. Distinct research questions require separate planned analyses; selecting whichever test produces the smallest p-value is not good practice.
An exact binomial hypothesis test for eight successes out of ten
For ten independent binary trials and H₀: p=0.50, suppose eight successes are observed. The exact two-sided binomial test from SciPy has p=0.109375. For a separately justified, prespecified right-sided alternative H₁:p>0.50, the one-sided value is 0.0546875. Both exceed 0.05, so neither rejects at that threshold. The difference illustrates why direction matters. With asymmetric discrete models, definitions of two-sided extremeness can differ, and blindly doubling a one-sided result is not a universal rule.

When is a chi-square test appropriate?
Chi-square methods address certain questions about categorical counts, not the mean of an ordinary numerical score. A goodness-of-fit test compares observed categories with specified expected category frequencies, while a test of independence examines association in a contingency table. Both require appropriate sampling and expected-count conditions; when these are too sparse, exact alternatives or other justified models may be preferable. This guide introduces the purpose only, because full contingency-table procedures deserve their own worked tutorial.
A beginner’s hypothesis-test selection table
| Question and data | Common candidate test | Main design check |
|---|---|---|
| Numerical sample mean versus fixed μ₀, SD unknown | One-sample t-test | Independent observations; mean sampling assumptions |
| Numerical mean with known population SD, justified reference | One-sample z-test | Known σ and appropriate sampling model |
| Same units before and after | Paired t-test | Correct matching; differences across pairs |
| Distinct groups’ numerical means | Welch independent t-test | Group independence, numerical response |
| Success count in fixed binary trials | Exact binomial test | Independent Bernoulli trials under H₀ |
| Association in categorical count table | Chi-square independence test | Sampling and expected frequency checks |
Multiple testing can inflate false-positive risk
If twenty independent tests are performed, all twenty null hypotheses are true, and each has a 5% false-rejection chance, the probability of at least one false rejection is 1−0.95²⁰≈0.6415141, or 64.15%. That exact figure requires the stated independence assumption; correlated tests need different treatment. Prespecifying a primary outcome, correcting for multiplicity and reporting every planned analysis help prevent cherry-picking. Bonferroni adjustments target familywise error; false-discovery-rate procedures address a related but different objective.

P-hacking, replication and reproducibility
P-hacking refers to undisclosed analysis or reporting choices that disproportionately favour small p-values: trying many outcomes, repeatedly inspecting data until a threshold is crossed, selectively excluding observations or changing the alternative after seeing results. Exploratory work is valuable when its nature and scope are disclosed honestly. Good practice includes prespecified confirmatory questions, transparent exclusions, complete reporting, sensitivity checks and appropriate correction for multiple comparisons.
Under the convention used here, computational reproducibility means another person can obtain the same calculations from shared code, data, versions and instructions; replication studies the question using new observations. Fields sometimes vary in terminology, so researchers should explain what they mean. Reproducing an erroneous or biased result does not make its scientific inference valid. Clear documentation helps others audit both the mathematics and the research choices.
The 240-record fictional research project
The companion project, Global Learning Research — Hypothesis Testing Practice Dataset, uses 240 unique StudentCodes generated with NumPy default_rng(80080). It records fictional level, region, baseline and follow-up assessment scores, self-selected support participation, weekly study hours, completion status, cohort and research group. Exactly 24 follow-up measurements are missing, leaving 216 complete paired cases. A missing follow-up is not a zero score. Since the data were generated algorithmically, they cannot provide evidence about actual learners or any real programme.
The sample summaries are reproducible: across all 240 baseline observations the mean is 65.7846 and sample SD is 10.9517; among the 216 complete follow-ups the mean is 67.7361 and sample SD is 12.7921. One-sample testing of the complete follow-up outcomes against the separately stipulated reference 65 gives t(215)=3.1435, two-sided p≈0.001905. This is a different sample and statistical question from the introductory 25-score example, so the results must not be blended or used to rewrite its original non-significant conclusion.
Paired changes and Welch group comparisons in the project
For the 216 matched students with both scores, compute follow-up minus baseline for each StudentCode. The average change is +2.0648 points, with sample SD of differences 6.2548. The paired test gives t(215)=4.8517, p≈0.000002349, and a 95% interval for the mean difference of approximately 1.2260–2.9037 points. That is a statistical comparison of fictional timepoints, not evidence that study-support participation caused the change. Time, learning, assessment difficulty and self-selection could all matter in real observational research.
A separate Welch comparison of follow-up outcomes across fictional Group A and Group B uses 105 and 111 complete students. The group means are 68.7562 and 66.7712, respectively. The computed comparison gives t≈1.1381, approximate df≈210.049, two-sided p≈0.25639 and a 95% interval for A minus B of roughly −1.4534–5.4234 points. This interval contains zero and the test does not reject an equal-mean null at 0.05. The three tests have different estimands and assumptions; selecting the smallest p after the fact would be a multiple-analysis reporting problem.

Research-design concerns that statistics cannot automatically repair
Convenience sampling, nonresponse, clustered observations, unequal assessment difficulty, measurement error and confounding can undermine an otherwise correctly implemented test. The 24 missing follow-ups illustrate the need to document how missingness arose and whether complete-case analysis may be biased. Removing records without explanation or converting missing data to zero changes the question and potentially the estimate. Repeated measures should remain matched by StudentCode. If students self-select support services, their observed score differences cannot be interpreted as randomized treatment effects.
Calculate the one-sample t-test in Microsoft Excel
Enter the 25 provided scores in B2:B26. The primary functions are AVERAGE for the sample mean, STDEV.S for the conventional sample SD, COUNT for sample size and SQRT for the standard-error denominator. Use T.DIST.2T for the two-tailed t probability from the absolute test statistic and its degrees of freedom, and T.INV.2T for the two-sided critical value. Microsoft’s official T.DIST.2T documentation confirms the function’s purpose.
=AVERAGE(B2:B26) → 68
=STDEV.S(B2:B26) → 10
=COUNT(B2:B26) → 25
=(AVERAGE(B2:B26)-65)/(STDEV.S(B2:B26)/SQRT(COUNT(B2:B26)))
=T.DIST.2T(ABS(1.5),24) → 0.1466556461
=T.INV.2T(0.05,24) → 2.0638985616
The workbook contains live formulas for mean, SD, sample count, SE, t, degrees of freedom and interval arithmetic. Its independent Python-verified p and critical-value references are included because the workbook authoring engine did not support native evaluation of T.DIST.2T and T.INV.2T. Fully executable Excel formulas are supplied in the workbook for users to copy into their installed spreadsheet app. If source scores are edited, those reference values must be recalculated in Excel or Sheets rather than assumed to update by themselves. Excel’s T.TEST function is not a direct one-sample mean-versus-constant calculation without a justified equivalent data construction.
Google Sheets: the same statistic, with careful function choices
Google Sheets supports AVERAGE, sample STDEV, COUNT, SQRT, T.DIST.2T and T.INV.2T according to its official function reference. The syntax mirrors the Excel example, subject to locale-based decimal and argument separators. First verify that every imported score is a number, that there are 25 valid values and that the test uses df=24. The downloadable XLSX is import-compatible; it has not been run inside the native online Google Sheets service. It should not be mistaken for a verified cloud document.
Python and SciPy: execute and verify the one-sample test
Python makes the reference calculation transparent. Convert the scores to a numerical NumPy array, explicitly use ddof=1 when displaying the sample SD, and call SciPy’s ttest_1samp with popmean=65 and alternative="two-sided". The output includes the statistic, p-value and degrees of freedom, while current SciPy implementations expose a compatible confidence interval method. The following core example uses the exact supplied values and was executed locally; the reproducible notebook also contains paired, Welch, binomial and power examples.
import numpy as np
from scipy import stats
scores=np.array([53,54,55,56,57,59,59,60,61,62,63,65,68,
71,73,74,75,76,77,77,79,80,81,82,83])
r=stats.ttest_1samp(scores,popmean=65,alternative="two-sided")
print(scores.mean(), scores.std(ddof=1)) # 68.0, 10.0
print(r.statistic,r.pvalue,r.df) # 1.5, .1466556461, 24
print(r.confidence_interval(.95)) # about 63.87 to 72.13
SciPy tests for the three research designs
For paired observations, use stats.ttest_rel(followup,baseline) on matched numeric arrays of complete cases. For unrelated groups, stats.ttest_ind(group_a,group_b,equal_var=False) performs Welch’s comparison. For a binomial success count, stats.binomtest(k=8,n=10,p=0.5,alternative="two-sided") calculates an exact model-based probability. These function choices differ because the underlying outcome and study design differ. Test selection cannot be automated solely by comparing which returned p-value is smallest.
A responsible research report is more than one p-value
A clear write-up states the objective, sampling or assignment method, population and outcome, hypotheses, planned test, assumptions, observed estimates, variability, test statistic, degrees of freedom where relevant, numerical p-value, compatible confidence interval, effect size and limitations. For the 25-score example, it is defensible to write: “A two-sided one-sample t-test of the fictional scores against 65 gave t(24)=1.50, p≈0.147, with mean=68 and 95% CI [63.87,72.13]. The result did not meet the chosen 5% rejection threshold.” The phrase “There was no difference” is not an equivalent conclusion.

Ten-question capstone: Evaluating fictional student assessment evidence
Use the downloadable 240-record synthetic CSV and its reproducibility notebook. Every answer should state the research question, the data used, the test assumptions, a verified numerical result and what the result cannot establish. The 24 unavailable follow-up scores must remain missing; do not silently replace them with zeros. The companion capstone PDF and editable Word template provide additional writing space and a complete responsible-reporting framework.
Capstone 1 — Define the objective and target
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Compare a fictional population mean with the stipulated 65-point reference. Describe why generated rows do not establish real population sampling. The synthetic design does not establish real-world causal claims.
Capstone 2 — Audit the research file
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
240 unique codes, 216 complete paired follow-ups and 24 missing follow-ups; baseline mean across all 240 is 65.7846. The synthetic design does not establish real-world causal claims.
Capstone 3 — Choose suitable hypotheses
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
For a complete follow-up one-sample test: H₀: μ=65 and H₁: μ≠65, with a prespecified α and assumptions. The synthetic design does not establish real-world causal claims.
Capstone 4 — Select designs and tests
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
One-sample t against benchmark; paired t for matched follow-up minus baseline; Welch t for independent Group A versus B. The synthetic design does not establish real-world causal claims.
Capstone 5 — Compute a one-sample result
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Complete follow-up n=216; t(215)=3.1435 and p≈0.0019048, a different result from the initial 25-score exercise. The synthetic design does not establish real-world causal claims.
Capstone 6 — Calculate paired score changes
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Mean matched difference +2.0648, SD differences 6.2548; t(215)=4.8517, p≈0.000002349. The synthetic design does not establish real-world causal claims.
Capstone 7 — Report a compatible interval
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
The 95% paired difference CI is approximately [1.2260,2.9037] points; it is an estimate, not an exact treatment effect. The synthetic design does not establish real-world causal claims.
Capstone 8 — Compare independent groups
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Welch nA=105,nB=111, t≈1.1381, df≈210.049, p≈0.25639; CI A−B≈[−1.4534,5.4234]. The synthetic design does not establish real-world causal claims.
Capstone 9 — Assess design threats
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Discuss group self-selection, follow-up missingness, dependence, confounding, measurement quality and multiple comparisons. The synthetic design does not establish real-world causal claims.
Capstone 10 — Write a full findings report
Use the project source, justify the statistical procedure and write a testable conclusion.
Reveal verified reference
Include objective, sample, hypotheses, method, estimates, t and df, p, intervals, effect magnitude and explicit fictional-data caveats. The synthetic design does not establish real-world causal claims.
Thirty original practice questions with hidden hints and solutions
Level 1 (Questions 1–10) checks foundational concepts; Level 2 (11–20) tests mathematical calculations and test decisions; Level 3 (21–30) asks you to choose tests, reason about research integrity and write cautious conclusions. Each answer is initially collapsed, with a separate hint, so students can attempt it independently. One correctly answered question earns one point toward a 30-point self-assessment; this is not an official grading scale. The printable questions and full answer guide are also included in the resource package.
Level 1 — Foundations: Questions 1–10
Question 1: Define a hypothesis test
What is its purpose?
Show hint
Compare data with a null model.
Show worked answer
Verified answer: Evaluate data compatibility with H₀ and statistical assumptions; it does not prove truth.
Common error: It is not a certainty machine.
Question 2: Null hypothesis
Write H₀ for mean benchmark 65.
Show hint
Use population μ.
Show worked answer
Verified answer: H₀: μ=65.
Common error: Do not put sample x̄ in the null.
Question 3: Alternative hypothesis
State the two-sided alternative.
Show hint
Use unequal.
Show worked answer
Verified answer: H₁: μ≠65.
Common error: Direction must be chosen before observing results.
Question 4: Parameter
Identify the unknown population quantity.
Show hint
Population rather than sample.
Show worked answer
Verified answer: The target population mean μ.
Common error: x̄ is a statistic.
Question 5: Statistic
Calculate mean of the exact 25 scores.
Show hint
Sum 1700, n25.
Show worked answer
Verified answer: x̄=1700/25=68 points.
Common error: Don’t confuse 68 with μ₀=65.
Question 6: Significance level
Interpret α=0.05.
Show hint
Long-run Type I error.
Show worked answer
Verified answer: A calibrated 5% false-rejection rate under a true null and assumptions.
Common error: Not a 5% chance H₀ is true.
Question 7: P-value
Explain p≈0.1467.
Show hint
Null distribution conditional.
Show worked answer
Verified answer: P(at least as extreme test statistic under H₀)=0.1467.
Common error: Not the probability H₀ is true.
Question 8: Test direction
Distinguish μ>65 from μ≠65.
Show hint
One versus two tails.
Show worked answer
Verified answer: First is right-sided; second is two-sided.
Common error: Do not choose after seeing sign.
Question 9: P-value interpretation
If p=.03 and α=.05, what follows?
Show hint
Rejection threshold.
Show worked answer
Verified answer: Meets rejection rule, but not proof of causation or importance.
Common error: Not 97% certain H₁ is true.
Question 10: Non-rejection
Does p=.1467 prove μ=65?
Show hint
Consider uncertainty.
Show worked answer
Verified answer: No; insufficient evidence to reject at α=.05.
Common error: Not proof of equivalence.
Level 2 — Calculations: Questions 11–20
Question 11: Mean
Find sum and mean of original scores.
Show hint
25 rows.
Show worked answer
Verified answer: Sum=1700; x̄=68.
Common error: Use all repeated entries.
Question 12: Standard error
For s=10,n=25 find SE.
Show hint
s/√n.
Show worked answer
Verified answer: SE=10/5=2.
Common error: SE differs from individual SD.
Question 13: t statistic
Given x̄68, μ₀65, SE2 calculate t.
Show hint
Difference divided by SE.
Show worked answer
Verified answer: t=(68−65)/2=1.5.
Common error: Retain correct sign.
Question 14: Degrees of freedom
For n25 one-sample t, find df.
Show hint
n−1.
Show worked answer
Verified answer: df=24.
Common error: Not 25.
Question 15: Two-sided t p
For t=1.5 and df24 find p.
Show hint
Both Student t tails.
Show worked answer
Verified answer: p=2×t.sf(1.5,24)=0.1466556461.
Common error: Not a standard normal reference.
Question 16: Statistical decision
Compare p=.1467 to α=.05.
Show hint
p is larger.
Show worked answer
Verified answer: Fail to reject H₀.
Common error: Don’t say accept as proven.
Question 17: Critical values
For df24, α=.05 two-sided, ±2.0639; assess t1.5.
Show hint
Compare |t|.
Show worked answer
Verified answer: |1.5|<2.0639; fail to reject.
Common error: Use appropriate df and two tails.
Question 18: 95% interval
Mean68 SE2 tcrit2.0639. Find endpoints.
Show hint
Mean ± margin.
Show worked answer
Verified answer: 68±4.1278≈[63.87,72.13].
Common error: Includes μ₀=65.
Question 19: Effect size
Compute d for x̄68,μ₀65,s10.
Show hint
Difference / SD.
Show worked answer
Verified answer: d=(68−65)/10=0.30.
Common error: Not necessarily causally important.
Question 20: Type I and II
Identify both errors.
Show hint
False rejection and missed rejection.
Show worked answer
Verified answer: Type I rejects true H₀; Type II fails to reject false H₀.
Common error: β depends on alternative.
Level 3 — Research reasoning: Questions 21–30
Question 21: Select test
Numeric sample mean vs benchmark, unknown σ.
Show hint
One-sample mean.
Show worked answer
Verified answer: One-sample t-test if design/assumptions support it.
Common error: n alone not z/t determinant.
Question 22: Paired data
Same students measured twice; choose test.
Show hint
Match StudentCode.
Show worked answer
Verified answer: Paired t-test on within-student differences.
Common error: Not two independent groups.
Question 23: Welch comparison
Two unrelated groups may have different variances; choose test.
Show hint
equal_var=False.
Show worked answer
Verified answer: Independent Welch t-test.
Common error: Self-selection limits causal interpretation.
Question 24: Exact binomial
8 successes/10, H₀ p=.5. Calculate two-sided p.
Show hint
Exact binomial masses.
Show worked answer
Verified answer: Two-sided p=.109375; prespecified greater p=.0546875.
Common error: Not always twice a discrete one-sided p.
Question 25: Wrong p-value claim
Explain why p=.03 is not P(H₀ true).
Show hint
Conditional probabilities differ.
Show worked answer
Verified answer: p conditions on the null model; it is not a posterior of H₀.
Common error: No 3% chance H₀ is true statement.
Question 26: Power
Define power and its relation to β.
Show hint
Specified alternative.
Show worked answer
Verified answer: Power=1−β, rejection chance when a specified alternative holds.
Common error: Not determined by observed p alone.
Question 27: 20 tests
All 20 nulls true, independent α=.05; probability ≥1 false rejection?
Show hint
Complement none.
Show worked answer
Verified answer: 1−0.95²⁰=0.6415141≈64.15%.
Common error: Assumes independent tests.
Question 28: Research integrity
Give two p-hacking practices and a correction.
Show hint
Undisclosed selection.
Show worked answer
Verified answer: Repeated testing until p<.05, hiding results; prespecify and disclose exploration.
Common error: Exploration is fine if transparent.
Question 29: Causal inference
Does an observational significant result prove causal benefit?
Show hint
Confounding and selection.
Show worked answer
Verified answer: No; sampling/assignment and unmeasured factors require design analysis.
Common error: Statistical significance is not causality.
Question 30: Final report
Write concise main-study conclusion.
Show hint
Report test, estimate, interval, p.
Show worked answer
Verified answer: Fictional n25, mean68, t(24)=1.50, p=.1467, 95% CI [63.87,72.13]; fail to reject μ65 at α=.05.
Common error: Do not write no difference.
Thirty common hypothesis-testing mistakes to avoid
| Incorrect belief or practice | Practical correction |
|---|---|
| Assume H₀ always means nothing | State the exact null parameter claim. |
| Write hypotheses after seeing results | Prespecify confirmatory alternatives. |
| Confuse parameter and statistic | μ describes population, x̄ sample. |
| Choose a test by smallest p | Use research question and design. |
| Treat paired values as independent | Analyze matched differences. |
| Ignore clustered data | Consider group dependence and suitable methods. |
| Use population SD incorrectly | Distinguish σ, s and estimated SE. |
| Confuse SD and SE | SD summarizes observations; SE summarizes estimator variability. |
| Use wrong t degrees freedom | One-sample t uses n−1. |
| Mix one- and two-sided p | Choose test direction in advance. |
| Double every one-sided probability | Exact discrete tests may define two-sided differently. |
| Treat p as P(H₀ true) | It is calculated assuming a null model. |
| Treat p as P(H₁ true) | A p-value is not a posterior. |
| Say p=.03 means 3% chance of error | It is not a conditional false-finding rate. |
| Call p<.05 scientific proof | Report uncertainty and design. |
| Say non-significance proves no difference | Non-rejection is not equivalence. |
| Accept H₀ as true | Use fail to reject. |
| Equate significance with importance | Consider effect magnitude and consequences. |
| Omit effect size | State raw and suitable standardized difference. |
| Omit confidence interval | Include compatible uncertainty interval. |
| Confuse confidence and prediction interval | They target different quantities. |
| 95% probability μ in realized CI | Explain long-run coverage instead. |
| Treat α as chance a finding is false | α controls a procedure’s Type I error under assumptions. |
| Confuse Type I and II | False rejection versus missed rejection. |
| Compute power from observed p alone | Power depends on a specified alternative and model. |
| Assume larger n removes bias | Larger convenience samples may still be biased. |
| Try many tests secretly | Disclose multiplicity and primary outcomes. |
| Change α after results | Prespecify or disclose exploration. |
| Remove unusual records for significance | Investigate and document exclusions. |
| Claim statistical significance proves causation | Causal identification requires research design. |
Four-week learning and practice roadmap
| Week | Focus | Practical outcome |
|---|---|---|
| 1 — Inference foundations | Hypotheses, samples, p-values, alpha and errors | Complete Questions 1–10 and explain the null reference without a false P(H₀) claim. |
| 2 — Full calculations | SE, t statistics, df, critical values, intervals | Reproduce t=1.5, p=.1466556461, 95% CI 63.87–72.13. |
| 3 — Software and design | Excel, Sheets, SciPy; paired vs Welch; missing data | Verify the 25-score workbook and examine the 240-row simulation. |
| 4 — Statistical reporting | Capstone, multiple tests, power and limitations | Complete 30 questions, ten tasks and a reproducible research report. |
This timetable can be adapted to different prior knowledge and school schedules. Students who already know standard deviation may complete the early steps quickly; those learning probability distributions for the first time should revisit Topic 79 before interpreting the t reference distribution. Focus on understanding why an answer is wrong: using the wrong degrees of freedom and overinterpreting a p-value are different skills that deserve different corrections. A printable skills tracker accompanies the article.
Download the complete Topic 80 learning toolkit
The following files were uploaded to the connected Notes for SHS staging media library. The full ZIP additionally includes both original CSV datasets, the executable Python notebook, twelve educational figures, question-bank JSON and independent verification results. The Excel and Google Sheets-compatible files distinguish live elementary calculations from the separately verified p/critical references; native spreadsheet recalculation is required after editing scores. No personal student details or real assessment research results appear in these materials.
- Excel worked example workbook
- Google Sheets-compatible workbook
- 30 practice questions PDF
- 30 worked answers PDF
- Formula cheat sheet PDF
- Test-selection guide PDF
- Reporting checklist PDF
- Ten-task capstone PDF
- Student progress tracker PDF
- Editable Word research template
The two original CSV files and Python notebook are distributed in the downloadable complete ZIP linked alongside this article’s completion report; the WordPress media endpoint did not establish hosted CSV or notebook links. They are not misrepresented as live WordPress downloads.
Optional statistics courses
Students seeking additional structured instruction may review Basic Statistics on Coursera or Statistics courses on Udemy. These are verified provider destinations, not confirmed Notes for SHS affiliate-tracked links or guaranteed recommendations at any price. Course content, availability and credentials should be checked on the provider site. No unverified tracking parameters or misleading affiliate ads have been added.
Frequently asked questions
What is hypothesis testing?
A model-based procedure for evaluating the compatibility of sample data with a specified statistical hypothesis and alternative.
What is a null hypothesis?
The hypothesis used to define the test’s reference distribution; for this example H₀: μ=65.
What does a p-value mean?
The probability, under the chosen null model, of a test statistic at least as extreme as observed under the relevant rule.
Does p less than 0.05 prove a discovery?
No. A threshold alone does not establish truth, practical importance, replicability or causality.
Why use a two-sided t-test?
The research question asks about differences from 65 in either direction and population SD is estimated from the sample.
What does failing to reject H₀ mean?
The evidence did not meet the chosen rejection rule; equality or equivalence is not established.
What is a confidence interval?
An interval generated by a method with specified long-run coverage under the model, not a posterior probability statement.
What is a Type I error?
Rejecting a null hypothesis that is actually true under the test framework.
What is a Type II error?
Failing to reject a null that is false for a specified alternative.
What is statistical power?
Under a specified alternative and design, the probability of rejection; mathematically 1−β.
Can statistical significance show causation?
Not alone. Confounding, selection and design determine whether a causal interpretation is justified.
Can Excel, Sheets and SciPy compute a p-value?
Yes, using appropriate tests and functions such as T.DIST.2T or SciPy ttest_1samp, after validating assumptions and inputs.
Conclusion: statistical evidence requires judgement
Hypothesis testing begins with a precise question, target population, defensible null and alternative, suitable design and appropriate reference distribution. The fictional 25-score example gives an observed three-point mean difference, t(24)=1.50, two-sided p≈0.147, one-sample standardized difference 0.30 and 95% confidence interval approximately 63.87–72.13. Under the illustrative 5% threshold the sample does not provide sufficient evidence to reject a population mean of 65. That conclusion is more informative—and less misleading—than either declaring an educational breakthrough or saying nothing happened.
The larger synthetic project shows how different analyses can produce different p-values when they answer different questions. Interpreting any of them requires checking matched observations, missingness, confidence intervals, effect magnitudes, multiplicity, sampling and the limits of causal claims. Repeat the 25-score calculation manually, verify it in your chosen spreadsheet or SciPy and use the research template to prepare a transparent report. Topic 81 will examine how sampling designs affect the validity of population inference. Statistical significance is a feature of a specified testing framework—not a guarantee of truth, importance or causation.
Academic and software references
- American Statistical Association — Statement on P-Values
- ASA — Statistical Significance and Replicability
- Penn State — Statistical Hypothesis Testing
- Penn State — Inference for Two Samples
- OpenStax — Introductory Statistics 2e
- NIST — Engineering Statistics Handbook
- SciPy — One Sample T-Test
- SciPy — Welch Independent Samples
- SciPy — Exact Binomial Test
- Google Sheets — Statistical Functions
1 response to “Hypothesis Testing for Beginners: P-Values and Statistical Significance”