Lecture 21 STATS 30301
Lecture 21 STATS 30301
𝑠 x̅ 𝑡=
𝑥 − 𝜇0
𝑠
√𝑛 √𝑛
About p: approximately Normal if np 5 and n(1-p) 5; = ; H 0 : p = p0
Standard Error Confidence Interval Test Statistic
√ √
^ − 𝑝0
𝑝
𝑝 (1− 𝑝) ^ − 𝑝)
𝑝(1 ^ 𝑧=
𝑛
^ ± 𝑧 𝛼 /2
𝑝
𝑛 √ 𝑝 0 (1 − 𝑝 0 )
𝑛
Example: Local vs. Online
Prices
A local insurance agent was concerned about an advertising campaign
that claimed cheaper car insurance rates from an online company. To
investigate, they randomly selected profiles (car type, coverage,
driving record, etc.) for 10 of their clients and checked the online price
quotes for equivalent policies. Below are the prices for each:
Local 568 872 451 1229 605 1021 783 844 907 712
Online 391 602 488 903 677 1270 703 789 1008 702
Do the data provide evidence that the online company’s rates are less?
Matched Samples or Paired
Data:
• Paired data involve taking two measurements on the same
element, or one observation on each of two very similar
(identical) elements.
• Recall the conditions for inference: randomness, Normal-shaped
distribution, and independence
• When an element is measured twice, those two measurements
are necessarily dependent.
• To obtain independence, we find the difference, di, of each pair;
together, all dis produce a single sample of independent
differences.
Inference About , the Mean Difference of
Paired
Let = the population mean Data:
of the differences,
then = the sample mean of the differences
Ha:
H0 : OR
Ha: where is usually 0
Your textbook uses the sign that is OR
the opposite of Ha but it always has Ha:
an equal sign: or or just
When σ is unknown & D is not strongly skewed/no outliers, use t-distribution with (n – 1) degrees of freedom
Standard Error Confidence Interval Test Statistic
Example: Hypothesis Test
about
Profile 1 2 3 4 5 6 7 8 9 10
Local 568 872 451 1229 605 1021 783 844 907 712
Online 391 602 488 903 677 1270 703 789 1008 702
A 61.7 58.8 66.0 66.2 79.0 82.3 74.3 59.3 79.1 66.0 73.4 76.9 93.1 63.0 68.2 60.3
d 6 3.9 6.4 3.9 4.8 6.7 3.6 6 5.8 2.6 5.3 3.2 1.4 7.1 6.5 2.5