Two Categorical Variables: The Chi Square Test

Similar documents
Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Creating a Gradebook in Excel

Microsoft Excel. Qi Wei

In This Issue: Excel Sorting with Text and Numbers

What is Microsoft Excel?

Pivot Tables & Pivot Charts

Is it statistically significant? The chi-square test

EXCEL EXERCISE #8: Consolidating and Linking Spreadsheets

Using Excel for inferential statistics

Microsoft Excel Introduction to Microsoft Excel 2007

Microsoft Excel 2010

Create a Poster Using Publisher

Data Analysis. Using Excel. Jeffrey L. Rummel. BBA Seminar. Data in Excel. Excel Calculations of Descriptive Statistics. Single Variable Graphs

Data Analysis with Microsoft Excel 2003

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Merging Labels, Letters, and Envelopes Word 2013

Using Microsoft Excel to Manage and Analyze Data: Some Tips

As in the example above, a Budget created on the computer typically has:

Tutorial: Using Excel for Linear Optimization Problems

Microsoft Excel: Exercise 5

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Lab 11: Budgeting with Excel

By: Peter K. Mulwa MSc (UoN), PGDE (KU), BSc (KU)

Microsoft Excel 2010 and Tools for Statistical Analysis

Instructions for applying data validation(s) to data fields in Microsoft Excel

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Mail Merge Creating Mailing Labels 3/23/2011

APPLYING BENFORD'S LAW This PDF contains step-by-step instructions on how to apply Benford's law using Microsoft Excel, which is commonly used by

Excel Math Project for 8th Grade Identifying Patterns

Basic Quantitative Analysis: Using Excel to Analyze Your Data

Advanced Microsoft Excel 2010

STEP TWO: Highlight the data set, then select DATA PIVOT TABLE

Performing Simple Calculations Using the Status Bar

Making a Chart Using Excel

Advanced Excel 10/20/2011 1

How To Use Excel To Compute Compound Interest

EXCEL Analysis TookPak [Statistical Analysis] 1. First of all, check to make sure that the Analysis ToolPak is installed. Here is how you do it:

Computer Skills Microsoft Excel Creating Pie & Column Charts

Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider :: :: info@bluepecan.co.

Microsoft Excel 2013: Using a Data Entry Form

Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers?

Working together with Word, Excel and PowerPoint 2013

Creating a PowerPoint Poster using Windows

Overview What is a PivotTable? Benefits

A Guide to Using Excel in Physics Lab

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

User Guide. Opening secure from the State of Oregon Viewing birth certificate edits reports in MS Excel

Working with Spreadsheets

Chapter 9 Creating Reports in Excel

Advanced Excel Charts : Tables : Pivots : Macros

Step Sheet: Creating a Data Table and Charts

Microsoft Excel 2007 Level 2

Microsoft Excel 2010 Tutorial

Everyday Excel Stuff Excel Day Planner Organizer Reference Guide

Sage Intelligence Report Designer Add-In

Graphing Parabolas With Microsoft Excel

Formulas, Functions and Charts

How to make a line graph using Excel 2007

Analyzing Excel Data Using Pivot Tables

An Introduction to Excel Pivot Tables

Microsoft Office Excel 2013

warpct.com Working with MS Excel 2003 Workbook courseware by WARP! Computer Training

Chapter 4 Displaying and Describing Categorical Data

Microsoft Excel 2013 Splitting Windows and Fixing Panes (Level 3)

Chapter 23. Two Categorical Variables: The Chi-Square Test

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Microsoft Excel 2013 Tutorial

ABSTRACT INTRODUCTION CLINICAL PROJECT TRACKER OF SAS TASKS. Paper PH

Tutorial on Using Excel Solver to Analyze Spin-Lattice Relaxation Time Data

Formatting Report Output to MS Excel

Tommy B. Harrington 104 Azalea Drive Greenville, NC

ITS Training Class Charts and PivotTables Using Excel 2007

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

Introduction to Microsoft Project 2010

Basic Microsoft Excel 2007

Creating Basic Excel Formulas

Intermediate. Microsoft Excel Tables and Printing

This activity will show you how to draw graphs of algebraic functions in Excel.

Microsoft Excel: Pivot Tables

The Chi-Square Test. STAT E-50 Introduction to Statistics

Assignment objectives:

To complete this workbook, you will need the following file:

