{"id":5559,"date":"2022-09-21T20:56:55","date_gmt":"2022-09-21T20:56:55","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/?post_type=chapter&#038;p=5559"},"modified":"2022-10-18T07:42:28","modified_gmt":"2022-10-18T07:42:28","slug":"17c-inclass","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/chapter\/17c-inclass\/","title":{"raw":"17C InClass","rendered":"17C InClass"},"content":{"raw":"<div id=\"bp-page-1\" class=\"page\" data-page-number=\"1\" data-loaded=\"true\">\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 1<\/h3>\r\n1) From the candy rankings dataset, do you think the effect of sugar percentile on win percentage differs depending on whether or not the candy contains peanuts, peanut butter, or almonds?\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">You will continue using the candy rankings dataset in this in-class activity. The dataset is about information from 269,000 matchups between candies to find the candy that most people prefer. The dataset contains information about 85 candies and 12 variables. The dataset is contained in spreadsheet DCMP_STAT_17C_candy_rankings.The following is information about the variable names and definitions:<\/div>\r\n<div class=\"ba-Layer ba-Layer--region\" data-resin-fileid=\"910627870964\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--region\">\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"300\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021637\/Picture127-300x200.jpg\" alt=\"An assortment of sweets.\" width=\"300\" height=\"200\" \/> Credit: iStock\/a_namenko[\/caption]\r\n\r\n<\/div>\r\n<\/div>\r\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\r\n<div>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>Variable name<\/strong><\/td>\r\n<td><strong>Definition<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>competitorname<\/em><\/td>\r\n<td>The name of the Halloween candy<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>chocolate<\/em><\/td>\r\n<td>Does it contain chocolate?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>fruity<\/em><\/td>\r\n<td>Is it fruit flavored?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>caramel<\/em><\/td>\r\n<td>Is there caramel in the candy?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>peanutyalmondy<\/em><\/td>\r\n<td>Does it contain peanuts, peanut butter, or almonds?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>nougat<\/em><\/td>\r\n<td>Does it contain nougat?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>crispedricewafer<\/em><\/td>\r\n<td>Does it contain crisped rice, wafers, or a cookie component?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>hard<\/em><\/td>\r\n<td>Is it a hard candy?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>bar<\/em><\/td>\r\n<td>Is it a candy bar?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>pluribus<\/em><\/td>\r\n<td>Is it one of many candies in a bag or box?<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>sugarpercent<\/em><\/td>\r\n<td>The percentile of sugar it falls under within the dataset.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>pricepercent<\/em><\/td>\r\n<td>The unit price percentile compared to the rest of the set.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>winpercent<\/em><\/td>\r\n<td>The overall win percentage according to 269,000 matchups.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div class=\"textLayer\">Questions 2\u20135: We are interested in answering the following question,\u201cDoes the percentile of sugar and whether the candy contains peanuts, peanut butter, or almonds in it influence the overall average win percentage for the candy?\u201d<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 2<\/h3>\r\n2) What is the response variable? Identify the variable name from the dataset.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 3<\/h3>\r\n3) What are the explanatory variables? Identify the variable names from the dataset and whether they are categorical or continuous.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 4<\/h3>\r\n<div class=\"textLayer\">4) The reference group of interest for the variable peanuty almondy is there is no peanuts, peanut butter, or almonds in the candy.<\/div>\r\n<div class=\"textLayer\">Part A: How many indicator variables are needed for the variable?<\/div>\r\n<div class=\"textLayer\">Part B: How would you define the values for the indicator variablepeanut,given the reference group of interest?<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 5<\/h3>\r\n<div class=\"textLayer\">5) Giventhe fitted model coefficients in thefollowingtable, consider theregression model that can answerthe question of interest.<img class=\"alignnone wp-image-2191\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021644\/Picture1281-300x171.png\" alt=\"A scatterplot labeled \u201csugar percent\u201d on the horizontal axis and \u201cwinpercent\u201d on the y-axis. There is a legend titled peanutyalmondy showing that the blue line and points indicate TRUE and the red line and points indicate FALSE. The red dots are very spread out but arranged in a loosely linear pattern. The red line has a positive slope. The blue dots are also spread out in a loosely linear pattern and the blue line appears to have a similar slope to the red line, but is above it.\" width=\"944\" height=\"538\" \/>\r\n<table style=\"width: 443px;\">\r\n<thead>\r\n<tr>\r\n<td style=\"width: 207px;\"><strong>Parameter<\/strong><\/td>\r\n<td style=\"width: 65px;\"><strong>Estimate<\/strong><\/td>\r\n<td style=\"width: 67px;\"><strong>Standard\r\nerror<\/strong><\/td>\r\n<td style=\"width: 53px;\"><strong>t-value<\/strong><\/td>\r\n<td style=\"width: 51px;\"><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 207px;\"><strong>Intercept<\/strong><\/td>\r\n<td style=\"width: 65px;\">42.93<\/td>\r\n<td style=\"width: 67px;\">2.88<\/td>\r\n<td style=\"width: 53px;\">14.91<\/td>\r\n<td style=\"width: 51px;\">&lt;.0001<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 207px;\"><strong><em>peanutyalmondy<\/em><\/strong><strong> = TRUE<\/strong><\/td>\r\n<td style=\"width: 65px;\">15.34<\/td>\r\n<td style=\"width: 67px;\">3.90<\/td>\r\n<td style=\"width: 53px;\">3.93<\/td>\r\n<td style=\"width: 51px;\">0.0002<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 207px;\"><strong><em>sugarpercent<\/em><\/strong><\/td>\r\n<td style=\"width: 65px;\">10.14<\/td>\r\n<td style=\"width: 67px;\">5.15<\/td>\r\n<td style=\"width: 53px;\">1.97<\/td>\r\n<td style=\"width: 51px;\">0.0523<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 207px;\"><strong><em>Elevation_Feet<\/em><\/strong><strong> * <em>Direction<\/em> = east<\/strong><\/td>\r\n<td style=\"width: 65px;\">-0.001<\/td>\r\n<td style=\"width: 67px;\">0.003<\/td>\r\n<td style=\"width: 53px;\">-0.44<\/td>\r\n<td style=\"width: 51px;\">0.6629<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div class=\"textLayer\">Part A: What is the full equation for the model?<\/div>\r\n<div class=\"textLayer\">Part B: What is the equation of the model for acandy that contains peanuts, peanut butter, or almonds?Write it in the most simplified form.<\/div>\r\n<div class=\"textLayer\">Part C: What is the equation ofthe model for acandy that doesnotcontain peanuts, peanut butter, or almonds?<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 6<\/h3>\r\n6) What is the interpretation for the regression coefficient fora candy that contains peanuts, peanut butter,or almonds? Hint: What is the reference group for the interpretation?\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">Questions 7\u201310: We want to investigate whether the effect of sugar percentile on win percentage differs depending on whether or not the candy has peanuts, peanut butter, or almonds. In this case, we would want to investigate an interaction term.<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 7<\/h3>\r\n7) What additional term would need to be added to the multiple linear regression model? Define the additional term using variables from the dataset.\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) Explain why or why not the question from the start of the activity (\u201cDoes the percentile of sugar and whether the candy contains peanuts, peanut butter, or almonds in it influence the overall average win percentage for the candy?\u201d) differs from the statement under investigation.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 9<\/h3>\r\n9) The new fitted model is presented in the following figure. How does this model differ from the one in Question 5?\r\n\r\n<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021650\/Picture1291-300x225.png\" alt=\"A scatterplot labeled \u201csugar percent\u201d on the horizontal axis and \u201cwinpercent\u201d on the y-axis. There is a legend titled peanutyalmondy showing that the blue line and points indicate TRUE and the red line and points indicate FALSE. The red dots are very spread out but arranged in a loosely linear pattern. The red line has a positive slope. The blue dots are also spread out in a loosely linear pattern and the blue line has a steeper positive slope than the red line. It is also higher than the red line.\" \/>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 10<\/h3>\r\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\r\n<div class=\"textLayer\">10) Given the fitted model coefficients in the following table, consider the regression model that can answer the question of interest.<\/div>\r\n<div class=\"textLayer\">\r\n<table>\r\n<thead>\r\n<tr>\r\n<td><strong>Parameter<\/strong><\/td>\r\n<td><strong>Estimate<\/strong><\/td>\r\n<td><strong>Standard\r\nerror<\/strong><\/td>\r\n<td><strong>t-value<\/strong><\/td>\r\n<td><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td><strong>Intercept<\/strong><\/td>\r\n<td>43.40<\/td>\r\n<td>3.01<\/td>\r\n<td>14.41<\/td>\r\n<td>&lt;.0001<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong><em>peanutyalmondy<\/em><\/strong><strong> = TRUE<\/strong><\/td>\r\n<td>10.48<\/td>\r\n<td>9.63<\/td>\r\n<td>1.09<\/td>\r\n<td>0.2799<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong><em>sugarpercent<\/em><\/strong><\/td>\r\n<td>9.15<\/td>\r\n<td>5.48<\/td>\r\n<td>1.67<\/td>\r\n<td>0.0985<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong><em>sugarpercent<\/em><\/strong><strong><em>peanutyalmondy <\/em><\/strong><strong>= TRUE<\/strong><\/td>\r\n<td>9.23<\/td>\r\n<td>16.69<\/td>\r\n<td>0.55<\/td>\r\n<td>0.5818<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div class=\"textLayer\">Part A: What is the full equation for the model?<\/div>\r\n<\/div>\r\n<div id=\"bp-page-5\" class=\"page\" data-page-number=\"5\" data-loaded=\"true\">\r\n<div class=\"ba-Layer ba-Layer--region\" data-resin-fileid=\"910627870964\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--region\"><\/div>\r\n<\/div>\r\n<div id=\"bp-page-6\" class=\"page\" data-page-number=\"6\" data-loaded=\"true\">\r\n<div class=\"textLayer\">Part B: Fill in the following table with the appropriate model equationsto see the interaction termsunpacked. Simplify your equation by combining like terms and simplifying.\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong><em>peanutyalmondy<\/em><\/strong><strong> indicator variable value<\/strong><\/td>\r\n<td><strong>Estimated model equation<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>peanutyalmondy<\/em> \u00a01 or TRUE<\/td>\r\n<td>\u00a0_________ \u00a0________<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><em>peanutyalmondy<\/em> \u00a00 or FALSE<\/td>\r\n<td>\u00a0_________ ________<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<div class=\"textLayer\">Part C: What is the interpretation of sugarpercentfor a candy that has peanuts, peanut butter,or almonds?<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"bp-page-6\" class=\"page\" data-page-number=\"6\" data-loaded=\"true\">\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 11<\/h3>\r\n11) What would be the winpercentfor a candy that does not have peanuts, peanut butter,or almonds and has a sugarpercentof 0.84 (84%)?\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\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 1<\/h3>\n<p>1) From the candy rankings dataset, do you think the effect of sugar percentile on win percentage differs depending on whether or not the candy contains peanuts, peanut butter, or almonds?<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">You will continue using the candy rankings dataset in this in-class activity. The dataset is about information from 269,000 matchups between candies to find the candy that most people prefer. The dataset contains information about 85 candies and 12 variables. The dataset is contained in spreadsheet DCMP_STAT_17C_candy_rankings.The following is information about the variable names and definitions:<\/div>\n<div class=\"ba-Layer ba-Layer--region\" data-resin-fileid=\"910627870964\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--region\">\n<div style=\"width: 310px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021637\/Picture127-300x200.jpg\" alt=\"An assortment of sweets.\" width=\"300\" height=\"200\" \/><\/p>\n<p class=\"wp-caption-text\">Credit: iStock\/a_namenko<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\n<div>\n<table>\n<tbody>\n<tr>\n<td><strong>Variable name<\/strong><\/td>\n<td><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td><em>competitorname<\/em><\/td>\n<td>The name of the Halloween candy<\/td>\n<\/tr>\n<tr>\n<td><em>chocolate<\/em><\/td>\n<td>Does it contain chocolate?<\/td>\n<\/tr>\n<tr>\n<td><em>fruity<\/em><\/td>\n<td>Is it fruit flavored?<\/td>\n<\/tr>\n<tr>\n<td><em>caramel<\/em><\/td>\n<td>Is there caramel in the candy?<\/td>\n<\/tr>\n<tr>\n<td><em>peanutyalmondy<\/em><\/td>\n<td>Does it contain peanuts, peanut butter, or almonds?<\/td>\n<\/tr>\n<tr>\n<td><em>nougat<\/em><\/td>\n<td>Does it contain nougat?<\/td>\n<\/tr>\n<tr>\n<td><em>crispedricewafer<\/em><\/td>\n<td>Does it contain crisped rice, wafers, or a cookie component?<\/td>\n<\/tr>\n<tr>\n<td><em>hard<\/em><\/td>\n<td>Is it a hard candy?<\/td>\n<\/tr>\n<tr>\n<td><em>bar<\/em><\/td>\n<td>Is it a candy bar?<\/td>\n<\/tr>\n<tr>\n<td><em>pluribus<\/em><\/td>\n<td>Is it one of many candies in a bag or box?<\/td>\n<\/tr>\n<tr>\n<td><em>sugarpercent<\/em><\/td>\n<td>The percentile of sugar it falls under within the dataset.<\/td>\n<\/tr>\n<tr>\n<td><em>pricepercent<\/em><\/td>\n<td>The unit price percentile compared to the rest of the set.<\/td>\n<\/tr>\n<tr>\n<td><em>winpercent<\/em><\/td>\n<td>The overall win percentage according to 269,000 matchups.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"textLayer\">Questions 2\u20135: We are interested in answering the following question,\u201cDoes the percentile of sugar and whether the candy contains peanuts, peanut butter, or almonds in it influence the overall average win percentage for the candy?\u201d<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 2<\/h3>\n<p>2) What is the response variable? Identify the variable name from the dataset.<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 3<\/h3>\n<p>3) What are the explanatory variables? Identify the variable names from the dataset and whether they are categorical or continuous.<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 4<\/h3>\n<div class=\"textLayer\">4) The reference group of interest for the variable peanuty almondy is there is no peanuts, peanut butter, or almonds in the candy.<\/div>\n<div class=\"textLayer\">Part A: How many indicator variables are needed for the variable?<\/div>\n<div class=\"textLayer\">Part B: How would you define the values for the indicator variablepeanut,given the reference group of interest?<\/div>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 5<\/h3>\n<div class=\"textLayer\">5) Giventhe fitted model coefficients in thefollowingtable, consider theregression model that can answerthe question of interest.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2191\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021644\/Picture1281-300x171.png\" alt=\"A scatterplot labeled \u201csugar percent\u201d on the horizontal axis and \u201cwinpercent\u201d on the y-axis. There is a legend titled peanutyalmondy showing that the blue line and points indicate TRUE and the red line and points indicate FALSE. The red dots are very spread out but arranged in a loosely linear pattern. The red line has a positive slope. The blue dots are also spread out in a loosely linear pattern and the blue line appears to have a similar slope to the red line, but is above it.\" width=\"944\" height=\"538\" \/><\/p>\n<table style=\"width: 443px;\">\n<thead>\n<tr>\n<td style=\"width: 207px;\"><strong>Parameter<\/strong><\/td>\n<td style=\"width: 65px;\"><strong>Estimate<\/strong><\/td>\n<td style=\"width: 67px;\"><strong>Standard<br \/>\nerror<\/strong><\/td>\n<td style=\"width: 53px;\"><strong>t-value<\/strong><\/td>\n<td style=\"width: 51px;\"><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 207px;\"><strong>Intercept<\/strong><\/td>\n<td style=\"width: 65px;\">42.93<\/td>\n<td style=\"width: 67px;\">2.88<\/td>\n<td style=\"width: 53px;\">14.91<\/td>\n<td style=\"width: 51px;\">&lt;.0001<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 207px;\"><strong><em>peanutyalmondy<\/em><\/strong><strong> = TRUE<\/strong><\/td>\n<td style=\"width: 65px;\">15.34<\/td>\n<td style=\"width: 67px;\">3.90<\/td>\n<td style=\"width: 53px;\">3.93<\/td>\n<td style=\"width: 51px;\">0.0002<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 207px;\"><strong><em>sugarpercent<\/em><\/strong><\/td>\n<td style=\"width: 65px;\">10.14<\/td>\n<td style=\"width: 67px;\">5.15<\/td>\n<td style=\"width: 53px;\">1.97<\/td>\n<td style=\"width: 51px;\">0.0523<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 207px;\"><strong><em>Elevation_Feet<\/em><\/strong><strong> * <em>Direction<\/em> = east<\/strong><\/td>\n<td style=\"width: 65px;\">-0.001<\/td>\n<td style=\"width: 67px;\">0.003<\/td>\n<td style=\"width: 53px;\">-0.44<\/td>\n<td style=\"width: 51px;\">0.6629<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"textLayer\">Part A: What is the full equation for the model?<\/div>\n<div class=\"textLayer\">Part B: What is the equation of the model for acandy that contains peanuts, peanut butter, or almonds?Write it in the most simplified form.<\/div>\n<div class=\"textLayer\">Part C: What is the equation ofthe model for acandy that doesnotcontain peanuts, peanut butter, or almonds?<\/div>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 6<\/h3>\n<p>6) What is the interpretation for the regression coefficient fora candy that contains peanuts, peanut butter,or almonds? Hint: What is the reference group for the interpretation?<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">Questions 7\u201310: We want to investigate whether the effect of sugar percentile on win percentage differs depending on whether or not the candy has peanuts, peanut butter, or almonds. In this case, we would want to investigate an interaction term.<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 7<\/h3>\n<p>7) What additional term would need to be added to the multiple linear regression model? Define the additional term using variables from the dataset.<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 8<\/h3>\n<p>8) Explain why or why not the question from the start of the activity (\u201cDoes the percentile of sugar and whether the candy contains peanuts, peanut butter, or almonds in it influence the overall average win percentage for the candy?\u201d) differs from the statement under investigation.<\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 9<\/h3>\n<p>9) The new fitted model is presented in the following figure. How does this model differ from the one in Question 5?<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2022\/01\/27021650\/Picture1291-300x225.png\" alt=\"A scatterplot labeled \u201csugar percent\u201d on the horizontal axis and \u201cwinpercent\u201d on the y-axis. There is a legend titled peanutyalmondy showing that the blue line and points indicate TRUE and the red line and points indicate FALSE. The red dots are very spread out but arranged in a loosely linear pattern. The red line has a positive slope. The blue dots are also spread out in a loosely linear pattern and the blue line has a steeper positive slope than the red line. It is also higher than the red line.\" \/><\/p>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 10<\/h3>\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\n<div class=\"textLayer\">10) Given the fitted model coefficients in the following table, consider the regression model that can answer the question of interest.<\/div>\n<div class=\"textLayer\">\n<table>\n<thead>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Estimate<\/strong><\/td>\n<td><strong>Standard<br \/>\nerror<\/strong><\/td>\n<td><strong>t-value<\/strong><\/td>\n<td><strong>Pr\u00a0&gt;\u00a0|t|<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Intercept<\/strong><\/td>\n<td>43.40<\/td>\n<td>3.01<\/td>\n<td>14.41<\/td>\n<td>&lt;.0001<\/td>\n<\/tr>\n<tr>\n<td><strong><em>peanutyalmondy<\/em><\/strong><strong> = TRUE<\/strong><\/td>\n<td>10.48<\/td>\n<td>9.63<\/td>\n<td>1.09<\/td>\n<td>0.2799<\/td>\n<\/tr>\n<tr>\n<td><strong><em>sugarpercent<\/em><\/strong><\/td>\n<td>9.15<\/td>\n<td>5.48<\/td>\n<td>1.67<\/td>\n<td>0.0985<\/td>\n<\/tr>\n<tr>\n<td><strong><em>sugarpercent<\/em><\/strong><strong><em>peanutyalmondy <\/em><\/strong><strong>= TRUE<\/strong><\/td>\n<td>9.23<\/td>\n<td>16.69<\/td>\n<td>0.55<\/td>\n<td>0.5818<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"textLayer\">Part A: What is the full equation for the model?<\/div>\n<\/div>\n<div id=\"bp-page-5\" class=\"page\" data-page-number=\"5\" data-loaded=\"true\">\n<div class=\"ba-Layer ba-Layer--region\" data-resin-fileid=\"910627870964\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--region\"><\/div>\n<\/div>\n<div id=\"bp-page-6\" class=\"page\" data-page-number=\"6\" data-loaded=\"true\">\n<div class=\"textLayer\">Part B: Fill in the following table with the appropriate model equationsto see the interaction termsunpacked. Simplify your equation by combining like terms and simplifying.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong><em>peanutyalmondy<\/em><\/strong><strong> indicator variable value<\/strong><\/td>\n<td><strong>Estimated model equation<\/strong><\/td>\n<\/tr>\n<tr>\n<td><em>peanutyalmondy<\/em> \u00a01 or TRUE<\/td>\n<td>\u00a0_________ \u00a0________<\/td>\n<\/tr>\n<tr>\n<td><em>peanutyalmondy<\/em> \u00a00 or FALSE<\/td>\n<td>\u00a0_________ ________<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"textLayer\">Part C: What is the interpretation of sugarpercentfor a candy that has peanuts, peanut butter,or almonds?<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"bp-page-6\" class=\"page\" data-page-number=\"6\" data-loaded=\"true\">\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 11<\/h3>\n<p>11) What would be the winpercentfor a candy that does not have peanuts, peanut butter,or almonds and has a sugarpercentof 0.84 (84%)?<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":23592,"menu_order":68,"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-5559","chapter","type-chapter","status-publish","hentry"],"part":5543,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5559","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\/5559\/revisions"}],"predecessor-version":[{"id":5661,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5559\/revisions\/5661"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/parts\/5543"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5559\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/media?parent=5559"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapter-type?post=5559"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/contributor?post=5559"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/license?post=5559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}