0% found this document useful (0 votes)
72 views5 pages

One-Sample T-Test and Confidence Intervals

This tutorial checks understanding of hypothesis testing for population means when the population standard deviation is known and unknown. It provides two examples testing claims about order dispatch times and average work hours using sample data and the t-test. The second example also constructs a 95% confidence interval and tests an additional hypothesis about average hours worked.

Uploaded by

Quỳnh Nga
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views5 pages

One-Sample T-Test and Confidence Intervals

This tutorial checks understanding of hypothesis testing for population means when the population standard deviation is known and unknown. It provides two examples testing claims about order dispatch times and average work hours using sample data and the t-test. The second example also constructs a 95% confidence interval and tests an additional hypothesis about average hours worked.

Uploaded by

Quỳnh Nga
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

This tutorial checks your understanding of testing hypothesis about the population

mean when population standard deviation is known and unknown.

Question 1

A mail order firm claims that new procedures enable it to dispatch orders more
quickly than previously. Records show that the previous average delay was 20 days.
A random of 17 orders using the new procedure showed a delay time of 18 days with
a sample standard deviation of 2.5 days. Is the claim made for the new procedures
supported at the 5% level?

n = 17 x̄ = 18 s= 2.5 α = 0.05

H0: μ = 20

HA: μ < 20 (chọn nhỏ hơn vì đề bài nói quickly than previously) → gud :>

t = (x̄ - μ) / (s/√n) = (18-20) / (2.5/√17) = -3.3

(cách 2) P(t<-3.3) = 0.0005 = 0.05% < 5% → Reject null hypothesis

Question 2

In the lecture you tested the null hypothesis that college graduate students work
longer than 40 hours per week on average. Now use [Link] file and test the
hypothesis that all full-time workers work for 40 hours per week on average
(variable hrs1).

a. What are the null and alternative hypotheses?

H0 : μ = 40

HA : μ # 40
b. Test the hypothesis and write a brief summary of your conclusions.

Step 1: Chạy bảng frequencies cho biến wrkstat xem trong mẫu có những phân loại
nào.

- Analyze -> Descriptive Statistics -> Frequencies


- Add biến wrkstat
- OK

=> Kiểm tra mã của WORKING FULL TIME ở cột Value trong Variable View. (mã 1)

Step 2: Lọc dữ liệu

- Data -> Select Cases -> If wrkstat =1 -> Continue -> OK


- Chạy lại bảng frequencies cho biến wrkstat

Step 3: Kiểm tra giả thuyết H0 với 774 quan sát

- Vào Analyze -> Compare Means -> One sample T-test


- Test Variable: Nhập biến cần kiểm định (hrs1)
- Test Value: Nhập giá trị của giả thuyết H0 (40)
- OK
c. Explain the difference between the standard deviation of your sample
and the standard error of the mean.

→ điều chỉnh HA là μ > 40

p-value ở cột 2-tailed nhỏ hơn alpha → H0 sai

d. If your sample size were doubled, how would you expect the value of
S.D to change? How would the value of the standard error of the mean
change? Estimate both the S.D and the standard error for a sample
twice as large.

[Link]

có vẻ hơi tương tự nhg t chưa đọc kĩ, đang xem lại bài 1 đã

t = (x̄ - μ) / (s/√n)

● n tăng gấp đôi → s tăng thành s * căn 2 (check coi ) :)

σM = σ/√n

● n tăng gấp đôi → SE giảm thành căn SE / căn 2


e. What is the 95% CI for the average number of hours per week by full-
time workers? Give your conclusion on the hypothesis testing using the
95% CI.

k hiểu cái t mũ n-1 alpha/2 (sao l kí hiệu thôi m ơi, confidence degree của nó là n, ncl
m hiểu cả cái cụm đấy là 1.96 tức giá trị để 95%ại mũ nhỉ)

à thế đánh lại đi m ko cần đâu để ntn mn hiểu đc mà

f. Based on the 95% CI for the mean difference, can you reject the null
hypothesis that the average population value for hours worked is 43
hours? Explain.

