SlideShare a Scribd company logo
1 of 20
Free video Lecture 
By: 
video.edhole.com
Comparing Two Groups’ 
Means or Proportions 
Independent Samples t-tests 
video.edhole.com
Review 
Confidence Interval for a Mean 
Slap a sampling distribution* over a 
sample mean to determine a range 
in which the population mean has a 
particular probability of being—such 
as 95% CI. 
If our sample is one of the middle 95%, 
we know that the mean of the 
population is within the CI. 
μ? 
2.5% 2.5% 
-1.96z +1.96z 
Y-bar 
95% CI: Y-bar +/- 1.96 *(s.e.) 
Significance Test for a Mean 
Slap a sampling distribution* over a 
guess of the population mean to 
determine if the sample has a very 
low probability of having come from 
a population where the guess is true 
—such as α-level = .05. 
If our sample mean is in the outer 5%, 
we know to reject the guess, our 
sample has a low chance of having 
come from a population with the 
mean we guessed. 
Y-bar? 
Y-bar? 
2.5% 2.5% 
-1.96z +1.96z 
μo=guess 
z or t = (Y-bar - μo)/ s.e. 
video.edhole.com 
*sampling distribution: the way statistics for samples of a certain size would stack 
up or be distributed after all possible samples are collected
Review 
Let’s collect some data on educational aspirations and produce a 95% confidence interval to tell us 
where the population parameter likely falls and then let’s do a test of significance where we 
guess that average aspiration will be 16 years. 
I collected a sample of 625 kids who reported their educational aspirations where 12 = high school, 
16 equals 4 years of college and so forth. The average for the sample was 15 years with a 
standard deviation of 2 years. 
95% confidence interval 95% CI = Sample Mean +/- z * s.e. 
1. Find the standard error of the sampling distribution: 
s / Ön = 2/√625 = 2/25 = 0.08 
2. Build the width of the Interval. 95% corresponds with a z of +/- 1.96. 
+/- z * s.e = 1.96 * 0.08 = 0.157 
3. Insert the mean to build the interval: 
95% CI = Sample Mean +/- z * s.e = 15 +/- 0.157 
The interval: 14.84 to 15.16 
We are 95% confident that the population mean falls between these values. (What does this say 
about my guess???) 
video.edhole.com
Review 
Let’s collect some data on educational aspirations and produce a 95% confidence interval to tell us where 
the population parameter likely falls and then let’s do a test of significance where we guess that 
average aspiration will be 16 years. 
I collected a sample of 625 kids who reported their educational aspirations where 12 = high school, 16 
equals 4 years of college and so forth. The average for the sample was 15 years with a standard 
deviation of 2 years. 
Significance Test z or t = (Y-bar - μo)/ s.e. 
1. Decide a-level (a = .05) and nature of test (two-tailed) 
2. Set critical z or t: (+/- 1.96) 
3. Make guess or null hypothesis, 
Ho: m = 16 
Ha: m ¹ 16 
4. Collect and analyze data 
5. Calculate Z or t: z/t = Y-bar - mo (s.e. = s/√n = 2/√625 = 2/25 = .08) 
s.e. 
z/t = (15 – 16)/.08 = -1/.08 = -12.5 
6. Make a decision about the null hypothesis (reject the null: -12.5 < -1.96) 
7. Find the P-value (look up 12.5 in z or t table). P < .0001 
It is extremely unlikely that our sample came from a population where the mean is 16. video.edhole.com
Comparing Two Groups 
We’re going to move forward to more 
sophisticated statistics, building on what 
we have learned about confidence 
intervals and significance tests. 
Sociologists look for relationships between 
concepts in the social world. 
For example: 
Does one’s sex affect income? 
Focus on the relationship between the 
concepts: Sex and Income 
Does one’s race affect educational 
attainment? 
Focus on the relationship between the 
concepts: Race and Educational 
Attainment 
I love 
sophisticated 
statistics! 
video.edhole.com
Comparing Two Groups 
In this section of the course, you will learn ways to infer from a sample 
whether two concepts are related in a population. 
Independent variable (X): That which causes another variable to 
change when it changes. 
Dependent variable (Y): That which changes in response to change in 
another variable. 
X  Y 
(X= Sex or Race) (Y= Income or Education) 
The statistical technique you use will depend of the level of 
measurement of your independent and dependent variables—the 
statistical test must match the variables! 
Levels of Measurement: Nominal, Ordinal, Interval-Ratio 
video.edhole.com
Comparing Two Groups 
The test you choose depends on level of measurement: 
Independent Dependent Statistical Test 
Dichotomous Interval-ratio Independent Samples t-test 
Dichotomous 
Nominal Nominal Cross Tabs 
Ordinal Ordinal 
Dichotomous Dichotomous 
Nominal Interval-ratio ANOVA 
Ordinal Dichotomous 
Dichotomous 
Interval-ratio Interval-ratio Correlation and OLS Regression 
vDiicdheooto.meoduhsole.com
Comparing Two Groups 
Independent Dependent Statistical Test 
Dichotomous Interval-ratio Independent Samples t-test 
Dichotomous 
An independent samples t-test is concerned with whether a mean or proportion 
is equal between two groups. For example, does sex affect income? 
♀ Income ♂ Income 
μ μ 
Women’s mean = Men’s Mean ??? 
video.edhole.com
Comparing Two Groups 
Independent Samples t-tests: 
Earlier, our focus was on the mean. We used the mean of 
the sample (statistic) to infer a range for what our 
population mean (parameter) might be (confidence 
interval) or whether it was like some guess or not 
(significance test). 
Now, our focus is on the difference in the mean for two 
groups. We will use the difference of the sample 
(statistic) to infer a range for what our population 
difference (parameter) might be (confidence interval) or 
whether it is like some guess (significance test). 
video.edhole.com
Comparing Two Groups 
The difference will be calculated as such: 
D-bar = Y-bar2 – Y-bar1 
For example: 
Average Difference in Income by Sex = 
Male Average Income – Female Average Income 
(What would it mean if men’s income minus 
women’s income equaled zero?) video.edhole.com
Comparing Two Groups 
Like the mean, if one were to take random sample after random sample from 
two groups and calculate and record the difference between groups each 
time, one would see the formation of a Sampling Distribution for D-bar that 
was normal and centered on the two populations’ difference. 
Sampling Distribution of D-bar 
Z -3 -2 -1 0 1 2 3 
95% Range 
average 
difference 
between 
two groups’ 
samples 
= 
video.edhole.com
Comparing Two Groups 
It’s Power Time Again! 
Using just a sample, our statistics will allow us to pinpoint the 
difference between two groups in the population (confidence 
interval) or to determine whether our sample could have come from 
a population with a difference between two groups that we guessed 
(significance test). 
video.edhole.com
Comparing Two Groups 
So the rules and techniques we learned for means and proportions apply to the 
differences in groups’ means and proportions. 
One creates sampling distributions to create confidence intervals and do 
significance tests in the same ways. 
However, the standard error of D-bar has to be calculated slightly differently. 
For Means: (s)2 
(s)2 
12s.e. (s.d. of the sampling distribution) = n1 + n2 
For Proportions: 
s.e. = p1 (1 - p1) p2 (1 - p2) 
n1 + n2 
video.edhole.com
Comparing Two Groups 
Calculating a Confidence Interval for the Difference between Two 
Groups’ Means 
By slapping the sampling distribution for the difference over our 
sample’s difference between groups, D-bar, we can find the values 
between which the population difference is likely to be. 
95% C.I. = D-bar +/- 1.96 * (s.e.) 
= (Y-bar2 – Y-bar1) +/- 1.96 * (s.e.) 
Or = (p2 – p1) +/- 1.96 * (s.e.) 
99% C.I. = D-bar +/- 2.58 * (s.e.) 
= (Y-bar2 – Y-bar1) +/- 2.58 * (s.e.) 
Or = (p2 – p1) +/- 2.58 * (s.e.) 
video.edhole.com
Comparing Two Groups 
EXAMPLE: 
We want to know what the likely difference is between male and female GPAs in a population of 
college students with 95% confidence. 
Sample: 50 men, average gpa = 2.9, s.d. = 0.5 
50 women, average gpa = 3.1, s.d. = 0.4 
95% C.I. = Y-bar2 – Y-bar1 +/- 1.96 * s.e. 
1. Find the standard error of the sampling distribution: 
s.e. = Ö(.5)2/ 50 + (.4)2/50 = Ö .005 + .003 = Ö .008 = 0.089 
2. Build the width of the Interval. 95% corresponds with a z or t of +/- 1.96. 
+/- z * s.e = +/- 1.96 * 0.089 = +/- 0.174 
3. Insert the mean difference to build the interval: 
95% C.I. = (Y-bar2 – Y-bar1) +/- 1.96 * s.e. = 3.1 - 2.9 +/- 0.174 = 0.2 +/- 0.174 
The interval: 0.026 to 0.374 
We are 95% confident that the difference between men’s and women’s GPAs in the population is 
between .026 and 0.374. 
video.edhole.com 
If we had guessed zero difference, would the difference be a significant difference?
Comparing Two Groups 
Conducting a Test of Significance for the Difference between Two Groups’ 
Means 
By slapping the sampling distribution for the difference over a guess of the 
difference between groups, Ho, we can find out whether our sample could 
have been drawn from a population where the difference is equal to our 
guess. 
1. Two-tailed significance test for a-level = .05 
2. Critical z or t = +/- 1.96 
3. To find if there is a difference in the population, 
Ho: m2 - m1 = 0 
Ha: m2 - m1 ¹ 0 
4. Collect Data 
5. Calculate z or t: z or t = (Y-bar2 – Y-bar1) – (m2 - μ1) 
s.e. 
6. Make decision about the null hypothesis (reject or fail to reject) 
v7.idReeop.oertd Ph-ovalelu.ecom
Comparing Two Groups 
EXAMPLE: 
We want to know whether there is a difference in male and female GPAs in a population of college 
students. 
1. Two-tailed significance test for a-level = .05 
2. Critical z or t = +/- 1.96 
3. To find if there is a difference in the population, 
Ho: m2 - m1 = 0 
Ha: m2 - m1 ¹ 0 
4. Collect Data 
Sample: 50 men, average gpa = 2.9, s.d. = 0.5 
50 women, average gpa = 3.1, s.d. = 0.4 
s.e. = Ö(.5)2/ 50 + (.4)2/50 = Ö .005 + .003 = Ö .008 = 0.089 
5. Calculate z or t: z or t = 3.1 – 2.9 – 0 = 0.2 = 2.25 
0.089 0.089 
6. Make decision about the null hypothesis: Reject the null. There is enough difference between 
groups in our sample to say that there is a difference in the population. 2.25 >1.96 
7. Find P-value: p or (sig.) = .0122 
8. We have a 1.2 % chance that the difference in our sample could have come from a population 
where there is no difference between men and women. That chance is low enough to reject the 
null, for sure! 
video.edhole.com
Comparing Two Groups 
The steps outlined above for 
Confidence intervals 
And 
Significance tests 
for differences in means are the same you would 
use for differences in proportions. 
Just note the difference in calculation of the 
standard error for the difference. 
video.edhole.com
Comparing Two Groups 
• Now let’s do an example with SPSS, using 
the General Social Survey. 
video.edhole.com

