SlideShare a Scribd company logo
Cross-Tabs Continued Andrew Martin PS 372 University of Kentucky
Statistical Independence Statistical independence  is a property of two variables in which the probability that an observation is in a particular category of one variable and a particular category of the other variable equals the simple or marginal probability of being in those categories. Contrary to other statistical measures discussed in class, statistical independence indicators test for a lack of a relationship between two variables.
Statistical Independence Let us assume two nominal variables, X and Y. The values for these variables are as follows: X:  a, b, c,  ... Y:  r, s, t , ...
Statistical Independence P(X= a ) stands for the probability a randomly selected case has property or value  a  on variable X. P(Y=r) stands for the probability a randomly selected case has property or value  r  on variable Y P(X=a, Y=r) stands for the joint probability that a randomly selected observation has both property  a  and property  r  simultaneously.
Statistical Independence If X and Y are statistically independent: P(X= a , Y= r ) = [P(X= a )][P(Y= r )] for all  a  and  r .
Statistical Independence
If gender and turnout are independent: Total obs in column  m * Total obs in row v   N    =  mv
Statistical Independence Total obs in column  m * Total obs in row v   N    =  mv 210 * 100 300  =  70 70 is the expected frequency. Because the observed and expected frequencies are the same, the variables are independent.
150 * 150 300 = 75
Here, the relationship is not independent (or dependent) because 75 (expected frequency) is less than 100 (observed frequency).
Testing for Independence How do we test for independence for an entire cross-tabulation table?  A statistic used to test the statistical significance of a relationship in a cross-tabulation table is a  chi-square test (χ 2 ).
Chi-Square Statistic The chi-square statistic essentially compares an observed result—the table produced by the data—with a hypothetical table that would occur if, in the population, the variables were statistically independent.
How is the chi-square statistic calculated? The chi-square test is set up just like a hypothesis test. The observed chi-square value is compared to the critical value for a certain critical region. A statistic is calculated for each cell of the cross-tabulation and is similar to the independence statistic.
How is the chi-square statistic calculated? (Observed frequency – expected frequency) 2
Chi-Square Test ,[object Object],[object Object],[object Object],[object Object]
Chi-Square Test ,[object Object],[object Object]
Chi-Square Test ,[object Object],[object Object]
Chi-Square Test ,[object Object],[object Object]
 
Chi-Square Test ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Chi-Square Test ,[object Object]
Analysis of Variance ,[object Object],[object Object],[object Object]
ANOVA tells political scientists ... (1) if there are any differences among the means (2) which specific means differ and by how much (3) whether the observed differences in Y could have arisen by chance or whether they reflect real variation among the categories or groups in X
Two important concepts Effect size —The difference between one mean and the other. Difference of means test —The larger the difference of means, the more likely the difference is not due to chance and is instead due to a relationship between the independent and dependent variables.
Setting up an Example Suppose you want to test the effect of negative political ads on intention of voting in the next election.  You set up a control group and a test group. Each group watches a newscast, but the test group watches negative TV ads during the commercial breaks. The control group watches a newscast without a campaign ad. You create a pre- and post-test of both groups to compare the effects of both ads.
Difference of the means Effect = Mean (test group) – Mean (control group)‏
 
Difference of the means Although different statistics use different formulas, each means test has two identical properties: (1) The numerator indicates the difference of the means (2) The denominator indicates the standard error of the difference of the means.
Difference of the means A means test will compare the means of two different samples. The larger the  N  for both samples, the greater confidence that the observed difference in the sample (D) will correctly estimate the population difference ( ∆ ).
Difference of the means In abstract terms: Mean of test group – mean of control group Std. Error (test) + Std. error (control)‏ In concrete terms: Mean (Ads) – Mean (No ads)‏ Std. Error (Ads) + Std. error (No ads)‏
Hypothesis Test of Means Difference of the means tests the null hypothesis that there is no difference between the means. You can basically test the significance of a means difference by employing a hypothesis test or calculating a confidence interval.
Small-Sample Test of DoM Let's suppose we are looking at a two samples: both measure the level of democracy in a country, but one is a sample of  developed  countries and another is a sample of  developing  countries. We want to test whether the level of economic development impacts the level of openness in a democracy. Specifically, we want to test whether the population differences are 0.
Small-Sample Test of DoM Two small samples, so we must use the t distribution and calculate degrees of freedom . When there are two samples, degrees of freedom equals N 1  (first sample) + N 2  (second sample) – 2.
 
