Visualizing Independence Using Extended Association and Mosaic Plots. Achim Zeileis David Meyer Kurt Hornik

Size: px
Start display at page:

Download "Visualizing Independence Using Extended Association and Mosaic Plots. Achim Zeileis David Meyer Kurt Hornik"

Transcription

1 Visualizing Independence Using Extended Association and Mosaic Plots Achim Zeileis David Meyer Kurt Hornik

2 Overview The independence problem in 2-way contingency tables Standard approach: χ 2 test Alternative approach: max test Visualizing the independence problem Association plots Mosaic plots Extensions Visualization & significance testing HCL instead of HSV colors Implementation in grid Multi-way tables The vcd package

3 The independence problem Standard approach: Analyze the relationship between two categorical variables based on the associated 2-way contingency table. Measure the discrepancy between observed frequencies { n ij } and expected frequencies under independence {ˆn ij } by the Pearson residuals: r ij = n ij ˆn ij ˆnij. Use the Pearson X 2 statistic for testing: X 2 = ij r 2 ij, which has an asymptotic χ 2 distribution.

4 The independence problem Alternative approach(es): There are many conceivable functionals λ( ) which lead to reasonable test statistics λ ({ r ij }). In particular: M = max ij r ij. Then, every residual exceeding the critical value c α violates the null hypothesis at level α. Instead of relying on unconditional limiting distributions, perform a permutation test, either by simulating or computing the conditional permutation distribution of λ ({ r ij }).

5 The independence problem Relationship between hair color and eye color among 328 female students: Eye color Hair color Brown Blue Hazel Green Total Black Brown Red Blond Total X 2 = p = 0 M = 6.76 p = 0

6 The independence problem Home and away goals in the Bundesliga in 1995: Away goals Home goals X 2 = p = M = 2.87 p = 0.355

7 The independence problem Treatment for rheumatoid arthritis: Treatment Improvement Placebo Treated Total None Some Marked Total X 2 = p = M = 1.98 p = 0.001

8 Visualization Association plot: display for the Pearson residuals { r ij } and the raw residuals { n ij ˆn ij } in an rectangular array. Mosaic plot: display in which the sizes of the mosaic tiles is proportional to the observed frequencies { } n ij.

9 Visualization Eye Brown Blue Hazel Green Hair Blond Red Brown Black

10 Visualization Eye Brown Blue Hazel Green Blond Red Hair Brown Black

11 HSV colors Colors are commonly used to enhance these plots. In particular, Friendly (1994) suggested shadings for mosaic displays.

12 HSV colors Colors are commonly used to enhance these plots. In particular, Friendly (1994) suggested shadings for mosaic displays. In R these are implemented based on HSV colors. The HSV color space is one of the most common implementations of color in many computer packages. Hue, saturation and value range in [0, 1].

13 HSV colors The hue is typically used to code the sign of the residuals. hue saturation = 1 value = 1

14 HSV colors The hue is typically used to code the sign of the residuals. hue saturation = 1 value = 1 r ij < 0 r ij > 0

15 HSV colors Friendly s extended mosaic displays use the saturation to code the absolute size of the residuals. saturation h = 2/3 h = 0 value = 1

16 HSV colors Friendly s extended mosaic displays use the saturation to code the absolute size of the residuals. saturation h = 2/3 h = 0 value = 1 r ij < 2 2 < r ij < 4 r ij > 4

17 HSV colors Value is currently not used for coding, always set to 1. value h = 2/3 h = 0 saturation = 1

18 HSV colors Value is currently not used for coding, always set to 1. value h = 2/3 h = 0 saturation = 1

19 HSV colors Eye Brown Blue Hazel Green Hair Blond Red Brown Black Pearson residuals:

20 HSV colors Eye Brown Blue Hazel Green Black Pearson residuals: 6 4 Hair Brown Blond Red

21 Visualization & testing HomeGoals Pearson residuals: 0 2 AwayGoals

22 Visualization & testing Intuition: colored cells convey the impression that there is significant dependence.

23 Visualization & testing Intuition: colored cells convey the impression that there is significant dependence. Currently this is not true. But it can be achieved by using the 90% and 99% critical values for the max statistic M instead of 2 and 4. Advantage: color significance highlights the cells which cause the dependence (if any). Disadvantage: does not work for the χ 2 test (or any other functional λ( )).

24 Visualization & testing Eye Brown Blue Hazel Green Black Pearson residuals: 6 4 Hair Brown Blond Red 4 p value: < 2.22e 16

25 Visualization & testing HomeGoals Pearson residuals: 0 2 AwayGoals

26 Visualization & testing Use value to code the result of a significance test for independence. value h = 2/3 h = 0 saturation = 1

27 Visualization & testing Use value to code the result of a significance test for independence. value h = 2/3 h = 0 saturation = 1 non significant significant

28 Visualization & testing Eye Brown Blue Hazel Green Black Pearson residuals: 6 4 Hair Brown Blond Red 4 p value: < 2.22e 16

