# Chi-square

## Chi-square yields an unadjusted odds ratio with 95% confidence interval

When looking at the

The width of the confidence interval is entirely dependent upon the sample size.

**association between two independent dichotomous categorical variables**, the**Chi-square test and Fisher's Exact test**can be used to generate a traditional*p*-value that ascertains if the dispersal of the levels of the predictor across levels of the outcome variable are significantly different from what is expected. However, within applied statistics, the chi-square*p*-value is of little value because of the loss of precision, accuracy, and variance that comes with categorical variables. What applied empiricists and clinicians use instead of the*p*-value for a chi-square is called the**unadjusted odds ratio with 95% confidence interval**.The width of the confidence interval is entirely dependent upon the sample size.

**The confidence interval**is the best inference that can be derived from chi-square analysis. Larger samples will yield more precise and accurate measures of effect. Smaller samples will generate wider confidence intervals. Fisher's Exact test is employed instead of chi-square when there are less than 5 observations in any of the four cells of the 2x2 table or with sample sizes of less than 20 participants (n = 20).If the

Odds ratios higher than 1.0 that have a confidence interval that does not cross over 1.0 can be interpreted as meaning that the outcome is that many

Odds ratios that are lower than 1.0 and have confidence intervals that cross over 1.0 are considered "protective effects," meaning that the outcome is

**95% confidence interval crosses over 1.0**, then the chances of an event occurring are just as likely as it not occurring.Odds ratios higher than 1.0 that have a confidence interval that does not cross over 1.0 can be interpreted as meaning that the outcome is that many

**more times likely**to occur versus the comparison group.Odds ratios that are lower than 1.0 and have confidence intervals that cross over 1.0 are considered "protective effects," meaning that the outcome is

**less likely**to occur versus the comparison group.In every 2x2 table testing the association between two dichotomous categorical variables, there are

1. What are the odds of exposure versus non-exposure causing the outcome?

2. What are the odds of non-exposure versus exposure causing the outcome?

3. What are the odds of exposure versus non-exposure NOT causing the outcome?

4. What are the odds of non-exposure versus exposure NOT causing the outcome?

So, when structuring your 2x2 table for unadjusted odds ratios, make sure that you have the data set up to answer your research question by having it located in

**FOUR**potential research questions. The research question for every 2x2 table is based on what group*outcome question is formatted into**Cell A**of the table. So, here are the four questions that we can ask:1. What are the odds of exposure versus non-exposure causing the outcome?

2. What are the odds of non-exposure versus exposure causing the outcome?

3. What are the odds of exposure versus non-exposure NOT causing the outcome?

4. What are the odds of non-exposure versus exposure NOT causing the outcome?

So, when structuring your 2x2 table for unadjusted odds ratios, make sure that you have the data set up to answer your research question by having it located in

**Cell A**of the table.The picture below presents the basic set-up of a 2x2 table for a Chi-square analysis and the odds ratio formula. With the way the table is structured, the odds ratio is answering the question for Cell A. The question is "What are the odds of someone receiving the treatment having the outcome versus someone not receiving the treatment?"

The 95% confidence interval that coincides with the odds ratio is the inference being yielded from a Chi-square analysis. The 95% confidence interval dictates the precision (or width) of the odds ratio statistical finding. With larger sample sizes, 95% confidence intervals will narrow, yield more precise inferences. Smaller sample sizes create wide confidence intervals that are hard to interpret.

**Here is the formula for calculating the 95% confidence interval of an unadjusted odds ratio.**

Based on the example below, one can see that

**the width of the confidence interval is 100% dependent upon the sample size used in the analysis**. All that was done in the second formula was to add a "0" to each value in the 2x2 table. The odds ratio was exactly the same, but the confidence interval was much more constricted and precise due to the larger sample size.**The effect of sample size on 95% confidence intervals**

### The steps for conducting a Chi-square in SPSS

1. The data is entered in a between-subjects fashion. The control group is codified as "0" and the treatment group is codified as "1." Absence of the outcome is codified as "0" and presence of the outcome is codified as "1."

2. Click

3. Drag the cursor over the

4. Click

5. Click on the dichotomous categorical predictor variable to highlight it.

6. Click on the

7. Click on the dichotomous categorical outcome variable to highlight it.

8. Click on the

9. Click on the

10. Click on the

11. Click on the

12. Click

13. Click

2. Click

**.**__A__nalyze3. Drag the cursor over the

**D**drop-down menu.__e__scriptive Statistics4. Click

**.**__C__rosstabs5. Click on the dichotomous categorical predictor variable to highlight it.

6. Click on the

**arrow**button to move the variable into the**R**box.__o__w(s):7. Click on the dichotomous categorical outcome variable to highlight it.

8. Click on the

**arrow**button to move the variable into the**box.**__C__olumn(s):9. Click on the

**button.**__S__tatistics10. Click on the

**C**box to select it.__h__i-square11. Click on the

**R**box to select it.__i__sk12. Click

**Continue**.13. Click

**OK**.### The steps for interpreting the SPSS output for a Chi-square

1. Look at the

2. Interpret the

3. If researchers have a significant

If the

If the

If the

**Crosstabulation**table. This table shows the dispersal of the predictor variable across levels of the outcome variable.2. Interpret the

**Pearson Chi-Square***p*-value.3. If researchers have a significant

*p*-value, then they can interpret the first row in the**Risk Estimate**table. The unadjusted odds ratio is presented in the**Value**column and the**lower**and**upper**limits of the 95% confidence interval wrapped around the odds ratio.If the

*p*-value is significant and the odds ratio is above 1.0 along with the confidence interval, then the treatment group is**MORE LIKELY**to have the outcome.If the

*p*-value is significant and the odds ratio is below 1.0 along with the confidence interval, then the treatment group is**LESS LIKELY**to have the outcome.If the

*p*-value is non-significant, then researchers will see that the 95% confidence interval**crosses over 1.0**. They can report the odds ratio or*p*-value as needed.### When to use Fisher's Exact Test rather than Chi-square

Fisher's Exact Test is used when there are less than five (5) observations in one of the cells of the 2x2 table. This is known as the

Click on the

__. Fisher's Exact Test is also used when there are less than 20 observations being tested.__**Chi-square assumption**Click on the

**Fisher's Exact Test**button if there is a violation of the above assumption or there are less than 20 observations.Click on the

**Download Database**and**Download Data Dictionary**buttons for a configured database and data dictionary for chi-square.**Click on the****Validation of Statistical Findings**button to learn more about bootstrap, split-group, and jack-knife validation methods.## Statistician Services for Professionals

NEED TO HIRE A STATISTICIAN?

Eric Heidel, Ph.D. will provide the following services for researchers, professionals, and organizations at $100/hour. Secure checkout is available with Stripe or PayPal.

Eric Heidel, Ph.D. will provide the following services for researchers, professionals, and organizations at $100/hour. Secure checkout is available with Stripe or PayPal.

- Statistical Analysis
- Research Design
- Sample Size Calculations
- Diagnostic Testing and Epidemiological Calculations
- Survey Design and Psychometrics

**AppNotch:** Convert this website into an Android and iOS app.

AppNotch team will notify you when your app gets approved in Google Play and Apple iTunes App Stores. Once your app goes live, enter your App Store URLs in this property window, publish your Weebly site and your app store icons will be visible in this page.

Please visit AppNotch.com FAQ to learn more about how to add App Store icons to your website, update your app, send Push notifications and more.

## Professional Statistician For Hire! |
## Copyright © 2017 Scalë. All Rights Reserved. Patent Pending. |

✕