agresti/franklin statistics, 1 of 106 section 9.4 how can we analyze dependent samples?
TRANSCRIPT
![Page 1: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/1.jpg)
Agresti/Franklin Statistics, 1 of 106
Section 9.4
How Can We Analyze Dependent Samples?
![Page 2: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/2.jpg)
Agresti/Franklin Statistics, 2 of 106
Dependent Samples
Each observation in one sample has a matched observation in the other sample
The observations are called matched pairs
![Page 3: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/3.jpg)
Agresti/Franklin Statistics, 3 of 106
Example: Matched Pairs Design for Cell Phones and Driving Study
The cell phone analysis presented earlier in this text used independent samples:
• One group used cell phones
• A separate control group did not use cell phones
![Page 4: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/4.jpg)
Agresti/Franklin Statistics, 4 of 106
Example: Matched Pairs Design for Cell Phones and Driving Study
An alternative design used the same subjects for both groups
• Reaction times are measured when subjects performed the driving task without using cell phones and then again while using cell phones
![Page 5: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/5.jpg)
Agresti/Franklin Statistics, 5 of 106
Example: Matched Pairs Design for Cell Phones and Driving Study
Data:
![Page 6: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/6.jpg)
Agresti/Franklin Statistics, 6 of 106
Example: Matched Pairs Design for Cell Phones and Driving Study
Benefits of using dependent samples (matched pairs):• Many sources of potential bias are
controlled so we can make a more accurate comparison
• Using matched pairs keeps many other factors fixed that could affect the analysis
• Often this results in the benefit of smaller standard errors
![Page 7: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/7.jpg)
Agresti/Franklin Statistics, 7 of 106
Example: Matched Pairs Design for Cell Phones and Driving Study
To Compare Means with Matched Pairs, Use Paired Differences:
• For each matched pair, construct a difference score
• d = (reaction time using cell phone) – (reaction time without cell phone)
• Calculate the sample mean of these differences: xd
![Page 8: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/8.jpg)
Agresti/Franklin Statistics, 8 of 106
For Dependent Samples (Matched Pairs)
Mean of Differences
=
Difference of Means
![Page 9: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/9.jpg)
Agresti/Franklin Statistics, 9 of 106
For Dependent Samples (Matched Pairs)
The difference (x1 – x2) between the means of the two samples equals the mean xd of the difference scores for the matched pairs
The difference (µ1 – µ2) between the population means is identical to the parameter µd that is the population mean of the difference scores
![Page 10: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/10.jpg)
Agresti/Franklin Statistics, 10 of 106
For Dependent Samples (Matched Pairs)
Let n denote the number of observations in each sample
This equals the number of difference scores The 95 % CI for the population mean difference
is:
deviation standard their is s
sdifference theofmean sample theis
d
025.
d
dd
xn
stx
![Page 11: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/11.jpg)
Agresti/Franklin Statistics, 11 of 106
For Dependent Samples (Matched Pairs)
To test the hypothesis H0: µ1 = µ2 of equal means, we can conduct the single-sample test of H0: µd = 0 with the difference scores
The test statistic is:
1 with 0 ndf
nsx
td
d
![Page 12: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/12.jpg)
Agresti/Franklin Statistics, 12 of 106
For Dependent Samples (Matched Pairs)
These paired-difference inferences are special cases of single-sample inferences about a population mean so they make the same assumptions
![Page 13: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/13.jpg)
Agresti/Franklin Statistics, 13 of 106
Paired-difference Inferences
Assumptions:• The sample of difference scores is a
random sample from a population of such difference scores
• The difference scores have a population distribution that is approximately normal• This is mainly important for small samples
(less than about 30) and for one-sided inferences
![Page 14: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/14.jpg)
Agresti/Franklin Statistics, 14 of 106
Paired-difference Inferences
Confidence intervals and two-sided tests are robust: They work quite well even if the normality assumption is violated
One-sided tests do not work well when the sample size is small and the distribution of differences is highly skewed
![Page 15: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/15.jpg)
Agresti/Franklin Statistics, 15 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
Boxplot of the 32 difference scores
![Page 16: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/16.jpg)
Agresti/Franklin Statistics, 16 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
The box plot shows skew to the right for the difference scores• Two-sided inference is robust to violations
of the assumption of normality
The box plot does not show any severe outliers
![Page 17: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/17.jpg)
Agresti/Franklin Statistics, 17 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
![Page 18: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/18.jpg)
Agresti/Franklin Statistics, 18 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
Significance test:• H0: µd = 0 (and hence equal population means for
the two conditions)
• Ha: µd ≠ 0
• Test statistic:
46.5
325.52
6.50 t
![Page 19: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/19.jpg)
Agresti/Franklin Statistics, 19 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
The P-value displayed in the output is 0.000
There is extremely strong evidence that the population mean reaction times are different
![Page 20: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/20.jpg)
Agresti/Franklin Statistics, 20 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
95% CI for µd =(µ1 - µ2):
69.5) (31.7,or
18.950.6 )32
5.52(040.26.50
![Page 21: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/21.jpg)
Agresti/Franklin Statistics, 21 of 106
Example: Matched Pairs Analysis for Cell Phones and Driving Study
We infer that the population mean when using cell phones is between about 32 and 70 milliseconds higher than when not using cell phones
The confidence interval is more informative than the significance test, since it predicts just how large the difference must be
![Page 22: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/22.jpg)
Agresti/Franklin Statistics, 22 of 106
Section 9.5
How Can We Adjust for Effects of Other Variables?
![Page 23: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/23.jpg)
Agresti/Franklin Statistics, 23 of 106
A Practically Significant Difference
When we find a practically significant difference between two groups, can we identify a reason for the difference?
Warning: An association may be due to a lurking variable not measured in the study
![Page 24: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/24.jpg)
Agresti/Franklin Statistics, 24 of 106
Example: Is TV Watching Associated with Aggressive Behavior?
In a previous example, we saw that teenagers who watch more TV have a tendency later in life to commit more aggressive acts
Could there be a lurking variable that influences this association?
![Page 25: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/25.jpg)
Agresti/Franklin Statistics, 25 of 106
Control Variable
A control variable is a variable that is held constant in a multivariate analysis (more than two variables)
![Page 26: Agresti/Franklin Statistics, 1 of 106 Section 9.4 How Can We Analyze Dependent Samples?](https://reader035.vdocuments.mx/reader035/viewer/2022062423/56649ea95503460f94bad580/html5/thumbnails/26.jpg)
Agresti/Franklin Statistics, 26 of 106
Can An Association Be Explained by a Third Variable?
Treat the third variable as a control variable
Conduct the ordinary bivariate analysis while holding that control variable constant at fixed values
Whatever association occurs cannot be due to effect of the control variable