29 Visualization & testing HomeGoals Pearson residuals: 0 2 AwayGoals p value:

30 HCL colors Disadvantages of HSV colors: device dependent, not copierproof, flashy colors good for drawing attention to a plot, but hard to look at.

31 HCL colors Disadvantages of HSV colors: device dependent, not copierproof, flashy colors good for drawing attention to a plot, but hard to look at. Alternative: use HCL colors instead (see Ihaka, 2003). HCL colors are defined by hue (in [0, 360]), chroma and luminance (in [0, 100]). HCL space essentially looks like a double cone.

32 HCL colors

33 HCL colors

34 HCL colors

35 HCL colors

36 HCL colors

37 HCL colors

38 HCL colors

39 HCL colors

40 HCL colors

41 HCL colors

42 HCL colors

43 HCL colors

44 HCL colors

45 HCL colors hue = 0 hue = 260 luminance chroma

46 HCL colors hue = 0 hue = 260 chroma luminance

47 HCL colors hue = 0 hue = 260 chroma luminance

48 HCL colors hue = 0 hue = 260 chroma luminance

49 HCL colors hue = 0 hue = 260 chroma luminance

50 HCL colors hue = 0 hue = 260 chroma luminance significant

51 HCL colors hue = 0 hue = 260 chroma luminance significant non significant

52 HCL colors Eye Brown Blue Hazel Green Black Pearson residuals: 6 4 Hair Brown Blond Red 4 p value: < 2.22e 16

53 HCL colors Eye Brown Blue Hazel Green Black Pearson residuals: 6 4 Hair Brown Blond Red 4 p value: < 2.22e 16

54 HCL colors HomeGoals Pearson residuals: 0 2 AwayGoals p value:

55 HCL colors HomeGoals Pearson residuals: 0 2 AwayGoals p value:

56 HCL colors Treatment Placebo Treated Pearson residuals: None 1 Improved 0 Some 1 Marked p value:

57 HCL colors Treatment Placebo Treated Pearson residuals: None 1 Improved 0 Some 1 Marked p value: 0.001

58 Implementation in grid The graphics engine grid overcomes the old R concept of plots with a plot region surrounded by a margin. grid is based on generic drawing regions (viewports), allows for plotting to relative coordinates, is also the basis for an implementation of Trellis graphics called lattice. (see Murrell, 2002) Thus, the new implementation of mosaic and association plots makes them easily reusable, e.g., in Trellis-like layouts.

59 Implementation in grid Furthermore, graphics parameters for the rectangles, e.g., fill color, line type, line color, can be specified for each cell individually by the user. Each graphics parameter can be an object of the same dimenionality as the original table. new shadings can easily be implemented.

60 Multi-way tables Dept = A Dept = C Dept = E Admit Reject Admit Reject Admit Reject Gender Female Male Dept = B Admit Reject Female Male Female Male Dept = D Admit Reject Female Male Female Male Dept = F Admit Reject Female Male Admit

61 The vcd package New methods will be available in the package vcd for visualizing categorical data. Currently only in development version. The released version is available from the Comprehensive R Archive Network and it already offers some functionality for fitting & graphing of discrete distributions, plots for independence and agreement, visualization of log-linear models.

Extended Mosaic and Association Plots for Visualizing (Conditional) Independence. Achim Zeileis David Meyer Kurt Hornik

Extended Mosaic and Association Plots for Visualizing (Conditional) Independence. Achim Zeileis David Meyer Kurt Hornik Extended Mosaic and Association Plots for Visualizing (Conditional) Independence Achim Zeileis David Meyer Kurt Hornik Overview The independence problem in -way contingency tables Standard approach: χ

More information

Residual-based Shadings for Visualizing (Conditional) Independence

Residual-based Shadings for Visualizing (Conditional) Independence Residual-based Shadings for Visualizing (Conditional) Independence Achim Zeileis David Meyer Kurt Hornik http://www.ci.tuwien.ac.at/~zeileis/ Overview The independence problem in 2-way contingency tables

More information

Discrete Multivariate Statistics

Discrete Multivariate Statistics Discrete Multivariate Statistics Univariate Discrete Random variables Let X be a discrete random variable which, in this module, will be assumed to take a finite number of t different values which are

More information

Correspondence Analysis

Correspondence Analysis Correspondence Analysis Q: when independence of a 2-way contingency table is rejected, how to know where the dependence is coming from? The interaction terms in a GLM contain dependence information; however,

More information

Lecture 28 Chi-Square Analysis

Lecture 28 Chi-Square Analysis Lecture 28 STAT 225 Introduction to Probability Models April 23, 2014 Whitney Huang Purdue University 28.1 χ 2 test for For a given contingency table, we want to test if two have a relationship or not

More information

MA : Introductory Probability

MA : Introductory Probability MA 320-001: Introductory Probability David Murrugarra Department of Mathematics, University of Kentucky http://www.math.uky.edu/~dmu228/ma320/ Spring 2017 David Murrugarra (University of Kentucky) MA 320:

More information

