Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

One-sample t – test

Suppose a claim is made that the average number of days a


person spends on vacation is more than or equal to 5 days
(hypothesized population mean) based on a sample of 16
people whose mean came out to be 9 days. As a first step, we
will formulate the null and alternate hypothesis.
Null hypothesis, H0: There is no difference between the
sample mean and the population mean; What has occured
with a sample is just an instance of chance occurrence.
Alternate hypothesis, Ha: There is a significant
difference between the sample mean and the population
mean.
To test this hypothesis:
T = (X̄ – μ) / S/√n
Where, X̄ is the sample mean, μ is the hypothesized

population mean, S is the standard deviation of the
sample and n is the number of observations in the
sample.
A sample size of 16 persons is taken. The mean

number of days spent on vacation by the persons in
sample is found to be 9 days with a sample standard
deviation is found to be 3 days.
T = (X̄ – μ) / S/√n
(9 – 5)/(3/ √16)
= 5.33

At a level of significance of 0.05, the t-value for a right-tailed test


comes out to be 1.75305. Since the calculated T-value of 5.33 is
much larger than the critical value of 1.75305, the null
hypothesis can be rejected. Thus, there is a statistically
significant difference between sample mean and the population
mean.

You might also like