The document describes the paired samples t-test, which is used to compare means when observations are paired or related. It explains that the paired t-test accounts for natural variability between observational units by looking at the differences between each pair of observations, rather than comparing independent groups. An example compares the mileage from two types of gasoline in the same taxis to control for differences between vehicles. The test determines if the average difference between the paired observations is significantly different from zero.
A brief description of F Test and ANOVA for Msc Life Science students. I have taken the example slides from youtube where an excellent explanation is available.
Here is the link : https://www.youtube.com/watch?v=-yQb_ZJnFXw
A brief description of F Test and ANOVA for Msc Life Science students. I have taken the example slides from youtube where an excellent explanation is available.
Here is the link : https://www.youtube.com/watch?v=-yQb_ZJnFXw
At the end of this lecture, the student should be able to:
1. understand structure of research study appropriate for independent-measures t hypothesis test
2. test between two populations or two treatments using independent measures t statistics
3. understand how to evaluate the assumptions underlying this test
At the end of this lecture, the students should be able to
1.Understand structure of research study appropriate for ANOVA test
2.Understand how to evaluate the assumptions underlying this test
3. interpret SPSS outputs and report the results
How skewness in option prices affected Madoff strategyGaetan Lion
This is an analysis of how skewness in option prices made it impossible that Madoff could have simultenaously avoid nearly all monthly losses and achieve net zer hedging costs.
Comparing the unpaired t test, small sample formula with the one with large sample formula and the Welch's test. The latter is an unpaired t test for samples of unequal sizes with unequal variances.
This presentation describes the concept of One Sample t-test, Independent Sample t-test and Paired Sample t-test. This presentation also deals about the procedure to do the t-test through SPSS.
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docxnovabroom
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS
11: MEDIA LIBRARY
Premium Videos
Core Concepts in Stats Video
· Testing the Difference Between Two Sample Means
Lightboard Lecture Video
· Independent t Tests
Time to Practice Video
· Chapter 11: Problem 5
Difficulty Scale
(A little longer than the previous chapter but basically the same kind of procedures and very similar questions. Not too hard, but you have to pay attention.)
WHAT YOU WILL LEARN IN THIS CHAPTER
· Using the t test for independent means when appropriate
· Computing the observed t value
· Interpreting the t value and understanding what it means
· Computing the effect size for a t test for independent means
INTRODUCTION TO THE T TEST FOR INDEPENDENT SAMPLES
Even though eating disorders are recognized for their seriousness, little research has been done that compares the prevalence and intensity of symptoms across different cultures. John P. Sjostedt, John F. Schumaker, and S. S. Nathawat undertook this comparison with groups of 297 Australian and 249 Indian university students. Each student was measured on the Eating Attitudes Test and the Goldfarb Fear of Fat Scale. High scores on both measures indicate the presence of an eating disorder. The groups’ scores were compared with one another. On a comparison of means between the Indian and the Australian participants, Indian students scored higher on both of the tests, and this was due mainly to the scores of women. The results for the Eating Attitudes Test were t(544) = −4.19, p < .0001, and the results for the Goldfarb Fear of Fat Scale were t(544) = −7.64, p < .0001.
Now just what does all this mean? Read on.
Why was the t test for independent means used? Sjostedt and his colleagues were interested in finding out whether there was a difference in the average scores of one (or more) variable(s) between the two groups. The t test is called independent because the two groups were not related in any way. Each participant in the study was tested only once. The researchers applied a t test for independent means, arriving at the conclusion that for each of the outcome variables, the differences between the two groups were significant at or beyond the .0001 level. Such a small chance of a Type I error means that there is very little probability that the difference in scores between the two groups was due to chance and not something like group membership, in this case representing nationality, culture, or ethnicity.
Want to know more? Go online or to the library and find …
Sjostedt, J. P., Schumaker, J. F., & Nathawat, S. S. (1998). Eating disorders among Indian and Australian university students. Journal of Social Psychology, 138(3), 351–357.
LIGHTBOARD LECTURE VIDEO
Independent t Tests
THE PATH TO WISDOM AND KNOWLEDGE
Here’s how you can use Figure 11.1, the flowchart introduced in Chapter 9, to select the appropriate test statistic, the t test for independent means. Follow along the highlighted sequence of steps in Figure 1.
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docxhyacinthshackley2629
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS
11: MEDIA LIBRARY
Premium Videos
Core Concepts in Stats Video
· Testing the Difference Between Two Sample Means
Lightboard Lecture Video
· Independent t Tests
Time to Practice Video
· Chapter 11: Problem 5
Difficulty Scale
(A little longer than the previous chapter but basically the same kind of procedures and very similar questions. Not too hard, but you have to pay attention.)
WHAT YOU WILL LEARN IN THIS CHAPTER
· Using the t test for independent means when appropriate
· Computing the observed t value
· Interpreting the t value and understanding what it means
· Computing the effect size for a t test for independent means
INTRODUCTION TO THE T TEST FOR INDEPENDENT SAMPLES
Even though eating disorders are recognized for their seriousness, little research has been done that compares the prevalence and intensity of symptoms across different cultures. John P. Sjostedt, John F. Schumaker, and S. S. Nathawat undertook this comparison with groups of 297 Australian and 249 Indian university students. Each student was measured on the Eating Attitudes Test and the Goldfarb Fear of Fat Scale. High scores on both measures indicate the presence of an eating disorder. The groups’ scores were compared with one another. On a comparison of means between the Indian and the Australian participants, Indian students scored higher on both of the tests, and this was due mainly to the scores of women. The results for the Eating Attitudes Test were t(544) = −4.19, p < .0001, and the results for the Goldfarb Fear of Fat Scale were t(544) = −7.64, p < .0001.
Now just what does all this mean? Read on.
Why was the t test for independent means used? Sjostedt and his colleagues were interested in finding out whether there was a difference in the average scores of one (or more) variable(s) between the two groups. The t test is called independent because the two groups were not related in any way. Each participant in the study was tested only once. The researchers applied a t test for independent means, arriving at the conclusion that for each of the outcome variables, the differences between the two groups were significant at or beyond the .0001 level. Such a small chance of a Type I error means that there is very little probability that the difference in scores between the two groups was due to chance and not something like group membership, in this case representing nationality, culture, or ethnicity.
Want to know more? Go online or to the library and find …
Sjostedt, J. P., Schumaker, J. F., & Nathawat, S. S. (1998). Eating disorders among Indian and Australian university students. Journal of Social Psychology, 138(3), 351–357.
LIGHTBOARD LECTURE VIDEO
Independent t Tests
THE PATH TO WISDOM AND KNOWLEDGE
Here’s how you can use Figure 11.1, the flowchart introduced in Chapter 9, to select the appropriate test statistic, the t test for independent means. Follow along the highlighted sequence of steps in Figure 1.
Section 1 Data File DescriptionThe fictional data represents a te.docxbagotjesusa
Section 1: Data File Description
The fictional data represents a teacher's recording of student demographics and performance on quizzes and a final exam across three sections of the course. Each section consists of 35 students which totals to 105 students (sample size, N = 105). The dataset has 21 variables but in this case only two variables will be analyzed. These are: gender and gpa variables. The gender variable is categorized as nominal since the numbers are arbitrarily assigned to represent group membership. The ‘gpa’ variable belongs to the interval data group since it has a true zero which is meaningful. Alternatively, gender could be categorized as a categorical variable while ‘gpa’ ‘as a continuous variable.
Section 2: Testing Assumptions
1. Articulate the assumptions of the statistical test.
Paste SPSS output that tests those assumptions and interpret them. Properly integrate SPSS output wher1e appropriate. Do not string all output together at the beginning of the section.
All statistical tests operate under a set of assumptions. For the t test, there are three assumptions:
· The first assumption is independence of observations.
· The outcome variable Y is normally distributed.
· The variance of Y scores is approximately equal across groups (homogeneity of variance assumption)
Figure 1: histogram of GPA
The histogram above shows that the variable is probably not normally distributed. The bell shape is absent and two peaks are evident.
Table 1: descriptives
Descriptives
Statistic
Std. Error
GPA
Mean
2,78
,075
95% Confidence Interval for Mean
Lower Bound
2,63
Upper Bound
2,93
5% Trimmed Mean
2,80
Median
2,72
Variance
,583
Std. Deviation
,764
Minimum
1
Maximum
4
Range
3
Interquartile Range
1
Skewness
-,052
,236
Kurtosis
-,811
,467
With reference to the table 1 above, the ‘GPA’ variable is in the ideal range for skewness due to the fact that its absolute value for skewness are is less than .50 (approximately symmetric). The GPA variable is not ideal but acceptable since its kurtosis value is greater than .50 but less than 1. This new information gives mixed signals about the data being normal and only a normality test could iron out the differences.
Table 2: Normality test
Tests of Normality
Kolmogorov-Smirnova
Shapiro-Wilk
Statistic
df
Sig.
Statistic
df
Sig.
GPA
,091
105
,033
,956
105
,001
a. Lilliefors Significance Correction
Looking at the table above, the p-value is less than 0.05. Therefore, the null hypothesis is rejected and thus it can be concluded that the variable is not normally distributed. However, since the sample size is sufficiently large, one does not need to worry about this violation. On the other hand, Levene’s test provides a p =0.566 (table 3) meaning that the null hypothesis should not be rejected. Thus the homogeneity of variances assumption is not violated. It’s also assumed that proper research procedures that maintain independence of observations were followed. Two of the th.
3-D geospatial data for disaster management and developmentKeiko Ono
Japan is a high income country at an advanced stage of epidemiological transition. One of its remaining public health challenges is response to natural disasters. This presentation explores the potential of 3-D geospatial data in disaster response and management.
A narrative review of NLP applications to political science
人工知能、機械学習の急速な発展とともに、そうした分析で利用できる「データ」の範囲が拡大しつつある。人が発話・作成した言葉を人工知能が読み解いて、翻訳・要約、さらには特徴・パターンを見つけるなど高度な分析をする「自然言語処理」はすでに多くの分野で実用化されている。この発表では政治学における自然言語処理を用いたこれまでの研究をレビューし、今後の可能性について検討する。Keywords: artificial intelligence, natural language processing (NLP), text mining, political science, data science
US presidential selection: the Electoral College challenged (again)Keiko Ono
Constitutional design for selecting the chief executive
Historical evolution since 1789
The Electoral College
How it works today
Implications and criticism
Alternatives
Reapportionment and post-2020 projections
StarCompliance is a leading firm specializing in the recovery of stolen cryptocurrency. Our comprehensive services are designed to assist individuals and organizations in navigating the complex process of fraud reporting, investigation, and fund recovery. We combine cutting-edge technology with expert legal support to provide a robust solution for victims of crypto theft.
Our Services Include:
Reporting to Tracking Authorities:
We immediately notify all relevant centralized exchanges (CEX), decentralized exchanges (DEX), and wallet providers about the stolen cryptocurrency. This ensures that the stolen assets are flagged as scam transactions, making it impossible for the thief to use them.
Assistance with Filing Police Reports:
We guide you through the process of filing a valid police report. Our support team provides detailed instructions on which police department to contact and helps you complete the necessary paperwork within the critical 72-hour window.
Launching the Refund Process:
Our team of experienced lawyers can initiate lawsuits on your behalf and represent you in various jurisdictions around the world. They work diligently to recover your stolen funds and ensure that justice is served.
At StarCompliance, we understand the urgency and stress involved in dealing with cryptocurrency theft. Our dedicated team works quickly and efficiently to provide you with the support and expertise needed to recover your assets. Trust us to be your partner in navigating the complexities of the crypto world and safeguarding your investments.
Opendatabay - Open Data Marketplace.pptxOpendatabay
Opendatabay.com unlocks the power of data for everyone. Open Data Marketplace fosters a collaborative hub for data enthusiasts to explore, share, and contribute to a vast collection of datasets.
First ever open hub for data enthusiasts to collaborate and innovate. A platform to explore, share, and contribute to a vast collection of datasets. Through robust quality control and innovative technologies like blockchain verification, opendatabay ensures the authenticity and reliability of datasets, empowering users to make data-driven decisions with confidence. Leverage cutting-edge AI technologies to enhance the data exploration, analysis, and discovery experience.
From intelligent search and recommendations to automated data productisation and quotation, Opendatabay AI-driven features streamline the data workflow. Finding the data you need shouldn't be a complex. Opendatabay simplifies the data acquisition process with an intuitive interface and robust search tools. Effortlessly explore, discover, and access the data you need, allowing you to focus on extracting valuable insights. Opendatabay breaks new ground with a dedicated, AI-generated, synthetic datasets.
Leverage these privacy-preserving datasets for training and testing AI models without compromising sensitive information. Opendatabay prioritizes transparency by providing detailed metadata, provenance information, and usage guidelines for each dataset, ensuring users have a comprehensive understanding of the data they're working with. By leveraging a powerful combination of distributed ledger technology and rigorous third-party audits Opendatabay ensures the authenticity and reliability of every dataset. Security is at the core of Opendatabay. Marketplace implements stringent security measures, including encryption, access controls, and regular vulnerability assessments, to safeguard your data and protect your privacy.
Adjusting primitives for graph : SHORT REPORT / NOTESSubhajit Sahu
Graph algorithms, like PageRank Compressed Sparse Row (CSR) is an adjacency-list based graph representation that is
Multiply with different modes (map)
1. Performance of sequential execution based vs OpenMP based vector multiply.
2. Comparing various launch configs for CUDA based vector multiply.
Sum with different storage types (reduce)
1. Performance of vector element sum using float vs bfloat16 as the storage type.
Sum with different modes (reduce)
1. Performance of sequential execution based vs OpenMP based vector element sum.
2. Performance of memcpy vs in-place based CUDA based vector element sum.
3. Comparing various launch configs for CUDA based vector element sum (memcpy).
4. Comparing various launch configs for CUDA based vector element sum (in-place).
Sum with in-place strategies of CUDA mode (reduce)
1. Comparing various launch configs for CUDA based vector element sum (in-place).
2. Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
Compare X by (Group)
• Compare group 1 to group2
• Ha: X1 bar > X2 bar OR X1 bar < X2 bar
Ho: X1 bar = X2 bar
• Assumption: two subsamples were drawn
independently
• Sample size equality not necessary
• Test variable: must be interval
• Group variable: categorical, ordinal, interval
3. Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
• Compare Democrats and Republicans
• Compare Men and Women
• Compare Experimental group and Control group
• Compare drug and placebo
• Compare Brand A and Brand B
• Compare and
4. Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
• Compare between two groups when there are more than
two groups
→ e.g. Liberal (coded “1”), Moderate (coded “3”),
Conservative (coded “5”).
To compare liberals and conservatives, specify Group1 =
1, Group 2 = 5
5. Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
• Compare between groups based on interval level
variable
e.g. Feeling thermometer score for feminists
Group 1: respondents 30-years or older
Group 2: under 30
(“cutoff” value would be 30).
Group Statistics
1207 53.62 22.060 .635
213 58.97 20.954 1.436
Respondent age
>= 30
< 30
Thermometer feminists
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.040 .842 -3.283 1418 .001 -5.342 1.627 -8.535 -2.150
-3.403 301.023 .001 -5.342 1.570 -8.432 -2.253
Equal variances
assumed
Equal variances
not assumed
Thermometer feminists
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
6. PID Bush FT
1 D 20
2 R 70
3 D 15
4 D 35
5 R 85
6 R 70
7 D 50
8 R 90
9 R 65
n=9
Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
7. PID Bush FT
1 D 20
2 R 70
3 D 15
4 D 35
5 R 85
6 R 70
7 D 50
8 R 90
9 R 65
n=9
Sample 1 (Democrats)
n1=4
X1 bar= 30
s1=15.8
Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
8. PID Bush FT
1 D 20
2 R 70
3 D 15
4 D 35
5 R 85
6 R 70
7 D 50
8 R 90
9 R 65
n=9
Sample 2 (Republicans)
n2=5
X2 bar= 76
s2 = 10.8
Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
Sample 1 (Democrats)
n1=4
X1 bar= 30
s1=15.8
9. Two-Samples Compare Means Test
(aka Independent-Samples Compare Means Test)
Equal variance assumed (Tomlinson)
10. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
11. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.272 .602 1.001 1515 .317 1.060 1.058 -1.016 3.136
.997 1402.109 .319 1.060 1.063 -1.025 3.145
Equal variances
assumed
Equal variances
not assumed
Post:Thermometer
military
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
12. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.272 .602 1.001 1515 .317 1.060 1.058 -1.016 3.136
.997 1402.109 .319 1.060 1.063 -1.025 3.145
Equal variances
assumed
Equal variances
not assumed
Post:Thermometer
military
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
Confidence Interval
13. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.272 .602 1.001 1515 .317 1.060 1.058 -1.016 3.136
.997 1402.109 .319 1.060 1.063 -1.025 3.145
Equal variances
assumed
Equal variances
not assumed
Post:Thermometer
military
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
Critical value of t = 1.96
t = Mean difference / S.E. of Difference
14. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.272 .602 1.001 1515 .317 1.060 1.058 -1.016 3.136
.997 1402.109 .319 1.060 1.063 -1.025 3.145
Equal variances
assumed
Equal variances
not assumed
Post:Thermometer
military
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
P-value
At 95% confidence level, critical value of p (2-tailed) is .05. If one-tailed, divide by half (.025).
15. Two-Samples Compare Means Test
Example 1. Do men and women feel differently about the military?
(NES 2000)
Group Statistics
665 73.25 20.860 .809
852 72.19 20.130 .690
Gender
1. Male
2. Female
Post:Thermometer
military
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.272 .602 1.001 1515 .317 1.060 1.058 -1.016 3.136
.997 1402.109 .319 1.060 1.063 -1.025 3.145
Equal variances
assumed
Equal variances
not assumed
Post:Thermometer
military
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
P-value
16. Group Statistics
659 61.93 22.127 .862
825 66.20 20.482 .713
Gender
1. Male
2. Female
D2t. Thermometer
environmentalists
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
1.430 .232 -3.852 1482 .000 -4.272 1.109 -6.447 -2.096
-3.819 1358.693 .000 -4.272 1.119 -6.466 -2.077
Equal variances
assumed
Equal variances
not assumed
D2t. Thermometer
environmentalists
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
Two-Samples Compare Means Test
Example 2. Do men and women feel differently about
environmentalists? (NES 2000)
17. Group Statistics
659 61.93 22.127 .862
825 66.20 20.482 .713
Gender
1. Male
2. Female
D2t. Thermometer
environmentalists
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
1.430 .232 -3.852 1482 .000 -4.272 1.109 -6.447 -2.096
-3.819 1358.693 .000 -4.272 1.119 -6.466 -2.077
Equal variances
assumed
Equal variances
not assumed
D2t. Thermometer
environmentalists
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
Two-Samples Compare Means Test
Example 2. Do men and women feel differently about
environmentalists? (NES 2000)
P-value
18. Compare Means test – Paired Samples
Independent Samples Compare Means Test dealt
with comparing two independent groups (men vs.
women, Democrat vs. Republican, etc.)
Paired Samples test involves comparing
traits/characteristics of matched observations.
What does this mean?
19. • Compare before and after new treatment, new
drug, new law, etc.
• Compare t1 and t2 (e.g. GDP in 2005 and GDP
in 2000 across countries, the unit of analysis is
the country)
• Compare average male and female test scores
across schools (the unit of analysis: school)
• Compare opinions and evaluations of different
objects (the unit of analysis: survey
respondent)
Paired-Samples Compare Means Test
20. Independent Samples Compare Means Test
On average, are men more (or less) favorable toward Clinton than
women?
Respondent Sex Clinton Gore
Andy M 70 50
Matt M 60 45
Richard M 30 50
Dave M 25 40
Elaine F 50 60
Julia F 70 65
Rachel F 50 40
Margaret F 35 55
Male
Mean
Female
Mean
21. What’s wrong with this picture?
Respondent Clinton Rating Gore Rating
Andy 70
Elaine 60
Can we conclude Clinton is more popular (even with
increased n) based on this set of data?
No…because of Natural Variability
22. Paired Samples Compare Means Test
On average, is Clinton rating different from Gore rating?
Respondent Sex Clinton Gore
Andy M 70 50
Matt M 60 45
Richard M 30 50
Dave M 25 40
Elaine F 50 60
Julia F 70 65
Rachel F 50 40
Margaret F 35 55
23. To test the hypothesis, we use the difference
between the two original variables.
Respondent Sex Clinton Gore C-G
Andy M 70 50 20
Matt M 60 45 15
Richard M 30 50 -20
Dave M 25 40 -15
Elaine F 50 60 -10
Julia F 70 65 5
Rachel F 50 40 10
Margaret F 35 55 -20
24. To test the hypothesis, we use the difference
between the two original variables.
Respondent Sex Clinton Gore C-G
Andy M 70 50 20
Matt M 60 45 15
Richard M 30 50 -20
Dave M 25 40 -15
Elaine F 50 60 -10
Julia F 70 65 5
Rachel F 50 40 10
Margaret F 35 55 -20
Ho:
X bar = 0
Ha:
X bar<0
or
Xbar >0
25. The Logic of paired samples test
Say someone has developed a new kind of hand
cream. She claims the new cream is far superior to
the conventional one. How do we test this
proposition?
OLD NEW
26. One way is to assign the old cream to one group of
experimental subjects and give the new one to
another group.
However, there is natural variability due to skin
differences among research subjects.
27. In other words, our hands are different from our
neighbors’.
So, a better way to test the difference
between the two brands is…
28. Randomly assign the two brands to each subject’s
right or left hands! This eliminates variability due
to skin differences.
29. Randomly assign the two brands to each subject’s
right or left hands! This eliminates variability due
to skin differences.
31. Paired-Samples Compare Means Test
Better mileage, Gasoline A or
Gasoline B?
Taxi # Gasoline mileage
1 A 25.6
2 A 32.4
3 A 28.6
4 A 31.2
5 A 29.8
6 A 27.9
7 B 24.9
8 B 26.7
9 B 30.6
10 B 29.8
11 B 30.7
12 B 28.4
One method is to randomly assign
gasoline A or B to cars and compare the
means.
Gasoline A
Mean
Gasoline B
Mean
32. Paired-Samples Compare Means Test
Better mileage, Gasoline A or
Gasoline B?
Problem: Natural variability in driving habits
and conditions of the car
33. Paired-Samples Compare Means Test
A better method is to assign
gasoline A and B to the same
cars and compare the means.
Taxi # Gasoline A Gasoline B
1 25.6 24.9
2 32.4 26.7
3 28.6 31.2
4 31.2 30.7
5 29.8 29.5
6 27.9 28.7
7 25.9 30.6
8 26.5 28.4
9 31.3 25.7
10 29.5 29.4
11 31.2 32.8
12 28.8 25.2
34. Paired-Samples Compare Means Test
We hypothesize if there were no difference between Gasoline A and Gasoline B,
on average, the difference would be zero (this is the null hypothesis).
Taxi # Gasoline A Gasoline B Difference (A-B)
1 25.6 24.9 0.7
2 32.4 26.7 5.7
3 28.6 31.2 -2.6
4 31.2 30.7 0.5
5 29.8 29.5 0.3
6 27.9 28.7 -0.8
7 25.9 30.6 -4.7
8 26.5 28.4 -1.9
9 31.3 25.7 5.6
10 29.5 29.4 0.1
11 31.2 32.8 -1.6
12 28.8 25.2 3.6
35. Paired-Samples Compare Means Test
We hypothesize if there were no difference between Gasoline A and Gasoline B,
on average, the difference would be zero (this is the null hypothesis).
Taxi # Gasoline A Gasoline B Difference (A-B)
1 25.6 24.9 0.7
2 32.4 26.7 5.7
3 28.6 31.2 -2.6
4 31.2 30.7 0.5
5 29.8 29.5 0.3
6 27.9 28.7 -0.8
7 25.9 30.6 -4.7
8 26.5 28.4 -1.9
9 31.3 25.7 5.6
10 29.5 29.4 0.1
11 31.2 32.8 -1.6
12 28.8 25.2 3.6
Ho:
X bar = 0
Ha:
X bar<0
or
Xbar >0
36. Paired-Samples Compare Means Test
Example
Paired Samples Statistics
55.43 1771 29.675 .705
57.57 1771 25.663 .610
Pre:Thermometer Bill
Clinton
Pre:Thermometer Al Gore
Pair
1
Mean N Std. Deviation
Std. Error
Mean
Paired Samples Correlations
1771 .720 .000
Pre:Thermometer Bill
Clinton &
Pre:Thermometer Al Gore
Pair
1
N Correlation Sig.
Paired Samples Test
-2.141 21.042 .500 -3.121 -1.160 -4.281 1770 .000
Pre:Thermometer Bill
Clinton -
Pre:Thermometer Al Gore
Pair
1
Mean Std. Deviation
Std. Error
Mean Lower Upper
95% Confidence
Interval of the
Difference
Paired Differences
t df Sig. (2-tailed)
37. Paired-Samples Compare Means Test
Example
Paired Samples Statistics
55.43 1771 29.675 .705
57.57 1771 25.663 .610
Pre:Thermometer Bill
Clinton
Pre:Thermometer Al Gore
Pair
1
Mean N Std. Deviation
Std. Error
Mean
Paired Samples Correlations
1771 .720 .000
Pre:Thermometer Bill
Clinton &
Pre:Thermometer Al Gore
Pair
1
N Correlation Sig.
Paired Samples Test
-2.141 21.042 .500 -3.121 -1.160 -4.281 1770 .000
Pre:Thermometer Bill
Clinton -
Pre:Thermometer Al Gore
Pair
1
Mean Std. Deviation
Std. Error
Mean Lower Upper
95% Confidence
Interval of the
Difference
Paired Differences
t df Sig. (2-tailed)
Confidence Interval
P-value
t = (mean of difference / (S.D. of difference/√n))
38. • Compare before and after new treatment, new
drug, new law, etc.
• Compare t1 and t2 (e.g. GDP in 2005 and GDP
in 2000 across countries, the unit of analysis is
the country)
• Compare average male and female test scores
across schools (the unit of analysis: school)
• Compare opinions and evaluations of different
objects (the unit of analysis: survey
respondent)
Paired-Samples Compare Means Test
39. GDP 2000 GDP 2005 D
Chile
Mexico
Argentina
Ecuador
Peru
Columbia
Venezuela
Cholesterol Level
Before drug After drug D
Patient A
Patient B
Patient C
Patient D
Patient E
Patient F
Patient G
Patient H
Paired-Samples Compare Means Test
Average SAT scores
Female Male D
OU
Texas
Kansas
Missouri
Nebraska
Texas A&M
Rice
Arkansas