Is there a connection between gender, maths grade, hair colour and eye colour? Contents

Is there a connection between gender, maths grade, hair colour and eye colour? Contents 5 Sample project This Maths Studies project has been graded by a moderator. As you read through it, you will see comments from the moderator in boxes like this: At the end of the sample project is a summary

More information

Statistics for Managers Using Microsoft Excel

Statistics for Managers Using Microsoft Excel Statistics for Managers Using Microsoft Excel 7 th Edition Chapter 1 Chi-Square Tests and Nonparametric Tests Statistics for Managers Using Microsoft Excel 7e Copyright 014 Pearson Education, Inc. Chap

More information

Solution to Tutorial 7

Solution to Tutorial 7 1. (a) We first fit the independence model ST3241 Categorical Data Analysis I Semester II, 2012-2013 Solution to Tutorial 7 log µ ij = λ + λ X i + λ Y j, i = 1, 2, j = 1, 2. The parameter estimates are

More information

Stat 135 Fall 2013 FINAL EXAM December 18, 2013

Stat 135 Fall 2013 FINAL EXAM December 18, 2013 Stat 135 Fall 2013 FINAL EXAM December 18, 2013 Name: Person on right SID: Person on left There will be one, double sided, handwritten, 8.5in x 11in page of notes allowed during the exam. The exam is closed

More information

Topic 3: Introduction to Statistics. Algebra 1. Collecting Data. Table of Contents. Categorical or Quantitative? What is the Study of Statistics?!

Topic 3: Introduction to Statistics. Algebra 1. Collecting Data. Table of Contents. Categorical or Quantitative? What is the Study of Statistics?! Topic 3: Introduction to Statistics Collecting Data We collect data through observation, surveys and experiments. We can collect two different types of data: Categorical Quantitative Algebra 1 Table of

More information

Bivariate data analysis

Bivariate data analysis Bivariate data analysis Categorical data - creating data set Upload the following data set to R Commander sex female male male male male female female male female female eye black black blue green green

More information

Chapter 10. Chapter 10. Multinomial Experiments and. Multinomial Experiments and Contingency Tables. Contingency Tables.

Chapter 10. Chapter 10. Multinomial Experiments and. Multinomial Experiments and Contingency Tables. Contingency Tables. Chapter 10 Multinomial Experiments and Contingency Tables 1 Chapter 10 Multinomial Experiments and Contingency Tables 10-1 1 Overview 10-2 2 Multinomial Experiments: of-fitfit 10-3 3 Contingency Tables:

More information

Topic 21 Goodness of Fit

Topic 21 Goodness of Fit Topic 21 Goodness of Fit Contingency Tables 1 / 11 Introduction Two-way Table Smoking Habits The Hypothesis The Test Statistic Degrees of Freedom Outline 2 / 11 Introduction Contingency tables, also known

More information

13.1 Categorical Data and the Multinomial Experiment

13.1 Categorical Data and the Multinomial Experiment Chapter 13 Categorical Data Analysis 13.1 Categorical Data and the Multinomial Experiment Recall Variable: (numerical) variable (i.e. # of students, temperature, height,). (non-numerical, categorical)

More information

STAT 135 Lab 11 Tests for Categorical Data (Fisher s Exact test, χ 2 tests for Homogeneity and Independence) and Linear Regression

STAT 135 Lab 11 Tests for Categorical Data (Fisher s Exact test, χ 2 tests for Homogeneity and Independence) and Linear Regression STAT 135 Lab 11 Tests for Categorical Data (Fisher s Exact test, χ 2 tests for Homogeneity and Independence) and Linear Regression Rebecca Barter April 20, 2015 Fisher s Exact Test Fisher s Exact Test

More information

Conceptual Models for Visualizing Contingency Table Data

Conceptual Models for Visualizing Contingency Table Data Conceptual Models for Visualizing Contingency Table Data Michael Friendly York University 1 Introduction For some time I have wondered why graphical methods for categorical data are so poorly developed

More information

Principal Component Analysis for Mixed Quantitative and Qualitative Data

Principal Component Analysis for Mixed Quantitative and Qualitative Data Principal Component Analysis for Mixed Quantitative and Qualitative Data Susana Agudelo-Jaramillo Manuela Ochoa-Muñoz Tutor: Francisco Iván Zuluaga-Díaz EAFIT University Medelĺın-Colombia Research Practise

More information

Monitoring Structural Change in Dynamic Econometric Models

Monitoring Structural Change in Dynamic Econometric Models Monitoring Structural Change in Dynamic Econometric Models Achim Zeileis Friedrich Leisch Christian Kleiber Kurt Hornik http://www.ci.tuwien.ac.at/~zeileis/ Contents Model frame Generalized fluctuation

More information

Introduction to Statistical Data Analysis Lecture 7: The Chi-Square Distribution

Introduction to Statistical Data Analysis Lecture 7: The Chi-Square Distribution Introduction to Statistical Data Analysis Lecture 7: The Chi-Square Distribution James V. Lambers Department of Mathematics The University of Southern Mississippi James V. Lambers Statistical Data Analysis

More information

Testing Independence

Testing Independence Testing Independence Dipankar Bandyopadhyay Department of Biostatistics, Virginia Commonwealth University BIOS 625: Categorical Data & GLM 1/50 Testing Independence Previously, we looked at RR = OR = 1

More information

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878 Contingency Tables I. Definition & Examples. A) Contingency tables are tables where we are looking at two (or more - but we won t cover three or more way tables, it s way too complicated) factors, each