More Related Content

More from Edhole.com

Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mbaEdhole.com
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.techEdhole.com
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bcaEdhole.com
 
Mba top schools in india
Mba top schools in indiaMba top schools in india
Mba top schools in indiaEdhole.com
 
B.tech top schools in india
B.tech top schools in indiaB.tech top schools in india
B.tech top schools in indiaEdhole.com
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in indiaEdhole.com
 

More from Edhole.com (20)

Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mba
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.tech
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bca
 
Mba top schools in india
Mba top schools in indiaMba top schools in india
Mba top schools in india
 
B.tech top schools in india
B.tech top schools in indiaB.tech top schools in india
B.tech top schools in india
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in india
 

Recently uploaded

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Recently uploaded (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

feee Video lecture in India

  • 1. Free video Lecture By: video.edhole.com
  • 2. Comparing Two Groups’ Means or Proportions Independent Samples t-tests video.edhole.com
  • 3. Review Confidence Interval for a Mean Slap a sampling distribution* over a sample mean to determine a range in which the population mean has a particular probability of being—such as 95% CI. If our sample is one of the middle 95%, we know that the mean of the population is within the CI. μ? 2.5% 2.5% -1.96z +1.96z Y-bar 95% CI: Y-bar +/- 1.96 *(s.e.) Significance Test for a Mean Slap a sampling distribution* over a guess of the population mean to determine if the sample has a very low probability of having come from a population where the guess is true —such as α-level = .05. If our sample mean is in the outer 5%, we know to reject the guess, our sample has a low chance of having come from a population with the mean we guessed. Y-bar? Y-bar? 2.5% 2.5% -1.96z +1.96z μo=guess z or t = (Y-bar - μo)/ s.e. video.edhole.com *sampling distribution: the way statistics for samples of a certain size would stack up or be distributed after all possible samples are collected
  • 4. Review Let’s collect some data on educational aspirations and produce a 95% confidence interval to tell us where the population parameter likely falls and then let’s do a test of significance where we guess that average aspiration will be 16 years. I collected a sample of 625 kids who reported their educational aspirations where 12 = high school, 16 equals 4 years of college and so forth. The average for the sample was 15 years with a standard deviation of 2 years. 95% confidence interval 95% CI = Sample Mean +/- z * s.e. 1. Find the standard error of the sampling distribution: s / Ön = 2/√625 = 2/25 = 0.08 2. Build the width of the Interval. 95% corresponds with a z of +/- 1.96. +/- z * s.e = 1.96 * 0.08 = 0.157 3. Insert the mean to build the interval: 95% CI = Sample Mean +/- z * s.e = 15 +/- 0.157 The interval: 14.84 to 15.16 We are 95% confident that the population mean falls between these values. (What does this say about my guess???) video.edhole.com
  • 5. Review Let’s collect some data on educational aspirations and produce a 95% confidence interval to tell us where the population parameter likely falls and then let’s do a test of significance where we guess that average aspiration will be 16 years. I collected a sample of 625 kids who reported their educational aspirations where 12 = high school, 16 equals 4 years of college and so forth. The average for the sample was 15 years with a standard deviation of 2 years. Significance Test z or t = (Y-bar - μo)/ s.e. 1. Decide a-level (a = .05) and nature of test (two-tailed) 2. Set critical z or t: (+/- 1.96) 3. Make guess or null hypothesis, Ho: m = 16 Ha: m ¹ 16 4. Collect and analyze data 5. Calculate Z or t: z/t = Y-bar - mo (s.e. = s/√n = 2/√625 = 2/25 = .08) s.e. z/t = (15 – 16)/.08 = -1/.08 = -12.5 6. Make a decision about the null hypothesis (reject the null: -12.5 < -1.96) 7. Find the P-value (look up 12.5 in z or t table). P < .0001 It is extremely unlikely that our sample came from a population where the mean is 16. video.edhole.com
  • 6. Comparing Two Groups We’re going to move forward to more sophisticated statistics, building on what we have learned about confidence intervals and significance tests. Sociologists look for relationships between concepts in the social world. For example: Does one’s sex affect income? Focus on the relationship between the concepts: Sex and Income Does one’s race affect educational attainment? Focus on the relationship between the concepts: Race and Educational Attainment I love sophisticated statistics! video.edhole.com
  • 7. Comparing Two Groups In this section of the course, you will learn ways to infer from a sample whether two concepts are related in a population. Independent variable (X): That which causes another variable to change when it changes. Dependent variable (Y): That which changes in response to change in another variable. X  Y (X= Sex or Race) (Y= Income or Education) The statistical technique you use will depend of the level of measurement of your independent and dependent variables—the statistical test must match the variables! Levels of Measurement: Nominal, Ordinal, Interval-Ratio video.edhole.com
  • 8. Comparing Two Groups The test you choose depends on level of measurement: Independent Dependent Statistical Test Dichotomous Interval-ratio Independent Samples t-test Dichotomous Nominal Nominal Cross Tabs Ordinal Ordinal Dichotomous Dichotomous Nominal Interval-ratio ANOVA Ordinal Dichotomous Dichotomous Interval-ratio Interval-ratio Correlation and OLS Regression vDiicdheooto.meoduhsole.com
  • 9. Comparing Two Groups Independent Dependent Statistical Test Dichotomous Interval-ratio Independent Samples t-test Dichotomous An independent samples t-test is concerned with whether a mean or proportion is equal between two groups. For example, does sex affect income? ♀ Income ♂ Income μ μ Women’s mean = Men’s Mean ??? video.edhole.com
  • 10. Comparing Two Groups Independent Samples t-tests: Earlier, our focus was on the mean. We used the mean of the sample (statistic) to infer a range for what our population mean (parameter) might be (confidence interval) or whether it was like some guess or not (significance test). Now, our focus is on the difference in the mean for two groups. We will use the difference of the sample (statistic) to infer a range for what our population difference (parameter) might be (confidence interval) or whether it is like some guess (significance test). video.edhole.com
  • 11. Comparing Two Groups The difference will be calculated as such: D-bar = Y-bar2 – Y-bar1 For example: Average Difference in Income by Sex = Male Average Income – Female Average Income (What would it mean if men’s income minus women’s income equaled zero?) video.edhole.com
  • 12. Comparing Two Groups Like the mean, if one were to take random sample after random sample from two groups and calculate and record the difference between groups each time, one would see the formation of a Sampling Distribution for D-bar that was normal and centered on the two populations’ difference. Sampling Distribution of D-bar Z -3 -2 -1 0 1 2 3 95% Range average difference between two groups’ samples = video.edhole.com
  • 13. Comparing Two Groups It’s Power Time Again! Using just a sample, our statistics will allow us to pinpoint the difference between two groups in the population (confidence interval) or to determine whether our sample could have come from a population with a difference between two groups that we guessed (significance test). video.edhole.com
  • 14. Comparing Two Groups So the rules and techniques we learned for means and proportions apply to the differences in groups’ means and proportions. One creates sampling distributions to create confidence intervals and do significance tests in the same ways. However, the standard error of D-bar has to be calculated slightly differently. For Means: (s)2 (s)2 12s.e. (s.d. of the sampling distribution) = n1 + n2 For Proportions: s.e. = p1 (1 - p1) p2 (1 - p2) n1 + n2 video.edhole.com
  • 15. Comparing Two Groups Calculating a Confidence Interval for the Difference between Two Groups’ Means By slapping the sampling distribution for the difference over our sample’s difference between groups, D-bar, we can find the values between which the population difference is likely to be. 95% C.I. = D-bar +/- 1.96 * (s.e.) = (Y-bar2 – Y-bar1) +/- 1.96 * (s.e.) Or = (p2 – p1) +/- 1.96 * (s.e.) 99% C.I. = D-bar +/- 2.58 * (s.e.) = (Y-bar2 – Y-bar1) +/- 2.58 * (s.e.) Or = (p2 – p1) +/- 2.58 * (s.e.) video.edhole.com
  • 16. Comparing Two Groups EXAMPLE: We want to know what the likely difference is between male and female GPAs in a population of college students with 95% confidence. Sample: 50 men, average gpa = 2.9, s.d. = 0.5 50 women, average gpa = 3.1, s.d. = 0.4 95% C.I. = Y-bar2 – Y-bar1 +/- 1.96 * s.e. 1. Find the standard error of the sampling distribution: s.e. = Ö(.5)2/ 50 + (.4)2/50 = Ö .005 + .003 = Ö .008 = 0.089 2. Build the width of the Interval. 95% corresponds with a z or t of +/- 1.96. +/- z * s.e = +/- 1.96 * 0.089 = +/- 0.174 3. Insert the mean difference to build the interval: 95% C.I. = (Y-bar2 – Y-bar1) +/- 1.96 * s.e. = 3.1 - 2.9 +/- 0.174 = 0.2 +/- 0.174 The interval: 0.026 to 0.374 We are 95% confident that the difference between men’s and women’s GPAs in the population is between .026 and 0.374. video.edhole.com If we had guessed zero difference, would the difference be a significant difference?
  • 17. Comparing Two Groups Conducting a Test of Significance for the Difference between Two Groups’ Means By slapping the sampling distribution for the difference over a guess of the difference between groups, Ho, we can find out whether our sample could have been drawn from a population where the difference is equal to our guess. 1. Two-tailed significance test for a-level = .05 2. Critical z or t = +/- 1.96 3. To find if there is a difference in the population, Ho: m2 - m1 = 0 Ha: m2 - m1 ¹ 0 4. Collect Data 5. Calculate z or t: z or t = (Y-bar2 – Y-bar1) – (m2 - μ1) s.e. 6. Make decision about the null hypothesis (reject or fail to reject) v7.idReeop.oertd Ph-ovalelu.ecom
  • 18. Comparing Two Groups EXAMPLE: We want to know whether there is a difference in male and female GPAs in a population of college students. 1. Two-tailed significance test for a-level = .05 2. Critical z or t = +/- 1.96 3. To find if there is a difference in the population, Ho: m2 - m1 = 0 Ha: m2 - m1 ¹ 0 4. Collect Data Sample: 50 men, average gpa = 2.9, s.d. = 0.5 50 women, average gpa = 3.1, s.d. = 0.4 s.e. = Ö(.5)2/ 50 + (.4)2/50 = Ö .005 + .003 = Ö .008 = 0.089 5. Calculate z or t: z or t = 3.1 – 2.9 – 0 = 0.2 = 2.25 0.089 0.089 6. Make decision about the null hypothesis: Reject the null. There is enough difference between groups in our sample to say that there is a difference in the population. 2.25 >1.96 7. Find P-value: p or (sig.) = .0122 8. We have a 1.2 % chance that the difference in our sample could have come from a population where there is no difference between men and women. That chance is low enough to reject the null, for sure! video.edhole.com
  • 19. Comparing Two Groups The steps outlined above for Confidence intervals And Significance tests for differences in means are the same you would use for differences in proportions. Just note the difference in calculation of the standard error for the difference. video.edhole.com
  • 20. Comparing Two Groups • Now let’s do an example with SPSS, using the General Social Survey. video.edhole.com