Hypothesis Testing with z-Tests and t-Tests
Foundations of Hypothesis Testing: Z-Tests Versus T-Tests
The Central Limit Theorem establishes that as sample size increases, the sampling distribution of the sample mean approaches normality, regardless of the population distribution shape; a standard rule of thumb is that the Central Limit Theorem is reliably engaged at sample sizes of .
When the population standard deviation is known, the standard normal -distribution is used to calculate the test statistic:
Assuming is known is generally unrealistic in practice; when is unknown, the sample standard deviation must be substituted, requiring a -test:
The procedural workflow for a hypothesis test remains identical whether using or :
- State the null hypothesis () and alternative hypothesis ().
- Calculate the standardized test statistic ( or ).
- Determine the -value from the appropriate distribution table (the standard normal -table for -statistics, or the Student's -table for -statistics).
- Compare the -value to the designated level of significance to reach a decision.
Structure and properties of statistical hypotheses:
- The null hypothesis always takes the form of an equality: , asserting that the population parameter equals a specified baseline constant.
- The alternative hypothesis represents the research claim and has three possible forms:
- Directional lower tail:
- Directional upper tail:
- Non-directional two-tailed:
The sample mean must never appear in either or . Hypotheses are claims about unknown population parameters (), not sample statistics ().
One-Tailed Left-Sided Test: Adult Blood Phosphorus Levels
Biological context: Phosphorus levels in adult human blood follow a normal distribution with a known population mean and a known population standard deviation .
Research premise: Older adults experience a higher incidence of bone fractures than the general adult population. To assess whether decreased bone density correlates with reduced phosphorus, a study evaluates whether blood phosphorus levels in older individuals are significantly lower than the general adult baseline of .
Sample parameters:
- Target demographic: Older men and women between the ages of and years.
- Sample size:
- Observed sample mean: (obtained by summing the individual clinical measurements and dividing by
Hypothesis specification:
Test statistic calculation:
Determination and interpretation of the -value:
- Consulting the standard normal table for yields a cumulative lower-tail probability of (or
- Meaning of the -value: Assuming the null hypothesis is true (), the probability of randomly obtaining a sample of with a mean of or lower purely by chance is less than (
Decision at significance levels:
- At : Because , reject .
- At : Because , reject .
- Conclusion: In both cases, the null hypothesis is rejected in favor of . There is statistically significant evidence that adults aged to have an average blood phosphorus concentration lower than .
One-Tailed Right-Sided Test: Equine Blood Glucose Levels
Veterinary setting: Evaluation of an individual horse named Gentleman residing at a Colorado ranch.
Sample characteristics:
- A veterinarian collected blood glucose measurements taken at random intervals over several weeks.
- Units of measurement:
- Sample mean:
Normality requirement and small-sample limitations:
- Because , the sample size is far below the threshold required for the Central Limit Theorem to guarantee normality (by contrast, a sample size such as would not require an assumption of normality).
- Therefore, blood glucose measurements must explicitly be assumed to follow a normal distribution.
Population parameters:
- Baseline mean for healthy horses:
- Population standard deviation: , representing the typical variation or average distance of individual readings from the population mean.
Research question: Do the observed veterinary data provide evidence that Gentleman's mean glucose concentration is higher than the standard baseline of ?
Hypothesis specification:
Test statistic calculation:
Determination and interpretation of the -value:
- From the standard normal cumulative table, the area to the left of is .
- Upper-tail probability: (or
- Meaning of the -value: If Gentleman's true mean glucose level is , there is an probability of obtaining a sample mean of or higher across readings due to random sampling variability.
Decision and substantive interpretation:
- Testing at : Because , do not reject .
- Scientific rationale on hypothesis retention: Failing to reject does not prove that is correct, and statistics does not permit "accepting" the null hypothesis. The data simply provide insufficient evidence to conclude that the true mean exceeds at the chosen standard of evidence.
Two-Tailed Hypothesis Testing: Red Blood Cell Volume
Clinical background: Total red blood cell volume per body weight is a critical diagnostic marker in medicine. For healthy adults, the mean red blood cell volume is . Volume measurements that are either abnormally low or abnormally high signify clinical pathology.
Patient profile and sample parameters:
- Patient: Jenny, whose health is monitored closely.
- Sample size: random blood tests.
- Sample mean:
- Population standard deviation:
- Distribution assumption: Normal distribution.
Research question: Determine whether Jenny's average red blood cell volume is different (in either direction) from the healthy baseline of .
- The word "different" designates a non-directional, two-tailed alternative hypothesis.
- One-sided hypotheses introduce directional bias by presuming the direction of deviation prior to analysis; two-sided hypotheses eliminate directional bias by testing for significant divergence in either extreme.
Hypothesis specification:
Test statistic calculation:
Determination of the two-tailed -value:
- Lower tail boundary: corresponds to a cumulative area of .
- Because the alternative hypothesis is two-sided, the tail area must be doubled to account for extremes at both ends of the distribution:
- This represents the combined probability of obtaining a sample mean as high as (an excess of ) or as low as (a deficit of , contextualized as values below ) if the true mean is .
Evaluation against multiple significance thresholds:
- Testing at :
- Because , reject .
- The result is designated as statistically significant at the level.
- Testing at :
- Because , do not reject .
- The result is not statistically significant at the level.
Statistical Error Analysis and Decision Matrices
In hypothesis testing, exactly two types of inferential errors can occur:
- Type I Error: Rejecting the null hypothesis () when is actually true (a false positive error).
- Type II Error: Failing to reject the null hypothesis () when the alternative hypothesis () is true (a false negative error).
Decision matrix breakdown:
- When is True in reality:
- Action: Reject Type I Error; the probability of this error is (located in the top-left quadrant of the decision matrix).
- Action: Do Not Reject Correct Decision; the probability of this outcome is (located in the bottom-left quadrant).
- Column total: (
- When is True in reality ( is False):
- Action: Reject Correct Decision; known as the Power of the Test, with probability (located in the top-right quadrant).
- Action: Do Not Reject Type II Error; the probability of this error is (located in the bottom-right quadrant).
- Column total: (
Definition and scope of test power:
- The power of a statistical test is defined as , representing the probability of correctly rejecting a false null hypothesis.
Practical and probabilistic meaning of :
- The significance level represents the precise threshold of acceptable risk for making a Type I error.
- Setting signifies that a researcher accepts a probability of rejecting when is actually true. Under repeated sampling where holds, the test will erroneously reject of the time.
- Setting tightens this criterion, requiring more extreme sample evidence such that a true null hypothesis will be erroneously rejected only of the time.
Questions and Discussion
Identification of the null parameter in adult phosphorus testing:
- Question: What numerical value defines the null hypothesis for average adult phosphorus?
- Response: .
Alternative hypothesis direction in adult phosphorus testing:
- Question: What is the alternative hypothesis based on the research claim that older individuals experience bone fractures?
- Response: Less than (.
Baseline parameter in equine glucose testing:
- Question: What is the null parameter for average equine glucose levels?
- Response: .
Alternative hypothesis formulation for equine glucose testing:
- Question: How is the alternative hypothesis structured if testing whether Gentleman's average is elevated?
- Response: Greater than (.
Table lookup for standard normal test statistic:
- Question: What is the cumulative area from the standard normal table for a -score of ?
- Response: .
Decision rule application for equine glucose data:
- Question: At , given a -value of , is the null hypothesis rejected or not rejected?
- Response: Do not reject .
Null hypothesis retention versus acceptance:
- Question: When evidence is insufficient to reject , is accepted as true?
- Response: No. is never accepted; there is merely insufficient evidence to prove it incorrect.
Location of Type I error in the decision matrix:
- Question: Which box in the decision table corresponds to (the probability of a Type I error)?
- Response: The top-left box.
Evaluation of statistical significance across multiple thresholds:
- Question: In Jenny's two-tailed test with , what are the conclusions at and ?
- Response: At , reject (statistically significant). At , do not reject (not statistically significant).