Topic6 - One-Sample Z-Test & T-Test - Rhea Ruiz
Topic6 - One-Sample Z-Test & T-Test - Rhea Ruiz
TESTING
sample T-test
• Statistical decision in hypothesis • If the computed value of the test statistic falls
testing is either to reject or accept within the critical region, the null hypothesis
the null hypothesis. is rejected.
• Another method is to look for the p- • If the statistical decision is to reject the null
hypothesis, conclude that there is a significant
value (< .𝟎𝟓) means reject the null
value of the test statistic. Smaller p-
difference between the sample mean and the
population mean.
hypothesis. Larger p-value we fail
• On the other hand, if the computed value lies
to reject the Null Hypothesis.
within the acceptance region, then do not
reject the null hypothesis.
• If the decision is accept the null hypothesis, then
the interpretation is that we have to say that
there is no sufficient evidence to conclude
whatever is stated in the alternative hypothesis.
STRENGTHS AND LIMITATIONS
Hypotheses:
Null Hypothesis (H0): μ = 1000 (The average lifespan is 1000 hours)
Alternative Hypothesis (H1): μ < 1000 (The average lifespan is less than 1000 hours)
Calculations:
- Sample mean (x̄) = 980
- Population mean (μ) = 1000
- Population standard deviation (σ) = 100
- Sample size (n) = 50
Decision:
Using a z-table, the p-value for z = -1.41 is approximately 0.079. Since this p-value
(0.079) is greater than 0.05, we do not reject the null hypothesis. There is insufficient
evidence to conclude that the average lifespan is less than 1000 hours.
2. Student Performance:
A teacher believes their students are scoring higher on a standardized test than
the national average of 75%. They administer the test to their class of 30 students
and find the average score is 80%. Using a one-sample z-test and the known
national standard deviation of 10 points, they can determine if their students are
performing significantly better than the national average.
Hypotheses:
- Null Hypothesis (H0): μ = 75 (The average score is 75%)
- Alternative Hypothesis (H1): μ > 75 (The average score is greater than
75%)
Calculations:
- Sample mean (x̄) = 80
- Population mean (μ) = 75
- Population standard deviation (σ) = 10
- Sample size (n) = 30
Decision:
The p-value for z = 2.74 is approximately 0.003. Since this p-value
Imagine a company that produces bags of flour. They claim that each bag weighs
500 grams on average. To verify this claim, they randomly sample 100 bags of flour
and find that the average weight is 495 grams. Assuming the population standard
deviation is known to be 10 grams, we can use a one-sample z-test to determine if
there is enough evidence to reject the company's claim.
Hypothesis
Null Hypothesis: The average weight of the flour bags is 500 grams (H0: μ
= 500).
Alternative Hypothesis: The average weight of the flour bags is not 500
grams (H1: μ ≠ 500).
Test Statistic:
We calculate the z-score using the formula: z = (sample mean - population
mean) / (population standard deviation / square root of sample size). In
this case, z = (495 - 500) / (10 / sqrt(100)) = -5.
P-Value:
In this case, the p-value is very small, likely less than 0.0001.
Decision:
A manufacturing company wants to evaluate the effectiveness of a new production process
for manufacturing screws. The company knows that the average length of screws produced
using the old process is 2.5 cm. They implement the new process and collect a sample of 20
screws to measure their lengths. Assume the sample mean length of the 20 screws is 2.6 cm,
and the sample standard deviation is 0.1 cm.
- Which test to use? We are comparing the mean length of a sample of screws to a known
population mean (2.5 cm). The population standard deviation is unknown, and the sample
size is small (n = 20). Therefore, we can use a one-sample t-test for means.
Hypotheses:
- H0: μ = 2.5 (The average length of screws produced using the new process is the
same as the old process)
- H1: μ ≠ 2.5 (The average length of screws produced using the new process is
different from the old process)
Calculations:
t = (x̄ - μ) / (s / √n) = (2.6 - 2.5) / (0.1 / √20) ≈ 4.47
Decision:
Using a t-table with 19 degrees of freedom (n - 1), the p-value for t = 4.47 is
extremely small (0.000262). Since this p-value is less than 0.05, we reject the null
hypothesis. There is strong evidence to suggest that the new manufacturing
A company wants to test the claim that their batteries last more
than 40 hours. Using a simple random sample of 15 batteries
yielded a mean of 44.9 hours, with a standard deviation of 8.9
hours. Test this claim using a significance level of 0.05.
paper had tested 30 healthy volunteers and found that on average they score
51 on the new
test. The researcher believes that patients with schizophrenia will score less
than the normal
average score for the patients is 39 with a standard deviation of 4.3. Is there
significant
HYPOTHESIS
H0: μ = 310 (population mean is equal to 310 pounds)
H1: μ ≠ 310 (population mean is not equal to 310 pounds)
the p-value associated with t = -3.4817 and degrees of freedom = n-1 = 40-1 =
39 is 0.00149.
Since this p-value is less than our significance level α = 0.05, we reject the null
hypothesis. We have sufficient evidence to say that the mean weight of this
species of turtle is not equal to 310 pounds.
Example 2.
Previous research has found an auditory detection threshold of 3.24 dB for a certain
auditory stimulus, with a standard deviation of 1.22 dB. This research used the method of
constant stimuli. Using a staircase method with 16 participants, the auditory detection
threshold for the same stimulus is found to be 2.89 dB. Is there any evidence using the new
𝐻0: 𝜇 = 3.24
Hypothesis:
𝐻1: 𝜇 ≠ 3.24
𝜎 = 1.22
𝑥= 2.89
the number of hours of sleep they have each night. Sarah believes that university
students
𝐻0: 𝜇 =
sleep for 6 hours per night on average. Below is the data that they collected. The
number of the p-value associated with t = 0.8115
𝐻1: 𝜇
and degrees of freedom = n-1 = 10-1 = 9
6
is 0.4380
hours sleep per night for each student was averaged over a one month monitoring
We do not reject the null hypothesis,
period. Is Mean= 6.31 therefore, our result is not significant
≠6
Sample and we have no evidence to reject the
there any evidence to suggest that Sarah’s belief isnull
incorrect?
hypothesis that students sleep for 6
Standard hours on average.
deviation=
1.208
T= 6.31 - 6 / 1.208/√10
= 0.8115