More information

Calculate the volume of the sphere. Give your answer correct to two decimal places. (3)

Calculate the volume of the sphere. Give your answer correct to two decimal places. (3) 1. Let m = 6.0 10 3 and n = 2.4 10 5. Express each of the following in the form a 10 k, where 1 a < 10 and k. mn; m. n (Total 4 marks) 2. The volume of a sphere is V =, where S is its surface area. 36π

More information

Chapter 26: Comparing Counts (Chi Square)

Chapter 26: Comparing Counts (Chi Square) Chapter 6: Comparing Counts (Chi Square) We ve seen that you can turn a qualitative variable into a quantitative one (by counting the number of successes and failures), but that s a compromise it forces

More information

Solutions for Examination Categorical Data Analysis, March 21, 2013

Solutions for Examination Categorical Data Analysis, March 21, 2013 STOCKHOLMS UNIVERSITET MATEMATISKA INSTITUTIONEN Avd. Matematisk statistik, Frank Miller MT 5006 LÖSNINGAR 21 mars 2013 Solutions for Examination Categorical Data Analysis, March 21, 2013 Problem 1 a.

More information

Lecture 9. Selected material from: Ch. 12 The analysis of categorical data and goodness of fit tests

Lecture 9. Selected material from: Ch. 12 The analysis of categorical data and goodness of fit tests Lecture 9 Selected material from: Ch. 12 The analysis of categorical data and goodness of fit tests Univariate categorical data Univariate categorical data are best summarized in a one way frequency table.

More information

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami Parametric Assumptions The observations must be independent. Dependent variable should be continuous

More information

Hypothesis Testing One Sample Tests

Hypothesis Testing One Sample Tests STATISTICS Lecture no. 13 Department of Econometrics FEM UO Brno office 69a, tel. 973 442029 email:jiri.neubauer@unob.cz 12. 1. 2010 Tests on Mean of a Normal distribution Tests on Variance of a Normal

More information

11-2 Multinomial Experiment

11-2 Multinomial Experiment Chapter 11 Multinomial Experiments and Contingency Tables 1 Chapter 11 Multinomial Experiments and Contingency Tables 11-11 Overview 11-2 Multinomial Experiments: Goodness-of-fitfit 11-3 Contingency Tables:

More information

Contingency Tables. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels.

Contingency Tables. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels. Contingency Tables Definition & Examples. Contingency tables are used when we want to looking at two (or more) factors. Each factor might have two more or levels. (Using more than two factors gets complicated,

More information

Lecture 23. November 15, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Lecture 23. November 15, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. Your use of this material constitutes acceptance of that license and the conditions of use of materials on this

More information

Lecture 2: Categorical Variable. A nice book about categorical variable is An Introduction to Categorical Data Analysis authored by Alan Agresti

Lecture 2: Categorical Variable. A nice book about categorical variable is An Introduction to Categorical Data Analysis authored by Alan Agresti Lecture 2: Categorical Variable A nice book about categorical variable is An Introduction to Categorical Data Analysis authored by Alan Agresti 1 Categorical Variable Categorical variable is qualitative

More information

Review of Statistics

Review of Statistics Review of Statistics Topics Descriptive Statistics Mean, Variance Probability Union event, joint event Random Variables Discrete and Continuous Distributions, Moments Two Random Variables Covariance and

More information

Statistics 3858 : Contingency Tables

Statistics 3858 : Contingency Tables Statistics 3858 : Contingency Tables 1 Introduction Before proceeding with this topic the student should review generalized likelihood ratios ΛX) for multinomial distributions, its relation to Pearson

More information

Frequency Distribution Cross-Tabulation

Frequency Distribution Cross-Tabulation Frequency Distribution Cross-Tabulation 1) Overview 2) Frequency Distribution 3) Statistics Associated with Frequency Distribution i. Measures of Location ii. Measures of Variability iii. Measures of Shape

More information

POLI 443 Applied Political Research

POLI 443 Applied Political Research POLI 443 Applied Political Research Session 6: Tests of Hypotheses Contingency Analysis Lecturer: Prof. A. Essuman-Johnson, Dept. of Political Science Contact Information: aessuman-johnson@ug.edu.gh College

More information

IUT of Saint-Etienne Sales and Marketing department Mr. Ferraris Prom /04/2017

IUT of Saint-Etienne Sales and Marketing department Mr. Ferraris Prom /04/2017 IUT of Saint-Etienne Sales and Marketing department Mr. Ferraris Prom 2016-2018 14/04/2017 MATHEMATICS 2 nd semester, Test 1 length : 2 hours coefficient 1/2 Graphic calculator is allowed. Any personal

