Z Test and T Test
Z Test and T Test
X
z
/ n
EXAMPLE 1
The current rate for producing 5 amp
fuses at Neary Electric Co. is 250 per
hour. A new machine has been purchased
and installed that, according to the
supplier, will increase the production
rate. The production hours are normally
distributed. A sample of 35 randomly
selected hours from last month
revealed :the following measures:
251 249 255 252 250
248 249 253 254 251
246 259 260 259 258
256 258 260 261 262 At the .05 significance level can
261 250 249 249 247 Neary conclude that the new
machine is faster?
251 252 255 256 256
255 260 260 261 259
Step 1
State the null and alternate hypotheses.
H0: µ = 250 : Production rate is not significantly
different from 250 per hour.
H1: µ > 250 : Production rate is significantly higher than
250 per hour.
Step 2
Select the level of significance.
= .05.
Step 3
Find a test statistic.
Use the z distribution since s is not
known but n > 30.
Step 4
State the decision rule.
Reject the null hypothesis if z > 1.645 or,
using the p-value, the null hypothesis is
rejected if p < .05.
Step 5
Calculate the value of the test statistics
X 254.63 250
z 5.72
n 4.79 35
Step 6
Make a decision and interpret the results.
o Since Computed z of 5.72 > Critical z of 1.645
Reject Ho
Step 7
State the conclusion.
The mean number of fuses produced is
significantly higher than 250 per hour.
Question : A teacher claims that the mean score of students in his class is greater
than 82 with a standard deviation of 20. If a sample of 81 students was selected with
a mean score of 90 then check if there is enough evidence to support this claim at a
0.05 significance level.
2. H0 : μ=82
3. H1 : μ>82
As 3.6 > 1.645 thus, the null hypothesis is rejected and it is concluded that there is
enough evidence to support the teacher's claim.
X
t
s/ n
Q1. Imagine 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.
Z value i.e., is greater than significance level value of 0.05 i.e. 1.64
Therefore we reject null hypothesis and accept alternate hypothessis
Q. One-sample t-test.
To test the hypothesis that eating fish makes one smarter, a random sample of
12 persons take a fish oil supplement for one year and then are given an IQ test.
Here are the results:
116 111 101 120 99 94 106 115 107 101 110 92
Test using the following hypotheses at the significance level 0.05, report the test
statistic, then summarize your conclusion. H0: μ = 100 Ha: μ > 100
we reject the null hypothesis at the significance level 0.05, and conclude
that the fish oil supplement did make a significant increase in the mean
IQ.