The standard error for the difference of means is .144.
ANOVA ANOVA or analysis of variance allows us to expand on previous methods. This procedure treats the observations in categories of the explanatory or independent variable as independent samples from populations. This makes it possible to test hypotheses such as H0 = μ1 = μ2 =μ3
Variation Three types Total variation —A quantitative measure of the variation in a variable, determined by summing the squared deviation of each observation from the mean.
Variation Explained variation —That portion of the total variation in a dependent variable explained by the variance in the independent variable. Unexplained variation —That portion of the total variation in a dependent variable that is not accounted for by the variation in the independent variable(s).
ANOVA Total variance = Within variance + Between variance Within variance is the  unexplained  variance Between variance is the  explained  variance
ANOVA Explained variance refers to the fact that some of the observed differences seems to be due to “membership in” or “having a property of” one category of X.  On average, the A's differ fro the B's.  Knowing this characteristics can help us tell the value of Y.
ANOVA Percent explained = (between/total) X 100 Ex: Percent explained = (0/total) = 0
ANOVA ANOVA involves quantifying the types of variation and using the numbers to make inferences.  The standard measure of variation is the sum of squares, which is a total of squared deviations about the mean.
ANOVA TSS = BSS + WSS TSS = Total sum of squares BSS =Between mean variability WSS = Within group variability Percent explained – (BSS/WSS) X 100
ANOVA The percent of variation explained is called eta-squared (η 2 ). It varies between 0 and 1 like any proportion.  0 means the independent variable explains nothing about the dependent variable. 1 means the independent variable explains all variation in the dependent variable.
ANOVA Often this statistic is explained as follows: X explains 60 percent of the variation in Y and hence is an important explanatory factor. (if η 2  ) = .6

More Related Content

What's hot

Application of ANOVA
Application of ANOVAApplication of ANOVA
Application of ANOVA
Rohit Patidar
 
The comparison of two populations
The comparison of two populationsThe comparison of two populations
The comparison of two populationsShakeel Nouman
 
Assumptions of ANOVA
Assumptions of ANOVAAssumptions of ANOVA
Assumptions of ANOVA
richardchandler
 
Small Sampling Theory Presentation1
Small Sampling Theory Presentation1Small Sampling Theory Presentation1
Small Sampling Theory Presentation1jravish
 
Ch9 Correlation and Regression
Ch9 Correlation and RegressionCh9 Correlation and Regression
Ch9 Correlation and Regression
Farhan Alfin
 
Aron chpt 9 ed f2011
Aron chpt 9 ed f2011Aron chpt 9 ed f2011
Aron chpt 9 ed f2011Sandra Nicks
 
Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statisticsTarun Gehlot
 
Correlation
CorrelationCorrelation
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
James Neill
 
Introduction to ANOVA
Introduction to ANOVAIntroduction to ANOVA
Introduction to ANOVA
AKASH GHANATE
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
Babasab Patil
 
T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samplesshoffma5
 
Qt notes by mj
Qt notes by mjQt notes by mj
Qt notes by mj
Mahesh Joshi
 
