Exhaustive Guide to Statistical Hypothesis Testing and Significance Levels
Definition and Purpose of Hypothesis Testing
Methodological Goal: A statistical hypothesis test is a method used to determine if statistical data contains sufficient evidence to confirm an assumption or to reject it. It is widely applied in interpreting social surveys or testing new medical remedies.
Necessity of Rules: Specific rules and conventions must be applied during statistical analysis; otherwise, the interpretation of data would be unreliable.
The Scientific Approach: In statistics, we do not speak of "right" or "wrong" since nothing can be proven with absolute certainty. Instead, we use the term significant to describe the support for a statement based on calculated probabilities.
The Significance Level and P-Value
P-Value Definition: The probability that a result occurred by chance alone, assuming the null hypothesis is true.
The Significance Thresholds: * Significant: The assumption is considered significant if the significance level (P-value) is at most . * Highly Significant: The assumption is considered highly significant if the significance level is at most .
Stating Hypotheses: * Null Hypothesis (): The general statement or default position, often asserting that the result occurred by pure chance. Formally expressed as . * Assumption A (Alternative Hypothesis): The initial research hypothesis or assumption (e.g., p > p_0 or p < p_0).
Interpretation of Results: If the P-value is not low enough to reject , it does not necessarily mean is correct; often, it indicates the number of trials was not high enough to reject it statistically.
Detailed Example 1: Newborn Chick Preferences
The Assumption: A researcher believes a newly hatched chick prefers round grains (Assumption A: p > 1/2) over triangular ones, based on evolutionary theory.
The Null Hypothesis: The chick picks round or triangular grains with equal likelihood (: ).
Experiment Parameters: * Trials (): chicks. * Outcome: chicks chose round grains (), and chose triangular (represented as \bigcirc\bigcirc\bigcirc\Delta\bigcirc\bigcirc\bigcirc\Delta\n\bigcirc\bigcirc).
Mathematical Calculation: * To calculate the significance level, we sum the probability of the actual result and every event even more unlikely (). * *
Conclusion: Since 5.5\% > 5\%, the result is not statistically significant enough to reject . The researcher cannot confirm the preference for round grains.
Detailed Example 2: Firework Reliability
Background: A producer claims of rockets ignite (). Customers suspect the real percentage is lower (p < 0.9).
Hypotheses: * : * Assumption A: p < 0.9
Test Data: * rockets tested. * set off (observed value). * (expected number).
Significance Calculation: * We calculate the range for to . *
Conclusion: 7.3\% > 5\%. There is not enough statistical evidence to reject the producer's claim of reliability.
Rationale for Testing Ranges of k-values
Convention: Statistics requires testing the observed number and all values less likely (the tail of the distribution).
Mathematical Reason: Calculating only the single point probability (e.g., ) leads to contradiction and nonsense results.
Contradiction Example: Suppose rockets and exactly fire ( matching the claim). * If we calculate only the probability for : * * Since 4.20\% < 5\%, we would mistakenly reject the null hypothesis even though the result perfectly matches it. This is why the cumulative probability (the range) is essential.
One-sided vs. Two-sided Tests
One-sided Tests: Used when there is prior information or a clear direction for the assumption. * Criteria: * Reliable information exists before the test. * Only one side is of interest. * Assumptions are based on founded theories. * Previous tests show a clear tendency. * The other side makes no sense (e.g., a gustation test where being worse than guessing is impossible).
Two-sided Tests: Used when there is no prior information or info is contradictory. * Criteria: * No information beforehand, even if the result shows a strong tendency. * Contradictory information exists. * Doubts remain and the other side is physically possible. * Calculation Logic: If testing two-sided, calculate the probability for one side and multiply by the factor of . * Example 3 (Colours): Chicks tested for blue vs. red preference. , observed red, blue. , . * * Since 4.1\% < 5\%, it is significant that one colour is preferred (red).
Conceptual Types of Errors
Type 1 Error ($\alpha$): The incorrect rejection of a true null hypothesis . This leads to the conclusion that a relationship exists when it does not. The risk of this error is equal to the significance level ().
Type 2 Error ($\beta$): The failure to reject a false null hypothesis . The risk is harder to estimate because the true value of is unknown.
Example Cases: * Murder Trial: : Defendant is not guilty. Type 1 error: Sentencing an innocent person. Type 2 error: Acquitting a guilty person. * Company Prototype: : Old model is fine (). Type 1: Producing a new model that isn't actually better (losing money). Type 2: Not producing a better model (losing customers to competition).
The Critical Region (CR)
Definition: The set of values for which the null hypothesis can be rejected. This is the "light" variant of the significance level for non-mathematicians.
Example 7: New Chocolate Croissant (Schoggipfeli): * Master baker has satisfaction. Tests new recipe with . , two-sided. * Divide : for the left tail (worse) and for the right tail (better). * Expected value . * Upper Limit: Find such that P(k \ge x) < 0.025. For , . So is the right limit. * Lower Limit: Find such that P(k \le y) < 0.025. For , . So is the left limit. * CR Result: . * Values in the middle show no significant difference.
Critical Region with Standard Deviation (Approximation)
Formulae: * Expected Value: * Standard Deviation:
Estimation Table (Last 4 rows for significance): * significance, one-sided: * significance, two-sided: \mu \n± 1.96\sigma * significance, one-sided: \mu \n± 2.33\sigma * significance, two-sided: \mu \n± 2.58\sigma
High n Examples: * Example 9 (Euro Coin): , . level, two-sided. * Limits: . * . * Example 10 (London Births 1664-1757): * . Compare boys vs. girls (). * Looking for (one-sided for more boys): . * Observed boys were , which is highly significant.
Discussion of Particle Physics (CERN)
Higgs Particle: Confirmed with a range of .
Probability of Certainty: This corresponds to a probability of to million, or .
Experiment Example: physicists forecast incident once in collisions. In collisions registered: * * * .
Summary of Selected Exercise Solutions
Dice Manipulation (Exercise 1): * trials, sixes observed. Expected value . P = 2.2\% < 5\%. Alice can reject and state manipulation is significant.
Sugar Packaging (Exercise 2): * , weigh less than . . P \approx 3.36\% < 5\%. Significant evidence that too many packages weigh too little.
Coke Bottle Lid (Exercise 4): * throws, Down (), Up (). Two-sided test: . Not significant. * Second test: throws, , . One-sided test (using previous tendency): P = 2.07\% < 5\%. Now significant.
Wine Connoisseur (Exercise 6): * One-sided triangular test (). Person gets out of correct. P = 1.97\% < 5\%. This person is significantly a connoisseur.
Vaccine Serum (Exercise 8): * New serum out of survived. Old serum survival (). (two-sided) or Result is significant (3.06\% < 5\% ).