Applied Business Statistics: Hypothesis Testing - Single Sample Part 4
Hypothesis Testing: Single Sample t-test with a Proportion
This section delves into hypothesis testing for a single sample using a t-test specifically for proportions, utilizing a real-world example of a discrimination lawsuit.
Case P: Discriminatory Hiring Lawsuit
Scenario: Company X is facing a lawsuit for discriminatory hiring practices, alleging a significantly greater number of men than women have been hired, despite an equal pool of qualified candidates. In the last year, only out of hires () were women.
Question: Is there sufficient evidence to conclude that the company is hiring significantly more men than women?
Variables and Notation:
(pi): Represents the true proportion of men hired by the company (population parameter).
(p-hat): Represents the sample proportion of men hired from the observations ( or ). This is the mean of a dichotomous variable (coded for men, for women).
Why Not "Eyeball" the Data?
Intuition is poor at considering sample size.
Difficulty in discerning significant versus insignificant differences.
Legal Context: Decisions have serious implications (e.g., changes in hiring policies, financial compensation). Therefore, rigorous statistical testing is required, not just visual assessment.
Hypothesis Testing Steps
The following steps are applied to the Company X lawsuit scenario:
Formulating Hypotheses:
Null Hypothesis (): (The true proportion of men hired is not significantly different from , meaning an equal proportion of men and women are hired, indicating no discrimination).
This assumption is based on the information that there is an equal number of qualified men and women in the applicant pool.
It reflects the legal principle of "innocent until proven guilty", placing the burden of proof on the plaintiff (the person making the accusation of discrimination).
Alternative Hypothesis (): \pi > 0.50 (The true proportion of men hired is significantly greater than , indicating discriminatory hiring practices against women).
This is a one-sided test because the lawsuit alleges discrimination specifically against women (meaning more men are hired), not just a difference in either direction.
Setting the Significance Level ():
The significance level () is the probability of rejecting the null hypothesis when it is actually true (Type I Error).
In legal contexts especially, a commonly accepted level is (or a chance of Type I Error).
This means if the p-value is less than or equal to , we reject .
Checking Assumptions:
Random Sample: The hires must represent a random sample of current hiring practices. While not explicitly stated as random, for analysis, we assume representativeness.
Independence: Each hiring decision must be independent of others.
Sample Size: For a t-test for proportions, we approximate the binomial distribution with a normal distribution. This approximation is generally considered valid if both and .
In this case, and under , .
Since both are , which is greater than , the sample size assumption is met, and a t-test is appropriate.
Calculating the Test Statistic:
The formula for the z-test statistic for a single proportion is:
Where:
is the sample proportion ()
is the hypothesized population proportion under the null hypothesis ()
is the sample size ()
Substituting the values:
Determining the p-value:
The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.
Since this is a one-sided test (H_1: \pi > 0.50), we need to find the probability of a z-score greater than or equal to
Using a standard normal distribution table or statistical software, the p-value for is approximately P(Z > 1.98) = 1 - P(Z \leq 1.98) = 1 - 0.9761 = 0.0239.
Making a Decision:
Compare p-value to : Our calculated p-value is and our significance level is .
Since p{value} (0.0239) < \alpha (0.05), we reject the null hypothesis ().
Formulating a Conclusion:
Based on the statistical analysis, there is sufficient evidence (p-value = ) to conclude that the true proportion of men hired by Company X is significantly greater than .
This suggests that the company is hiring significantly more men than women, supporting the claim of discriminatory hiring practices against women.