{"id":5501,"date":"2022-09-19T14:15:25","date_gmt":"2022-09-19T14:15:25","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/?post_type=chapter&#038;p=5501"},"modified":"2022-10-04T18:15:09","modified_gmt":"2022-10-04T18:15:09","slug":"15d-inclass","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/chapter\/15d-inclass\/","title":{"raw":"15D InClass","rendered":"15D InClass"},"content":{"raw":"<div id=\"bp-page-1\" class=\"page\" data-page-number=\"1\" data-loaded=\"true\">\r\n<div class=\"textLayer\">Recall from the preview assignment that we are analyzing data from a representative sample of American adults polled by the Pew Research Center,[footnote]<span style=\"font-size: 1em;\">Pew Research Center. (2019). Core trends survey-Mobile technology and home broadband 2019 . https:\/\/www.pewresearch.org\/internet\/dataset\/core-trends-survey\/<\/span><span style=\"font-size: 1em;\">[\/footnote] and we are considering the question, \u201cAre the variables Income level and Education level independent?\u201d<\/span><\/div>\r\n<div>\r\n<table style=\"border-collapse: collapse; width: 100%; height: 112px;\" border=\"1\">\r\n<tbody>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 28px;\" colspan=\"2\" rowspan=\"2\"><strong>Count<\/strong><\/td>\r\n<td style=\"width: 16.6667%; height: 14px; text-align: center;\" colspan=\"4\"><strong>Income level<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">&lt; $30,000<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">$30,000-$74,999<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">$75,000 and up<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">Total<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 84px;\" rowspan=\"6\"><strong>Education level<\/strong><\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">Post-Grad Degree<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">2<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">8<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">46<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">56<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">College Degree<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">39<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">113<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">202<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">354<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">Some College<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">131<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">138<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">120<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">389<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">HS Grad<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">175<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">129<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">65<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">369<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">No HS Degree<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">78<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">32<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">8<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">118<\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px;\">\r\n<td style=\"width: 16.6667%; height: 14px;\">Total<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">425<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">420<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">441<\/td>\r\n<td style=\"width: 16.6667%; height: 14px;\">1,286<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 1<\/h3>\r\n1) Make a conjecture. Do you think that income level and education level are independent? Explain.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"annotationLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 2<\/h3>\r\n2) We will conduct a chi-square test of independence for the variables Income leveland Education level. What are the null and alternative hypotheses?\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"annotationLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 3<\/h3>\r\n<div class=\"annotationLayer\">3) Check whether or not the conditions are met to perform a chi-square test of independence.<\/div>\r\n<div class=\"annotationLayer\">Part A: This is not an official condition, but to usethis type of test, it is important that the data represent the counts for two categorical variables measured for individuals in one sample from one population. Is thiscondition met? Explain.\r\nPart B: Independence\/Randomness Condition-Is the sample an independent random sample, or is it an independent sample that can be considered representative of the population? (Notice that this condition is very similar to the one for the chi-square test of homogeneity, but in this case, we are only considering one sample from one populationand not multiple samples from respective populations.) Is this conditionmet? Explain.<\/div>\r\n<div class=\"annotationLayer\">Part C: Large Sample Size Condition-The sample size must be large enough so that the expected count in each cell is at least five. Is thiscondition met? Explain.<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"annotationLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 4<\/h3>\r\n<div class=\"annotationLayer\">4) Go to the DCMP Chi-Square Test tool at https:\/\/dcmathpathways.shinyapps.io\/ChiSquaredTest\/andinput the data in the contingency table. Notice that since we are checking whether there is evidence that these two variables are not independent, we can use either variable for the rows and the other for the columns. The order of the two variables does not matter.<\/div>\r\n<div class=\"annotationLayer\">Part A: Give the \ud835\udf122test statistic and the P-value.<\/div>\r\n<div class=\"annotationLayer\">Part B: What conclusion do you draw based on the P-value? Explain.<\/div>\r\n<div class=\"annotationLayer\">Part C: Interpret your conclusion in context.<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"annotationLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 5<\/h3>\r\n5) Recall from In-Class Activity 15.C that the standardized residuals are values that can be considered normal z-scores thatindicate how large of a difference there is between the observed count and the expected count for each cell. Interpret and compare the standardized residuals for individuals with post-graduate degreesand individuals with high school degrees.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"bp-page-3\" class=\"page\" data-page-number=\"3\" data-loaded=\"true\">\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 6<\/h3>\r\n6) Based on the results of this test alone, can you assure someone that if they pursue more education, they will have a larger income? Explain. Hint: Since we have concluded that education level and income level are not independent, we have concluded that they are associatedin some way\u2014but do we know how they are associated?\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 7<\/h3>\r\n7) We concluded from our hypothesis test that the variables Income leveland Education levelare not independent, but we do not know how they are associated. It could be that there is a third variable not included in our study that impacts the values of both of the variables we are considering. Such a variable is called alurking variable. Give an example of a lurking variable that could arise when considering the association of these two variables.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 8<\/h3>\r\n8) Now that you\u2019ve seen both the chi-square test of homogeneity and the chi-square test of independence in action, summarize the difference between the two tests in your own words.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>","rendered":"<div id=\"bp-page-1\" class=\"page\" data-page-number=\"1\" data-loaded=\"true\">\n<div class=\"textLayer\">Recall from the preview assignment that we are analyzing data from a representative sample of American adults polled by the Pew Research Center,<a class=\"footnote\" title=\"Pew Research Center. (2019). Core trends survey-Mobile technology and home broadband 2019 . https:\/\/www.pewresearch.org\/internet\/dataset\/core-trends-survey\/\" id=\"return-footnote-5501-1\" href=\"#footnote-5501-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a> and we are considering the question, \u201cAre the variables Income level and Education level independent?\u201d<\/span><\/div>\n<div>\n<table style=\"border-collapse: collapse; width: 100%; height: 112px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 28px;\" colspan=\"2\" rowspan=\"2\"><strong>Count<\/strong><\/td>\n<td style=\"width: 16.6667%; height: 14px; text-align: center;\" colspan=\"4\"><strong>Income level<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">&lt; $30,000<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">$30,000-$74,999<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">$75,000 and up<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">Total<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 84px;\" rowspan=\"6\"><strong>Education level<\/strong><\/td>\n<td style=\"width: 16.6667%; height: 14px;\">Post-Grad Degree<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">2<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">8<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">46<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">56<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">College Degree<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">39<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">113<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">202<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">354<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">Some College<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">131<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">138<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">120<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">389<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">HS Grad<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">175<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">129<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">65<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">369<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">No HS Degree<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">78<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">32<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">8<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">118<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 16.6667%; height: 14px;\">Total<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">425<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">420<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">441<\/td>\n<td style=\"width: 16.6667%; height: 14px;\">1,286<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 1<\/h3>\n<p>1) Make a conjecture. Do you think that income level and education level are independent? Explain.<\/p>\n<\/div>\n<\/div>\n<div class=\"annotationLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 2<\/h3>\n<p>2) We will conduct a chi-square test of independence for the variables Income leveland Education level. What are the null and alternative hypotheses?<\/p>\n<\/div>\n<\/div>\n<div class=\"annotationLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 3<\/h3>\n<div class=\"annotationLayer\">3) Check whether or not the conditions are met to perform a chi-square test of independence.<\/div>\n<div class=\"annotationLayer\">Part A: This is not an official condition, but to usethis type of test, it is important that the data represent the counts for two categorical variables measured for individuals in one sample from one population. Is thiscondition met? Explain.<br \/>\nPart B: Independence\/Randomness Condition-Is the sample an independent random sample, or is it an independent sample that can be considered representative of the population? (Notice that this condition is very similar to the one for the chi-square test of homogeneity, but in this case, we are only considering one sample from one populationand not multiple samples from respective populations.) Is this conditionmet? Explain.<\/div>\n<div class=\"annotationLayer\">Part C: Large Sample Size Condition-The sample size must be large enough so that the expected count in each cell is at least five. Is thiscondition met? Explain.<\/div>\n<\/div>\n<\/div>\n<div class=\"annotationLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 4<\/h3>\n<div class=\"annotationLayer\">4) Go to the DCMP Chi-Square Test tool at https:\/\/dcmathpathways.shinyapps.io\/ChiSquaredTest\/andinput the data in the contingency table. Notice that since we are checking whether there is evidence that these two variables are not independent, we can use either variable for the rows and the other for the columns. The order of the two variables does not matter.<\/div>\n<div class=\"annotationLayer\">Part A: Give the \ud835\udf122test statistic and the P-value.<\/div>\n<div class=\"annotationLayer\">Part B: What conclusion do you draw based on the P-value? Explain.<\/div>\n<div class=\"annotationLayer\">Part C: Interpret your conclusion in context.<\/div>\n<\/div>\n<\/div>\n<div class=\"annotationLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 5<\/h3>\n<p>5) Recall from In-Class Activity 15.C that the standardized residuals are values that can be considered normal z-scores thatindicate how large of a difference there is between the observed count and the expected count for each cell. Interpret and compare the standardized residuals for individuals with post-graduate degreesand individuals with high school degrees.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"bp-page-3\" class=\"page\" data-page-number=\"3\" data-loaded=\"true\">\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 6<\/h3>\n<p>6) Based on the results of this test alone, can you assure someone that if they pursue more education, they will have a larger income? Explain. Hint: Since we have concluded that education level and income level are not independent, we have concluded that they are associatedin some way\u2014but do we know how they are associated?<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 7<\/h3>\n<p>7) We concluded from our hypothesis test that the variables Income leveland Education levelare not independent, but we do not know how they are associated. It could be that there is a third variable not included in our study that impacts the values of both of the variables we are considering. Such a variable is called alurking variable. Give an example of a lurking variable that could arise when considering the association of these two variables.<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 8<\/h3>\n<p>8) Now that you\u2019ve seen both the chi-square test of homogeneity and the chi-square test of independence in action, summarize the difference between the two tests in your own words.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-5501-1\"><span style=\"font-size: 1em;\">Pew Research Center. (2019). Core trends survey-Mobile technology and home broadband 2019 . https:\/\/www.pewresearch.org\/internet\/dataset\/core-trends-survey\/<\/span><span style=\"font-size: 1em;\"> <a href=\"#return-footnote-5501-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":23592,"menu_order":11,"template":"","meta":{"_candela_citation":"[]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-5501","chapter","type-chapter","status-publish","hentry"],"part":5479,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/users\/23592"}],"version-history":[{"count":3,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5501\/revisions"}],"predecessor-version":[{"id":5610,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5501\/revisions\/5610"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/parts\/5479"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5501\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/media?parent=5501"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapter-type?post=5501"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/contributor?post=5501"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/license?post=5501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}