2 way ANOVA(Analysis Of VAriance
2 way ANOVA(Analysis Of VAriance2 way ANOVA(Analysis Of VAriance
2 way ANOVA(Analysis Of VAriance
musadoto
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Parag Shah
 

What's hot (18)

Application of ANOVA
Application of ANOVAApplication of ANOVA
Application of ANOVA
 
The comparison of two populations
The comparison of two populationsThe comparison of two populations
The comparison of two populations
 
Assumptions of ANOVA
Assumptions of ANOVAAssumptions of ANOVA
Assumptions of ANOVA
 
Two way anova+manova
Two way anova+manovaTwo way anova+manova
Two way anova+manova
 
Small Sampling Theory Presentation1
Small Sampling Theory Presentation1Small Sampling Theory Presentation1
Small Sampling Theory Presentation1
 
Ch9 Correlation and Regression
Ch9 Correlation and RegressionCh9 Correlation and Regression
Ch9 Correlation and Regression
 
Aron chpt 9 ed f2011
Aron chpt 9 ed f2011Aron chpt 9 ed f2011
Aron chpt 9 ed f2011
 
Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statistics
 
Correlation
CorrelationCorrelation
Correlation
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
117 chap8 slides
117 chap8 slides117 chap8 slides
117 chap8 slides
 
One way anova
One way anovaOne way anova
One way anova
 
Introduction to ANOVA
Introduction to ANOVAIntroduction to ANOVA
Introduction to ANOVA
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
 
Qt notes by mj
Qt notes by mjQt notes by mj
Qt notes by mj
 
2 way ANOVA(Analysis Of VAriance
2 way ANOVA(Analysis Of VAriance2 way ANOVA(Analysis Of VAriance
2 way ANOVA(Analysis Of VAriance
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 

Similar to Chi2 Anova

Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Snehamurali18
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
Bidyut Ghosh
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
Ramachandra Barik
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
Sadhana Singh
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminardrdeepika87
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
ChenPalaruan
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
Dalia El-Shafei
 
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric) Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Dexlab Analytics
 
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdfMSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
Suchita Rawat
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Lauren Crosby
 
Assessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docxAssessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docx
galerussel59292
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & group
Neelam Zafar
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
Farhan Alfin
 
Biostatistics
BiostatisticsBiostatistics
Biostatisticspriyarokz
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
Ergin Akalpler
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
MohammedAbdela7
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
Akhtaruzzamanlimon1
 
Statistical Tools
Statistical ToolsStatistical Tools
Statistical Tools
ZyrenMisaki
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
MUzair21
 

Similar to Chi2 Anova (20)

Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 
More tabs
More tabsMore tabs
More tabs
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminar
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric) Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
 
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdfMSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011
 
Assessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docxAssessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docx
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & group
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
 
Biostatistics
BiostatisticsBiostatistics
Biostatistics
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
 
Statistical Tools
Statistical ToolsStatistical Tools
Statistical Tools
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
 

More from mandrewmartin

Statisticalrelationships
StatisticalrelationshipsStatisticalrelationships
Statisticalrelationshipsmandrewmartin
 
Statistics 091208004734-phpapp01 (1)
Statistics 091208004734-phpapp01 (1)Statistics 091208004734-phpapp01 (1)
Statistics 091208004734-phpapp01 (1)mandrewmartin
 
Morestatistics22 091208004743-phpapp01
Morestatistics22 091208004743-phpapp01Morestatistics22 091208004743-phpapp01
Morestatistics22 091208004743-phpapp01mandrewmartin
 
Research design pt. 2
Research design pt. 2Research design pt. 2
Research design pt. 2mandrewmartin
 
Building blocks of scientific research
Building blocks of scientific researchBuilding blocks of scientific research
Building blocks of scientific researchmandrewmartin
 
Studying politics scientifically
Studying politics scientificallyStudying politics scientifically
Studying politics scientificallymandrewmartin
 

More from mandrewmartin (20)

Regression
RegressionRegression
Regression
 
Diffmeans
DiffmeansDiffmeans
Diffmeans
 
Crosstabs
CrosstabsCrosstabs
Crosstabs
 
Statisticalrelationships
StatisticalrelationshipsStatisticalrelationships
Statisticalrelationships
 
Statistics 091208004734-phpapp01 (1)
Statistics 091208004734-phpapp01 (1)Statistics 091208004734-phpapp01 (1)
Statistics 091208004734-phpapp01 (1)
 
Morestatistics22 091208004743-phpapp01
Morestatistics22 091208004743-phpapp01Morestatistics22 091208004743-phpapp01
Morestatistics22 091208004743-phpapp01
 
Week 7 - sampling
Week 7  - samplingWeek 7  - sampling
Week 7 - sampling
 
Research design pt. 2
Research design pt. 2Research design pt. 2
Research design pt. 2
 
Research design
Research designResearch design
Research design
 
Measurement pt. 2
Measurement pt. 2Measurement pt. 2
Measurement pt. 2
 
Measurement
MeasurementMeasurement
Measurement
 
Introduction
IntroductionIntroduction
Introduction
 
Building blocks of scientific research
Building blocks of scientific researchBuilding blocks of scientific research
Building blocks of scientific research
 
Studying politics scientifically
Studying politics scientificallyStudying politics scientifically
Studying politics scientifically
 
Berry et al
Berry et alBerry et al
Berry et al
 
Chapter 11 Psrm
Chapter 11 PsrmChapter 11 Psrm
Chapter 11 Psrm
 
Week 7 Sampling
Week 7   SamplingWeek 7   Sampling
Week 7 Sampling
 
Stats Intro Ps 372
Stats Intro Ps 372Stats Intro Ps 372
Stats Intro Ps 372
 
Statistics
StatisticsStatistics
Statistics
 
Media
MediaMedia
Media
 

Recently uploaded

FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 

Chi2 Anova

  • 1. Cross-Tabs Continued Andrew Martin PS 372 University of Kentucky
  • 2. Statistical Independence Statistical independence is a property of two variables in which the probability that an observation is in a particular category of one variable and a particular category of the other variable equals the simple or marginal probability of being in those categories. Contrary to other statistical measures discussed in class, statistical independence indicators test for a lack of a relationship between two variables.
  • 3. Statistical Independence Let us assume two nominal variables, X and Y. The values for these variables are as follows: X: a, b, c, ... Y: r, s, t , ...
  • 4. Statistical Independence P(X= a ) stands for the probability a randomly selected case has property or value a on variable X. P(Y=r) stands for the probability a randomly selected case has property or value r on variable Y P(X=a, Y=r) stands for the joint probability that a randomly selected observation has both property a and property r simultaneously.
  • 5. Statistical Independence If X and Y are statistically independent: P(X= a , Y= r ) = [P(X= a )][P(Y= r )] for all a and r .
  • 7. If gender and turnout are independent: Total obs in column m * Total obs in row v N = mv
  • 8. Statistical Independence Total obs in column m * Total obs in row v N = mv 210 * 100 300 = 70 70 is the expected frequency. Because the observed and expected frequencies are the same, the variables are independent.
  • 9. 150 * 150 300 = 75
  • 10. Here, the relationship is not independent (or dependent) because 75 (expected frequency) is less than 100 (observed frequency).
  • 11. Testing for Independence How do we test for independence for an entire cross-tabulation table? A statistic used to test the statistical significance of a relationship in a cross-tabulation table is a chi-square test (χ 2 ).
  • 12. Chi-Square Statistic The chi-square statistic essentially compares an observed result—the table produced by the data—with a hypothetical table that would occur if, in the population, the variables were statistically independent.
  • 13. How is the chi-square statistic calculated? The chi-square test is set up just like a hypothesis test. The observed chi-square value is compared to the critical value for a certain critical region. A statistic is calculated for each cell of the cross-tabulation and is similar to the independence statistic.
  • 14. How is the chi-square statistic calculated? (Observed frequency – expected frequency) 2
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.  
  • 20.
  • 21.
  • 22.
  • 23. ANOVA tells political scientists ... (1) if there are any differences among the means (2) which specific means differ and by how much (3) whether the observed differences in Y could have arisen by chance or whether they reflect real variation among the categories or groups in X
  • 24. Two important concepts Effect size —The difference between one mean and the other. Difference of means test —The larger the difference of means, the more likely the difference is not due to chance and is instead due to a relationship between the independent and dependent variables.
  • 25. Setting up an Example Suppose you want to test the effect of negative political ads on intention of voting in the next election. You set up a control group and a test group. Each group watches a newscast, but the test group watches negative TV ads during the commercial breaks. The control group watches a newscast without a campaign ad. You create a pre- and post-test of both groups to compare the effects of both ads.
  • 26. Difference of the means Effect = Mean (test group) – Mean (control group)‏
  • 27.  
  • 28. Difference of the means Although different statistics use different formulas, each means test has two identical properties: (1) The numerator indicates the difference of the means (2) The denominator indicates the standard error of the difference of the means.
  • 29. Difference of the means A means test will compare the means of two different samples. The larger the N for both samples, the greater confidence that the observed difference in the sample (D) will correctly estimate the population difference ( ∆ ).
  • 30. Difference of the means In abstract terms: Mean of test group – mean of control group Std. Error (test) + Std. error (control)‏ In concrete terms: Mean (Ads) – Mean (No ads)‏ Std. Error (Ads) + Std. error (No ads)‏
  • 31. Hypothesis Test of Means Difference of the means tests the null hypothesis that there is no difference between the means. You can basically test the significance of a means difference by employing a hypothesis test or calculating a confidence interval.
  • 32. Small-Sample Test of DoM Let's suppose we are looking at a two samples: both measure the level of democracy in a country, but one is a sample of developed countries and another is a sample of developing countries. We want to test whether the level of economic development impacts the level of openness in a democracy. Specifically, we want to test whether the population differences are 0.
  • 33. Small-Sample Test of DoM Two small samples, so we must use the t distribution and calculate degrees of freedom . When there are two samples, degrees of freedom equals N 1 (first sample) + N 2 (second sample) – 2.
  • 34.  
  • 35. The standard error for the difference of means is .144.
  • 36. ANOVA ANOVA or analysis of variance allows us to expand on previous methods. This procedure treats the observations in categories of the explanatory or independent variable as independent samples from populations. This makes it possible to test hypotheses such as H0 = μ1 = μ2 =μ3
  • 37. Variation Three types Total variation —A quantitative measure of the variation in a variable, determined by summing the squared deviation of each observation from the mean.
  • 38. Variation Explained variation —That portion of the total variation in a dependent variable explained by the variance in the independent variable. Unexplained variation —That portion of the total variation in a dependent variable that is not accounted for by the variation in the independent variable(s).
  • 39. ANOVA Total variance = Within variance + Between variance Within variance is the unexplained variance Between variance is the explained variance
  • 40. ANOVA Explained variance refers to the fact that some of the observed differences seems to be due to “membership in” or “having a property of” one category of X. On average, the A's differ fro the B's. Knowing this characteristics can help us tell the value of Y.
  • 41. ANOVA Percent explained = (between/total) X 100 Ex: Percent explained = (0/total) = 0
  • 42. ANOVA ANOVA involves quantifying the types of variation and using the numbers to make inferences. The standard measure of variation is the sum of squares, which is a total of squared deviations about the mean.
  • 43. ANOVA TSS = BSS + WSS TSS = Total sum of squares BSS =Between mean variability WSS = Within group variability Percent explained – (BSS/WSS) X 100
  • 44. ANOVA The percent of variation explained is called eta-squared (η 2 ). It varies between 0 and 1 like any proportion. 0 means the independent variable explains nothing about the dependent variable. 1 means the independent variable explains all variation in the dependent variable.
  • 45. ANOVA Often this statistic is explained as follows: X explains 60 percent of the variation in Y and hence is an important explanatory factor. (if η 2 ) = .6