Using SPSS, Chapter 2: Descriptive Statistics

The Center for Teaching, Learning, & Technology

BUSINESS DATA ANALYSIS WITH PIVOTTABLES

To export data formatted for Avery labels -

Microsoft Excel 2010 Part 3: Advanced Excel

CREATING FORMAL REPORT. using MICROSOFT WORD. and EXCEL

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

Using VLOOKUP to Combine Data in Microsoft Excel

Word 2010: Mail Merge to with Attachments

Working together with Word, Excel and PowerPoint

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry

PV Tutorial Using Excel

Create Charts and Graphs with Excel By Lorrie Jackson

Easy Calculations in Excel

Transcription:

CHAPTER 22 Two Categorical Variables: The Chi Square Test Two Way Tables We can use Excel to create a two way table from our data that we place in columns in the spreadsheet. Our example uses the data from Exercise 22.1. Enter the data into three columns as shown. With your cursor in any cell of the data, select Insert > Pivot Table> Pivot Table. A dialog box will appear. In the first dialog box enter the table range including the column titles for the variables containing the categories that define the rows and column, of the table, and select the fields you want in your report, as shown. Also, choose where the Pivot Table will be placed and then click OK.

Chapter 22: Two Categorical Variables: The Chi Square Test 109 This gives you this summary view of the data. a) To show these amounts as percentages, click on the Sum of Amounts field title, and then choose Value Field Settings. This gives you a choice of displaying the results.

110 Chapter 22: Two Categorical Variables: The Chi Square Test b) To create the bar graph, place your cursor on one of the percentages. Select Insert> Bar Graph > OK. The bar graph will be inserted into the worksheet. Students on the main campus are more likely to use Facebook at least daily. Commonwealth students are less likely to use it at all.

Chapter 22: Two Categorical Variables: The Chi Square Test 111 The Chi Square Test We can use Excel to do a χ 2 test of the null hypothesis that there is no relationship between the column variable and the row variable in a two way table. The chi square test will help us see whether there are significant differences between the proportions of students in the two locations who do not use Facebook. The null hypothesis, H 0 for this test is that there is no association between the row variable and the column variable. H a is that there is an association. To perform a chi square test of association between variables, expected cell counts are required. These can be calculated by first copying the row and column totals from the Pivot Table and then calculating the expected counts for the interior cells on the table. The expected count for each outcome/country combination is calculated as Expected count Row = total Column Overall total total Excel s CHITEST function provides the P value for the chi squared test of association between the row and column variables. The function arguments are the actual counts and the expected counts (interior cells) on the tables. Excel does not provide the χ 2 statistic, but since we have the P value, we can work backward to obtain the value using the CHIINV function. The function arguments are the probability, i.e., the P value entered directly from the spreadsheet, and the degrees of freedom. The above procedure is illustrated using the data from Exercise 22.13. Enter the data into the spreadsheet. Excel does not calculate the χ 2 statistic so we will have the calculator in the spreadsheet do it. The expected proportion is p = 1/3, so the expected values are = (1/3) * 53. H0: p1 = p2 = p3 = 1/3 Ha: not all pi = 1/3 Note the χ 2 statistic = 16.11. To get the P value, select Formulas > Insert Function > CHITEST and fill in the dialog boxes as shown. The P value is very small (0.0003167).

112 Chapter 22: Two Categorical Variables: The Chi Square Test Alternatively, you may select Add Ins WHFStat Two Way Table / Chi Squared Test from the Excel menu and fill in the dialog box as shown below. The results are identical to those described above and a little easier to do. Going back to the Facebook data, in Exercise 22.3, we will test if there is a significant difference among those who do not use facebook on each campus. Select Add Ins > WHStat > Proportion Testing > Two Samples and fill in the dialog boxes as shown, using the data from the summary table in Exercise 22.1 This produces a new sheet. Note z = 12.22 and p is very small.

Chapter 22: Two Categorical Variables: The Chi Square Test 113 Repeating this procedure for the at least once a week students we obtain:

114 Chapter 22: Two Categorical Variables: The Chi Square Test Note z = 2.17 and the p value = 0.03 Selected exercises. Try the following exercises using Excel. 22.5 Facebook at Penn State 22.17 What s your sign? 22.29 Free speech for racists? 22.43 How are schools doing? 22.47 Party support in brief.