Tags: #◇Computer Science #◇STT101A #◇Conceptual #◇Hypothesis Testing #◇Statistics #◇Probability
◇Overview
Hypothesis testing is the cornerstone of inferential statistics. It provides a formal, objective mathematical framework for determining whether experimental or sample data provides sufficient empirical evidence to reject a baseline assertion (the null hypothesis) in favor of a competing claim (the alternative hypothesis).
◇Key Definitions
- Null Hypothesis (): The default presumption of no effect, no difference, or status quo: .
- Alternative Hypothesis ( or ): The research claim or hypothesis indicating that an effect, disparity, or change exists:
- Two-tailed:
- Right-tailed (upper):
- Left-tailed (lower):
- Test Statistic: A sample-derived standardized random variable (, , , or ) quantifying the discrepancy between the sample observation and the null hypothesis parameter.
- Significance Level (): The maximum permissible threshold probability of committing a Type I error: . Typically set to , , or .
- -Value (Probability Value): The exact probability, computed assuming is true, of obtaining a test statistic at least as extreme as the observed sample value.
- Decision Rule: If , reject (statistically significant).
- If , fail to reject (insufficient evidence).
- Critical Region (Rejection Region): The set of test statistic values for which the null hypothesis is rejected.
- Statistical Power (): The probability of correctly rejecting a false null hypothesis: .
◇Theoretical Framework: Error Classification Matrix
In any statistical hypothesis test, two distinct error states can occur:
| Statistical Decision \ Truth of Nature | is Actually True | is Actually False |
|---|---|---|
| Reject | Type I Error () (False Alarm / Producer's Risk) | Correct Decision () (Statistical Power) |
| Fail to Reject | Correct Decision () (Confidence Level) | Type II Error () (Miss / Consumer's Risk) |
Test Statistic Selection Heuristic
◇Stepped Numerical Walkthrough: Two-Tailed -Test
Scenario: A cloud infrastructure engineer tests the round-trip latency of a modified database cluster. Under the default configuration, latency has a mean of with a known population standard deviation . A random sample of query responses under heavy load yields a sample mean latency of . Test at the significance level whether the true mean latency has changed.
Step 1: Formulate Hypotheses
Step 2: Establish Significance Level & Critical Values
Given for a two-tailed test, the significance area is split equally into both tails: .
From the standard normal cumulative table ():
Rejection Region: Reject if or (i.e., ).
Step 3: Compute Standard Error & Test Statistic
Standard Error of the Mean:
Standardized Test Statistic ():
Step 4: Compute the Exact -Value
For a two-tailed test:
Using the standard normal CDF: , so .
Step 5: Statistical & Practical Conclusion
- Comparison: , and .
- Formal Decision: Reject at the significance level.
- Engineering Conclusion: There is sufficient empirical evidence to conclude that the database modification resulted in a statistically significant change in mean query response time.
◇References & Navigation
- Previous Topic: ◇Normal Distribution
- Next Topic: ◇Bayes's Formula
- Related Notes: ◇Discrete Probability Distribution, ◇Random Variables
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
Which probability represents a Type I error ()?
What is the statistical power of a hypothesis test?
If a test produces a -value of and the chosen significance level is , what is the correct statistical decision?
What distinguishes a -test from a -test when testing a single population mean?
When performing a two-tailed test with , what is the tail probability in each rejection region?
Why do statisticians state "fail to reject " rather than "accept "?
How does increasing the sample size affect the standard error and test sensitivity, holding variance constant?
In our worked latency example with , what would the conclusion have been if the test had been set at ()?
What is the degrees of freedom () for a single-sample -test with sample size ?
If the null hypothesis is rejected at , what is guaranteed about its outcome at ?