chắc là dựa vào kết luận cái trên → reject

chuẩn (43 không trong khoảng chả reject)

Question 3

Use the [Link] data file to perform the appropriate analyses to test whether the
average number of hours of daily television viewing (tvhours) is the same for men
and women. Include appropriate charts to illustrate your findings. Be sure to look at
the distribution of hours of television viewed separately for men and women.
1. Based on the results you observed, is it reasonable to conclude that
in the population, men and women watch the same amount of
television?

2. If you found a statistically significant difference between average


hours watched by men and women, would you necessarily conclude
that men and women do not watch the same amount of television?
What other nonstatistical explanations are possible for your findings?

Common questions

Powered by AI

The null hypothesis is H0: μ = 40, asserting that full-time workers, on average, work 40 hours per week. The alternative hypothesis is HA: μ ≠ 40, suggesting that the average working hours for full-time workers is not 40 hours, either more or less .

Rejecting the null hypothesis using p-values involves determining whether the p-value is less than the significance level (α), indicating that the observed data are sufficiently unlikely under the null hypothesis. Similarly, if a broader confidence interval does not contain the null hypothesis value, it suggests significant evidence against the null. Both methods reflect statistical significance and support the alternative hypothesis .

A 95% confidence interval for the average work hours is calculated using the formula mean ± (critical value) * (standard error). The critical value for a 95% confidence interval with a large enough sample is typically 1.96. If the interval does not include the hypothesized mean value (40 in our case), it suggests rejecting the null hypothesis, indicating that the average working hours differ significantly from 40 .

The critical value is used to determine the range within which the true population parameter is expected to lie with a certain level of confidence (e.g., 95%). It is multiplied by the standard error to set the margin of error around the sample mean, forming the confidence interval. If the hypothesized value lies outside this interval, this challenges the null hypothesis .

Doubling the sample size would not change the value of the sample standard deviation, as it reflects the variation within the sample itself. However, the standard error of the mean would decrease, specifically by a factor of √2, because the standard error is inversely proportional to the square root of the sample size (SE = σ/√n).

Hypothesis testing allows the use of statistical evidence to evaluate claims about population parameters. In this case, the null hypothesis (H0: μ = 20) suggests no change in order dispatch time, while the alternative hypothesis (HA: μ < 20) suggests a reduction in delay. Using the sample mean (x̄ = 18), standard deviation (s = 2.5), and sample size (n = 17), a t-test value of -3.3 was calculated. The calculated p-value (0.0005) was less than the significance level (α = 0.05), leading to the rejection of the null hypothesis. This suggests that the new procedures likely reduce dispatch time, supporting the firm's claim .

Differences in television viewing hours between men and women could be influenced by societal norms, cultural expectations, or differences in leisure time availability. Gender roles, preferences for different types of programs, or variations in time management strategies could also contribute. These factors might lead to statistical differences, but do not necessarily indicate inherent dissimilarities in viewing habits .

The standard deviation of a sample (s) measures the amount of variation or dispersion of a set of values from the sample mean, reflecting the spread of individual data points. The standard error of the mean (SE) is the standard deviation of the sample mean distribution, calculated by dividing the sample standard deviation by the square root of the sample size (SE = s/√n). It indicates how much the sample mean is expected to vary from the true population mean. As the sample size increases, the standard error decreases, implying more reliable estimates of the population mean .

Sample size affects the reliability of hypothesis testing significantly. A larger sample size generally results in a smaller standard error, leading to narrower confidence intervals and more accurate estimates of the population parameter. This increases the power of the test, making it more likely to detect actual effects or differences, and allowing more robust conclusions. Small sample sizes may lead to higher variability, wider confidence intervals, and potential errors in conclusions .

If the average work hours' 95% confidence interval does not include 43 hours, it implies rejecting the null hypothesis that the mean is 43. This suggests that the actual mean is statistically significantly different from 43 hours, supporting the alternative hypothesis that it is not equal to 43 .

You might also like