More information

Visualizing Categorical Data with SAS and R Part 2: Visualizing two-way and n-way tables. Two-way tables: Overview. Two-way tables: Examples

Visualizing Categorical Data with SAS and R Part 2: Visualizing two-way and n-way tables. Two-way tables: Overview. Two-way tables: Examples Visualizing Categorical Data with SAS and R Part 2: Visualizing two-way and n-way tables Michael Friendly York University SCS Short Course, 2016 Web notes: datavis.ca/courses/vcd/ 1198 1493 Right Eye Grade

More information

STP 226 ELEMENTARY STATISTICS NOTES

STP 226 ELEMENTARY STATISTICS NOTES STP 226 ELEMENTARY STATISTICS NOTES PART 1V INFERENTIAL STATISTICS CHAPTER 12 CHI SQUARE PROCEDURES 12.1 The Chi Square Distribution A variable has a chi square distribution if the shape of its distribution

More information

Psych Jan. 5, 2005

Psych Jan. 5, 2005 Psych 124 1 Wee 1: Introductory Notes on Variables and Probability Distributions (1/5/05) (Reading: Aron & Aron, Chaps. 1, 14, and this Handout.) All handouts are available outside Mija s office. Lecture

More information

WELCOME! Lecture 13 Thommy Perlinger

WELCOME! Lecture 13 Thommy Perlinger Quantitative Methods II WELCOME! Lecture 13 Thommy Perlinger Parametrical tests (tests for the mean) Nature and number of variables One-way vs. two-way ANOVA One-way ANOVA Y X 1 1 One dependent variable

More information

ML Testing (Likelihood Ratio Testing) for non-gaussian models

