WarmUp 22311 Find the expected values for the

  • Slides: 16
Download presentation
Warm-Up 2/23/11 Find the expected values for the following contingency table: A study examined

Warm-Up 2/23/11 Find the expected values for the following contingency table: A study examined whether the risk of hepatitis C was related to whether people had tattoos and to where they got their tattoos. Tattoo, parlor Hepatitis C 17 Tattoo, elsewhere 8 None 22 No Hepatitis C 35 53 591

Making Sense of Statistics!!!! { Which tests work and why…

Making Sense of Statistics!!!! { Which tests work and why…

What were the expected values? ? ? Tattoo, parlor Tattoo, elsewhere None Hepatitis C

What were the expected values? ? ? Tattoo, parlor Tattoo, elsewhere None Hepatitis C 3. 90 4. 58 38. 5 Let’s Look at the Warm-Up No Hepatitis C 48. 1 56. 4 474.

We have a problem!!! When doing a chi-squared test of independence you CANNOT have

We have a problem!!! When doing a chi-squared test of independence you CANNOT have an expected value < 5

How could we change the contigency table to make this problem DISAPPEAR Tattoo, parlor

How could we change the contigency table to make this problem DISAPPEAR Tattoo, parlor Tattoo, elsewhere None Hepatitis C 3. 90 4. 58 38. 5 No Hepatitis C 48. 1 56. 4 474.

Need to increase observed values… How? Combine categories… Which ones? ? ? Combine “Tattoo,

Need to increase observed values… How? Combine categories… Which ones? ? ? Combine “Tattoo, parlor” and “Tattoo, elsewhere” to create a category “TATTOOS”

New Contingency Table Hepatitis C No Hepatitis C Tattoo 25 88 None 22 491

New Contingency Table Hepatitis C No Hepatitis C Tattoo 25 88 None 22 491

 Tattoo None Hepatitis C 8. 48 38. 5 Are the expected values all

Tattoo None Hepatitis C 8. 48 38. 5 Are the expected values all >5? No Hepatitis C 105 474

But what if I am not told what test to use? ? ? Both

But what if I am not told what test to use? ? ? Both linear regression and chi-squared test of independence are trying to show if there is a relationship between two variables…so what do we need to look at to decide? The TYPE of data: CATEGORICAL – use chi-squared test QUANTITATIVE – use linear regression

Χ 2 – Test: Categorical Data Need to be able to make a contingency

Χ 2 – Test: Categorical Data Need to be able to make a contingency table When collecting data to use a χ2 - test on, you need to be able to tally Need categories for each variable in order to create a contingency table Ex: Dominant Hand vs. Walked Left/Right Cannot have expected value < 5

Linear Regression: Quantitative Data Need to have variables to put on x-axis and the

Linear Regression: Quantitative Data Need to have variables to put on x-axis and the y-axis For linear regression to be useful in determining the relationship between two variables the scatterplot must be “straight enough” No outliers

Which Statistical Test? ? ? Even if you hit the fast food joints for

Which Statistical Test? ? ? Even if you hit the fast food joints for lunch, you should have a good breakfast. Nutritionists, concerned about “empty calories” in breakfast cereals, recorded facts about 77 cereals, including their Calories per serving and Sugar content (in grams). How are calories and sugar content related in breakfast cereals?

Which Statistical Test? ? ? Company policy calls for parking spaces to be assigned

Which Statistical Test? ? ? Company policy calls for parking spaces to be assigned to everyone at random, but you suspect that may not be so. There are three lots of equal size: lot A, next to the building; lot B, a bit farther away; and lot C, on the other side of the highway. You gather data about employees at middle management level and above to see how many were assigned parking in each lot.

Which Statistical Test? ? ? There is some concern that if a woman has

Which Statistical Test? ? ? There is some concern that if a woman has an epidural to reduce pain during childbirth the drug can get into the baby’s bloodstream, making the baby sleepier and less willing to nurse. In 2006 a study was conducted at Sydney University. Researchers followed up on 1178 births, noting whether the mother had an epidural and whether the baby was still nursing after 6 months.

Which Statistical Test? ? ? Colleges use SAT scores in admissions process because they

Which Statistical Test? ? ? Colleges use SAT scores in admissions process because they believe these scores provide some insight into how a high school student will perform at a college level. Data was collected on SAT scores and freshman year GPA to test this belief.

Group Work Get in to pairs and come up with data you could collect

Group Work Get in to pairs and come up with data you could collect and research questions you could answer using: Linear Regression Chi-Squared Test of Independence