ML Testing (Likelihood Ratio Testing) for non-gaussian models ML Testing (Likelihood Ratio Testing) for non-gaussian models Surya Tokdar ML test in a slightly different form Model X f (x θ), θ Θ. Hypothesist H 0 : θ Θ 0 Good set: B c (x) = {θ : l x (θ) max θ Θ l

More information

9 Generalized Linear Models

9 Generalized Linear Models 9 Generalized Linear Models The Generalized Linear Model (GLM) is a model which has been built to include a wide range of different models you already know, e.g. ANOVA and multiple linear regression models

More information

CHAPTER 9 DATA DISPLAY AND CARTOGRAPHY

CHAPTER 9 DATA DISPLAY AND CARTOGRAPHY CHAPTER 9 DATA DISPLAY AND CARTOGRAPHY 9.1 Cartographic Representation 9.1.1 Spatial Features and Map Symbols 9.1.2 Use of Color 9.1.3 Data Classification 9.1.4 Generalization Box 9.1 Representations 9.2

More information

The scatterplot is the basic tool for graphically displaying bivariate quantitative data.

The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Bivariate Data: Graphical Display The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Example: Some investors think that the performance of the stock market in January

More information

Chapter 11. Hypothesis Testing (II)

Chapter 11. Hypothesis Testing (II) Chapter 11. Hypothesis Testing (II) 11.1 Likelihood Ratio Tests one of the most popular ways of constructing tests when both null and alternative hypotheses are composite (i.e. not a single point). Let

More information

Stat 101 Exam 1 Important Formulas and Concepts 1

Stat 101 Exam 1 Important Formulas and Concepts 1 1 Chapter 1 1.1 Definitions Stat 101 Exam 1 Important Formulas and Concepts 1 1. Data Any collection of numbers, characters, images, or other items that provide information about something. 2. Categorical/Qualitative

More information

Chapters 9 and 10. Review for Exam. Chapter 9. Correlation and Regression. Overview. Paired Data

Chapters 9 and 10. Review for Exam. Chapter 9. Correlation and Regression. Overview. Paired Data Chapters 9 and 10 Review for Exam 1 Chapter 9 Correlation and Regression 2 Overview Paired Data is there a relationship if so, what is the equation use the equation for prediction 3 Definition Correlation

More information

Analysis of Variance. Contents. 1 Analysis of Variance. 1.1 Review. Anthony Tanbakuchi Department of Mathematics Pima Community College

Analysis of Variance. Contents. 1 Analysis of Variance. 1.1 Review. Anthony Tanbakuchi Department of Mathematics Pima Community College Introductory Statistics Lectures Analysis of Variance 1-Way ANOVA: Many sample test of means Department of Mathematics Pima Community College Redistribution of this material is prohibited without written

More information

ST3241 Categorical Data Analysis I Two-way Contingency Tables. 2 2 Tables, Relative Risks and Odds Ratios

ST3241 Categorical Data Analysis I Two-way Contingency Tables. 2 2 Tables, Relative Risks and Odds Ratios ST3241 Categorical Data Analysis I Two-way Contingency Tables 2 2 Tables, Relative Risks and Odds Ratios 1 What Is A Contingency Table (p.16) Suppose X and Y are two categorical variables X has I categories

More information

Categorical Data Analysis Chapter 3

Categorical Data Analysis Chapter 3 Categorical Data Analysis Chapter 3 The actual coverage probability is usually a bit higher than the nominal level. Confidence intervals for association parameteres Consider the odds ratio in the 2x2 table,

More information

Lecture 5. Symbolization and Classification MAP DESIGN: PART I. A picture is worth a thousand words

Lecture 5. Symbolization and Classification MAP DESIGN: PART I. A picture is worth a thousand words Lecture 5 MAP DESIGN: PART I Symbolization and Classification A picture is worth a thousand words Outline Symbolization Types of Maps Classifying Features Visualization Considerations Symbolization Symbolization

More information

October 1, Keywords: Conditional Testing Procedures, Non-normal Data, Nonparametric Statistics, Simulation study

October 1, Keywords: Conditional Testing Procedures, Non-normal Data, Nonparametric Statistics, Simulation study A comparison of efficient permutation tests for unbalanced ANOVA in two by two designs and their behavior under heteroscedasticity arxiv:1309.7781v1 [stat.me] 30 Sep 2013 Sonja Hahn Department of Psychology,

More information

Statistics - Lecture 04

Statistics - Lecture 04 Statistics - Lecture 04 Nicodème Paul Faculté de médecine, Université de Strasbourg file:///users/home/npaul/enseignement/esbs/2018-2019/cours/04/index.html#40 1/40 Correlation In many situations the objective

More information

Basic Business Statistics, 10/e

Basic Business Statistics, 10/e Chapter 1 1-1 Basic Business Statistics 11 th Edition Chapter 1 Chi-Square Tests and Nonparametric Tests Basic Business Statistics, 11e 009 Prentice-Hall, Inc. Chap 1-1 Learning Objectives In this chapter,

More information

Statistics I Chapter 3: Bivariate data analysis

Statistics I Chapter 3: Bivariate data analysis Statistics I Chapter 3: Bivariate data analysis Chapter 3: Bivariate data analysis Contents 3.1 Two-way tables Bivariate data Definition of a two-way table Joint absolute/relative frequency distribution

More information

Relate Attributes and Counts

Relate Attributes and Counts Relate Attributes and Counts This procedure is designed to summarize data that classifies observations according to two categorical factors. The data may consist of either: 1. Two Attribute variables.

More information

Subject CS1 Actuarial Statistics 1 Core Principles

Subject CS1 Actuarial Statistics 1 Core Principles Institute of Actuaries of India Subject CS1 Actuarial Statistics 1 Core Principles For 2019 Examinations Aim The aim of the Actuarial Statistics 1 subject is to provide a grounding in mathematical and

More information

Ron Heck, Fall Week 3: Notes Building a Two-Level Model

Ron Heck, Fall Week 3: Notes Building a Two-Level Model Ron Heck, Fall 2011 1 EDEP 768E: Seminar on Multilevel Modeling rev. 9/6/2011@11:27pm Week 3: Notes Building a Two-Level Model We will build a model to explain student math achievement using student-level

More information

Business Statistics. Lecture 10: Correlation and Linear Regression

Business Statistics. Lecture 10: Correlation and Linear Regression Business Statistics Lecture 10: Correlation and Linear Regression Scatterplot A scatterplot shows the relationship between two quantitative variables measured on the same individuals. It displays the Form

More information

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test Rebecca Barter April 13, 2015 Let s now imagine a dataset for which our response variable, Y, may be influenced by two factors,

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Lecture 6 (MWF) Conditional probabilities and associations Suhasini Subba Rao Review of previous lecture

More information

Biostatistics Presentation of data DR. AMEER KADHIM HUSSEIN M.B.CH.B.FICMS (COM.)

Biostatistics Presentation of data DR. AMEER KADHIM HUSSEIN M.B.CH.B.FICMS (COM.) Biostatistics Presentation of data DR. AMEER KADHIM HUSSEIN M.B.CH.B.FICMS (COM.) PRESENTATION OF DATA 1. Mathematical presentation (measures of central tendency and measures of dispersion). 2. Tabular

More information

Multiple Sample Categorical Data

Multiple Sample Categorical Data Multiple Sample Categorical Data paired and unpaired data, goodness-of-fit testing, testing for independence University of California, San Diego Instructor: Ery Arias-Castro http://math.ucsd.edu/~eariasca/teaching.html

More information

Lets start off with a visual intuition

Lets start off with a visual intuition Naïve Bayes Classifier (pages 231 238 on text book) Lets start off with a visual intuition Adapted from Dr. Eamonn Keogh s lecture UCR 1 Body length Data 2 Alligators 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7

More information

The Choropleth Map Slide #2: Choropleth mapping enumeration units

The Choropleth Map Slide #2: Choropleth mapping enumeration units The Choropleth Map Slide #2: Choropleth mapping is a common technique for representing enumeration data These are maps where enumeration units, such as states or countries, are shaded a particular color

More information

Ecn Analysis of Economic Data University of California - Davis February 23, 2010 Instructor: John Parman. Midterm 2. Name: ID Number: Section:

Ecn Analysis of Economic Data University of California - Davis February 23, 2010 Instructor: John Parman. Midterm 2. Name: ID Number: Section: Ecn 102 - Analysis of Economic Data University of California - Davis February 23, 2010 Instructor: John Parman Midterm 2 You have until 10:20am to complete this exam. Please remember to put your name,

More information

Example. χ 2 = Continued on the next page. All cells

Example. χ 2 = Continued on the next page. All cells Section 11.1 Chi Square Statistic k Categories 1 st 2 nd 3 rd k th Total Observed Frequencies O 1 O 2 O 3 O k n Expected Frequencies E 1 E 2 E 3 E k n O 1 + O 2 + O 3 + + O k = n E 1 + E 2 + E 3 + + E

More information

ECON Introductory Econometrics. Lecture 2: Review of Statistics

ECON Introductory Econometrics. Lecture 2: Review of Statistics ECON415 - Introductory Econometrics Lecture 2: Review of Statistics Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 2-3 Lecture outline 2 Simple random sampling Distribution of the sample

More information

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC 1 HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC 7 steps of Hypothesis Testing 1. State the hypotheses 2. Identify level of significant 3. Identify the critical values 4. Calculate test statistics 5. Compare

More information

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model EPSY 905: Multivariate Analysis Lecture 1 20 January 2016 EPSY 905: Lecture 1 -

More information

Parameter Estimation, Sampling Distributions & Hypothesis Testing

Parameter Estimation, Sampling Distributions & Hypothesis Testing Parameter Estimation, Sampling Distributions & Hypothesis Testing Parameter Estimation & Hypothesis Testing In doing research, we are usually interested in some feature of a population distribution (which

More information

PLC Papers Created For:

PLC Papers Created For: PLC Papers Created For: Daniel Inequalities Inequalities on number lines 1 Grade 4 Objective: Represent the solution of a linear inequality on a number line. Question 1 Draw diagrams to represent these

More information

Conceptual and Visual Models for Categorical Data

Conceptual and Visual Models for Categorical Data Michael FRIENDLY Conceptual and Visual Models for Categorical Data A dynamic conceptual model for categorical data is described that likens observations to gas molecules in a pressure chamber. In this

More information

A Lego System for Conditional Inference

A Lego System for Conditional Inference A Lego System for Conditional Inference Torsten Hothorn 1, Kurt Hornik 2, Mark A. van de Wiel 3, Achim Zeileis 2 1 Institut für Medizininformatik, Biometrie und Epidemiologie, Friedrich-Alexander-Universität

More information

Why Is It There? Attribute Data Describe with statistics Analyze with hypothesis testing Spatial Data Describe with maps Analyze with spatial analysis

Why Is It There? Attribute Data Describe with statistics Analyze with hypothesis testing Spatial Data Describe with maps Analyze with spatial analysis 6 Why Is It There? Why Is It There? Getting Started with Geographic Information Systems Chapter 6 6.1 Describing Attributes 6.2 Statistical Analysis 6.3 Spatial Description 6.4 Spatial Analysis 6.5 Searching

More information

Nov 2015 Predicted Paper 2

Nov 2015 Predicted Paper 2 Write your name here Surname Other names Pearson Edexcel GCSE Centre Number Candidate Number Nov 2015 Predicted Paper 2 Time: 1 hour 45 minutes Higher Tier Paper Reference 1MA0/2H You must have: Ruler

More information

The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions.

The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions. The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions. A common problem of this type is concerned with determining

More information

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model PSYC 943 (930): Fundamentals of Multivariate Modeling Lecture 1: August 22, 2012

More information

FREQUENCY DISTRIBUTIONS AND PERCENTILES

FREQUENCY DISTRIBUTIONS AND PERCENTILES FREQUENCY DISTRIBUTIONS AND PERCENTILES New Statistical Notation Frequency (f): the number of times a score occurs N: sample size Simple Frequency Distributions Raw Scores The scores that we have directly

More information

VISUALIZATION OF CATEGORICAL DATA USING EXTRACAT PACKAGE IN R

VISUALIZATION OF CATEGORICAL DATA USING EXTRACAT PACKAGE IN R ECONOMETRICS. EKONOMETRIA Advances in Applied Data Analysis Year 2018, Vol. 22, No. 2 ISSN 1507-3866; e-issn 2449-9994 VISUALIZATION OF CATEGORICAL DATA USING EXTRACAT PACKAGE IN R Justyna Brzezińska University

More information

Log-linear Models for Contingency Tables

Log-linear Models for Contingency Tables Log-linear Models for Contingency Tables Statistics 149 Spring 2006 Copyright 2006 by Mark E. Irwin Log-linear Models for Two-way Contingency Tables Example: Business Administration Majors and Gender A

More information

A Wildlife Simulation Package (WiSP)

A Wildlife Simulation Package (WiSP) 1 A Wildlife Simulation Package (WiSP) Walter Zucchini 1, Martin Erdelmeier 1 and David Borchers 2 1 2 Institut für Statistik und Ökonometrie, Georg-August-Universität Göttingen, Platz der Göttinger Sieben

More information

Chi Square Analysis M&M Statistics. Name Period Date

Chi Square Analysis M&M Statistics. Name Period Date Chi Square Analysis M&M Statistics Name Period Date Have you ever wondered why the package of M&Ms you just bought never seems to have enough of your favorite color? Or, why is it that you always seem

More information

ColourMatrix: White Paper

ColourMatrix: White Paper ColourMatrix: White Paper Finding relationship gold in big data mines One of the most common user tasks when working with tabular data is identifying and quantifying correlations and associations. Fundamentally,

More information

Lecture Notes 2: Variables and graphics

Lecture Notes 2: Variables and graphics Highlights: Lecture Notes 2: Variables and graphics Quantitative vs. qualitative variables Continuous vs. discrete and ordinal vs. nominal variables Frequency distributions Pie charts Bar charts Histograms

More information

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV Theory of Engineering Experimentation Chapter IV. Decision Making for a Single Sample Chapter IV 1 4 1 Statistical Inference The field of statistical inference consists of those methods used to make decisions

More information

End of year revision

End of year revision IB Questionbank Mathematical Studies 3rd edition End of year revision 163 min 169 marks 1. A woman deposits $100 into her son s savings account on his first birthday. On his second birthday she deposits

More information

THE PEARSON CORRELATION COEFFICIENT

THE PEARSON CORRELATION COEFFICIENT CORRELATION Two variables are said to have a relation if knowing the value of one variable gives you information about the likely value of the second variable this is known as a bivariate relation There

More information

REVIEW 8/2/2017 陈芳华东师大英语系

REVIEW 8/2/2017 陈芳华东师大英语系 REVIEW Hypothesis testing starts with a null hypothesis and a null distribution. We compare what we have to the null distribution, if the result is too extreme to belong to the null distribution (p

More information

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015 STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots March 8, 2015 The duality between CI and hypothesis testing The duality between CI and hypothesis

More information

Chapte The McGraw-Hill Companies, Inc. All rights reserved.

Chapte The McGraw-Hill Companies, Inc. All rights reserved. er15 Chapte Chi-Square Tests d Chi-Square Tests for -Fit Uniform Goodness- Poisson Goodness- Goodness- ECDF Tests (Optional) Contingency Tables A contingency table is a cross-tabulation of n paired observations

More information

Map image from the Atlas of Oregon (2nd. Ed.), Copyright 2001 University of Oregon Press

Map image from the Atlas of Oregon (2nd. Ed.), Copyright 2001 University of Oregon Press Map Layout and Cartographic Design with ArcGIS Desktop Matthew Baker ESRI Educational Services Redlands, CA Education UC 2008 1 Seminar overview General map design principles Working with map elements

More information

Final Exam - Solutions

Final Exam - Solutions Ecn 102 - Analysis of Economic Data University of California - Davis March 19, 2010 Instructor: John Parman Final Exam - Solutions You have until 5:30pm to complete this exam. Please remember to put your

More information

Psych 230. Psychological Measurement and Statistics

Psych 230. Psychological Measurement and Statistics Psych 230 Psychological Measurement and Statistics Pedro Wolf December 9, 2009 This Time. Non-Parametric statistics Chi-Square test One-way Two-way Statistical Testing 1. Decide which test to use 2. State

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Lecture 26 (MWF) Tests and CI based on two proportions Suhasini Subba Rao Comparing proportions in

More information

A Short Course in Basic Statistics

A Short Course in Basic Statistics A Short Course in Basic Statistics Ian Schindler November 5, 2017 Creative commons license share and share alike BY: C 1 Descriptive Statistics 1.1 Presenting statistical data Definition 1 A statistical

More information

Review of probability and statistics 1 / 31

Review of probability and statistics 1 / 31 Review of probability and statistics 1 / 31 2 / 31 Why? This chapter follows Stock and Watson (all graphs are from Stock and Watson). You may as well refer to the appendix in Wooldridge or any other introduction

More information

AIM HIGH SCHOOL. Curriculum Map W. 12 Mile Road Farmington Hills, MI (248)

AIM HIGH SCHOOL. Curriculum Map W. 12 Mile Road Farmington Hills, MI (248) AIM HIGH SCHOOL Curriculum Map 2923 W. 12 Mile Road Farmington Hills, MI 48334 (248) 702-6922 www.aimhighschool.com COURSE TITLE: Statistics DESCRIPTION OF COURSE: PREREQUISITES: Algebra 2 Students will

More information

Topic 2 Part 3 [189 marks]

Topic 2 Part 3 [189 marks] Topic 2 Part 3 [189 marks] The grades obtained by a group of 13 students are listed below. 5 3 6 5 7 3 2 6 4 6 6 6 4 1a. Write down the modal grade. Find the mean grade. 1b. Write down the standard deviation.

More information