{
  "hash": "5d3fca6cd6546775db24fefb46e82041",
  "result": {
    "engine": "knitr",
    "markdown": "---\nformat:\n  revealjs:\n    embed-resources: true\n    css: webex.css\n    include-after-body: webex.js\n    scrollable: true\n---\n\n\n\n\n\n## Numeric\n\n\n\n::: {.webex-group}\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the name of the R function for extracting the estimated covariance matrix from a fitted (generalized) linear model object?\n\n<input class='webex-solveme' id='webex-a9572960711ab279954c17f865bce610' size='20' data-answer='OhtDVF1PFG0='/>\n\n:::\n::: {.webex-solution}\n\n`vcov` is the R function for extracting the estimated covariance matrix from a fitted (generalized) linear model object.\nSee `?vcov` for the corresponding manual page.\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the name of the R function for extracting the estimated coefficients from a fitted (generalized) linear model object?\n\n<input class='webex-solveme' id='webex-304527d368677530a7b7548d070371e8' size='20' data-answer='aBJXWldRRm4='/>\n\n:::\n::: {.webex-solution}\n\n`coef` is the R function for extracting the estimated coefficients from a fitted (generalized) linear model object.\nSee `?coef` for the corresponding manual page.\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the name of the R function for negative binomial regression?\n\n<input class='webex-solveme' id='webex-1a858f712d0cf99cbb2e92653db0a2f5' size='20' data-answer='akNfWVVIWVMQOQ=='/>\n\n:::\n::: {.webex-solution}\n\n`glm.nb` is the R function for negative binomial regression.\nSee `?glm.nb` for the corresponding manual page.\n\n:::\n\n:::\n:::\n\n\n\n## Single schoice\n\n\n\n::: {.webex-group}\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?\n\n\n<div class='webex-radiogroup' id='webex-78f4372c5cfc5f099783359e884de3c1' data-answer='bAhKBR8HHlMZUzs='><label><input type='radio' autocomplete='off' name='78f4372c5cfc5f099783359e884de3c1'></input><span>St. Gallen</span></label><label><input type='radio' autocomplete='off' name='78f4372c5cfc5f099783359e884de3c1'></input><span>Bern</span></label><label><input type='radio' autocomplete='off' name='78f4372c5cfc5f099783359e884de3c1'></input><span>Basel</span></label><label><input type='radio' autocomplete='off' name='78f4372c5cfc5f099783359e884de3c1'></input><span>Zurich</span></label><label><input type='radio' autocomplete='off' name='78f4372c5cfc5f099783359e884de3c1'></input><span>Lausanne</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\nThere is no de jure capital but the de facto capital and seat of the federal authorities is Bern.\n\n\n* False\n* True\n* False\n* False\n* False\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?\n\n\n<div class='webex-radiogroup' id='webex-30f74c0dd99ae06f5cbc819db2d07fa4' data-answer='aABKBhhTHFRICWQ='><label><input type='radio' autocomplete='off' name='30f74c0dd99ae06f5cbc819db2d07fa4'></input><span>Zurich</span></label><label><input type='radio' autocomplete='off' name='30f74c0dd99ae06f5cbc819db2d07fa4'></input><span>Bern</span></label><label><input type='radio' autocomplete='off' name='30f74c0dd99ae06f5cbc819db2d07fa4'></input><span>Lausanne</span></label><label><input type='radio' autocomplete='off' name='30f74c0dd99ae06f5cbc819db2d07fa4'></input><span>Vaduz</span></label><label><input type='radio' autocomplete='off' name='30f74c0dd99ae06f5cbc819db2d07fa4'></input><span>St. Gallen</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\nThere is no de jure capital but the de facto capital and seat of the federal authorities is Bern.\n\n\n* False\n* True\n* False\n* False\n* False\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhat is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?\n\n\n<div class='webex-radiogroup' id='webex-0678192ec6aa6165ff9768a35a233e86' data-answer='awcbCB0JHlVPBjw='><label><input type='radio' autocomplete='off' name='0678192ec6aa6165ff9768a35a233e86'></input><span>Bern</span></label><label><input type='radio' autocomplete='off' name='0678192ec6aa6165ff9768a35a233e86'></input><span>Vaduz</span></label><label><input type='radio' autocomplete='off' name='0678192ec6aa6165ff9768a35a233e86'></input><span>Lausanne</span></label><label><input type='radio' autocomplete='off' name='0678192ec6aa6165ff9768a35a233e86'></input><span>St. Gallen</span></label><label><input type='radio' autocomplete='off' name='0678192ec6aa6165ff9768a35a233e86'></input><span>Geneva</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\nThere is no de jure capital but the de facto capital and seat of the federal authorities is Bern.\n\n\n* True\n* False\n* False\n* False\n* False\n\n:::\n\n:::\n:::\n\n\n\n## Multiple choice\n\n\n\n::: {.webex-group}\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhich of the following statements about Switzerland is correct?\n\n\n<div class='webex-checkboxgroup' id='webex-284ceea952395fe61d3b5738c689f50c' data-answer='aQgYUklVTQkZA24='><label><input type='checkbox' autocomplete='off' name='284ceea952395fe61d3b5738c689f50c'></input><span>Switzerland is part of the European Union (EU).</span></label><label><input type='checkbox' autocomplete='off' name='284ceea952395fe61d3b5738c689f50c'></input><span>Italian is an official language in Switzerland.</span></label><label><input type='checkbox' autocomplete='off' name='284ceea952395fe61d3b5738c689f50c'></input><span>Zurich is the capital of Switzerland.</span></label><label><input type='checkbox' autocomplete='off' name='284ceea952395fe61d3b5738c689f50c'></input><span>The currency in Switzerland is the Euro.</span></label><label><input type='checkbox' autocomplete='off' name='284ceea952395fe61d3b5738c689f50c'></input><span>The Swiss national holiday is August 1.</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\n\n\n* False. Switzerland is part of the Schengen Area but not the EU.\n* True. The official languages are: German, French, Italian, Romansh.\n* False. There is no de jure capital but the de facto capital of Switzerland is Bern.\n* False. The currency is the Swiss Franc (CHF).\n* True. The establishment of the Swiss Confederation is traditionally dated to August 1, 1291.\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhich of the following statements about Switzerland is correct?\n\n\n<div class='webex-checkboxgroup' id='webex-f9ad2d0f65b3a7334e60b4ea719c24ae' data-answer='PQlNVR5UHFYaBD8='><label><input type='checkbox' autocomplete='off' name='f9ad2d0f65b3a7334e60b4ea719c24ae'></input><span>Zurich is the capital of Switzerland.</span></label><label><input type='checkbox' autocomplete='off' name='f9ad2d0f65b3a7334e60b4ea719c24ae'></input><span>The Swiss national holiday is August 1.</span></label><label><input type='checkbox' autocomplete='off' name='f9ad2d0f65b3a7334e60b4ea719c24ae'></input><span>The currency in Switzerland is the Euro.</span></label><label><input type='checkbox' autocomplete='off' name='f9ad2d0f65b3a7334e60b4ea719c24ae'></input><span>Switzerland is part of the European Union (EU).</span></label><label><input type='checkbox' autocomplete='off' name='f9ad2d0f65b3a7334e60b4ea719c24ae'></input><span>Italian is an official language in Switzerland.</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\n\n\n* False. There is no de jure capital but the de facto capital of Switzerland is Bern.\n* True. The establishment of the Swiss Confederation is traditionally dated to August 1, 1291.\n* False. The currency is the Swiss Franc (CHF).\n* False. Switzerland is part of the Schengen Area but not the EU.\n* True. The official languages are: German, French, Italian, Romansh.\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\nWhich of the following statements about Switzerland is correct?\n\n\n<div class='webex-checkboxgroup' id='webex-b54c7676aded471a4c195564dc0a291a' data-answer='OQUYUhsGGwdNVDg='><label><input type='checkbox' autocomplete='off' name='b54c7676aded471a4c195564dc0a291a'></input><span>The currency in Switzerland is the Euro.</span></label><label><input type='checkbox' autocomplete='off' name='b54c7676aded471a4c195564dc0a291a'></input><span>The Swiss national holiday is August 1.</span></label><label><input type='checkbox' autocomplete='off' name='b54c7676aded471a4c195564dc0a291a'></input><span>Switzerland is part of the European Union (EU).</span></label><label><input type='checkbox' autocomplete='off' name='b54c7676aded471a4c195564dc0a291a'></input><span>Italian is an official language in Switzerland.</span></label><label><input type='checkbox' autocomplete='off' name='b54c7676aded471a4c195564dc0a291a'></input><span>Zurich is the capital of Switzerland.</span></label></div>\n\n\n:::\n::: {.webex-solution}\n\n\n\n* False. The currency is the Swiss Franc (CHF).\n* True. The establishment of the Swiss Confederation is traditionally dated to August 1, 1291.\n* False. Switzerland is part of the Schengen Area but not the EU.\n* True. The official languages are: German, French, Italian, Romansh.\n* False. There is no de jure capital but the de facto capital of Switzerland is Bern.\n\n:::\n\n:::\n:::\n\n\n\n## Cloze\n\n\n\n::: {.webex-group}\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-f0c7f7adc51e723999b9f3d8f20ecd18' size='20' data-answer='PRIsezUVPA=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-5a3db67bfb676a86f6d32400cf1f66e1' data-answer='blEfVU4GG1JKU2s='><label><input type='checkbox' autocomplete='off' name='5a3db67bfb676a86f6d32400cf1f66e1'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='5a3db67bfb676a86f6d32400cf1f66e1'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='5a3db67bfb676a86f6d32400cf1f66e1'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='5a3db67bfb676a86f6d32400cf1f66e1'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='5a3db67bfb676a86f6d32400cf1f66e1'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-7b648911bb3628b96820f8ad20522b37' data-tol='0.01' size='20' data-answer='bEAbBBYJAQBAPw=='/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-2a1d186d538806e80e9264f37705d0ac' data-tol='0.01' size='20' data-answer='aUMBSgEJBUZo'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-5508583131aa37ecfec5c7d4565baac2' data-answer='bgQcCBkIbg=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `x` and `y` are not significantly correlated (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.60117 -0.16636 -0.01382  0.17249  0.61989 \n\nCoefficients:\n             Estimate Std. Error t value Pr(>|t|)\n(Intercept) -0.000938   0.025170  -0.037    0.970\nx            0.012960   0.045205   0.287    0.775\n\nResidual standard error: 0.2517 on 98 degrees of freedom\nMultiple R-squared:  0.000838,\tAdjusted R-squared:  -0.009358 \nF-statistic: 0.08219 on 1 and 98 DF,  p-value: 0.775\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-6013a6ee2f4a1007814fe19581d86118' size='20' data-answer='bRJ+fzIUOA=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-f83ca01222f075a308fecbc5ae92c502' data-answer='PQgfUk0AHQIeAzs='><label><input type='checkbox' autocomplete='off' name='f83ca01222f075a308fecbc5ae92c502'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='f83ca01222f075a308fecbc5ae92c502'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='f83ca01222f075a308fecbc5ae92c502'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='f83ca01222f075a308fecbc5ae92c502'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='f83ca01222f075a308fecbc5ae92c502'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-23fac25b74983f327db37a6bc1326efd' data-tol='0.01' size='20' data-answer='aRFWT1MAA0Bq'/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-f1331e5e14a84b94bbdd827f129a08be' data-tol='0.01' size='20' data-answer='PRMDHQFRBEds'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-5a71784edb990a0923e0e1bf8ecf9a29' data-answer='blAbARsIaQ=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `x` and `y` are not significantly correlated (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.55238 -0.13598 -0.00583  0.16578  0.48354 \n\nCoefficients:\n            Estimate Std. Error t value Pr(>|t|)\n(Intercept)  0.02644    0.02338   1.131    0.261\nx            0.04149    0.04378   0.948    0.346\n\nResidual standard error: 0.2337 on 98 degrees of freedom\nMultiple R-squared:  0.009082,\tAdjusted R-squared:  -0.00103 \nF-statistic: 0.8982 on 1 and 98 DF,  p-value: 0.3456\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-08e07084b5a4b928c30ecd4375f5f405' size='20' data-answer='axoqfGQSZQ=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-092b42a817cca053d592241878c09a35' data-answer='awkeUxgCTQgdBj4='><label><input type='checkbox' autocomplete='off' name='092b42a817cca053d592241878c09a35'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='092b42a817cca053d592241878c09a35'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='092b42a817cca053d592241878c09a35'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='092b42a817cca053d592241878c09a35'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='092b42a817cca053d592241878c09a35'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-41fd6295e202183aeca66356401ef5f0' data-tol='0.01' size='20' data-answer='bxNLVBgCCAFHbw=='/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-b673db7cd62940723a05eb66741186f9' data-tol='0.01' size='20' data-answer='ORQHHVRTBUE5'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-96de8b165a30602acd4902e079b0a4a9' data-answer='YgdIVRRSbA=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `x` and `y` are not significantly correlated (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.69939 -0.15033  0.00787  0.19347  0.71812 \n\nCoefficients:\n            Estimate Std. Error t value Pr(>|t|)\n(Intercept) -0.01384    0.02665  -0.519    0.605\nx            0.01161    0.04185   0.277    0.782\n\nResidual standard error: 0.2664 on 98 degrees of freedom\nMultiple R-squared:  0.000784,\tAdjusted R-squared:  -0.009412 \nF-statistic: 0.0769 on 1 and 98 DF,  p-value: 0.7821\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n:::\n\n\n\n## Cloze (devel)\n\n\n\n::: {.webex-group}\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-1f8550fdd6fb8d34f8bd9b1bd1b63844' size='20' data-answer='akR3eWYSOw=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-f56e7d767bbb4c5b57374fb04c1e3db6' data-answer='PQUaVBtUGwYbUz8='><label><input type='checkbox' autocomplete='off' name='f56e7d767bbb4c5b57374fb04c1e3db6'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='f56e7d767bbb4c5b57374fb04c1e3db6'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='f56e7d767bbb4c5b57374fb04c1e3db6'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='f56e7d767bbb4c5b57374fb04c1e3db6'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='f56e7d767bbb4c5b57374fb04c1e3db6'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-2514554dc8c7cf41f4ab44d3a99c7a9b' data-tol='0.01' size='20' data-answer='aRcBGgUHBkY+'/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-c3946f8aa36b04b470b6349b9b163e2a' data-tol='0.01' size='20' data-answer='OBEJGgFWD0M8'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-5ef7843cd2392f3c07e2c06897bab741' data-answer='blVKBhQEbg=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `y` increases significantly with `x` (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.64113 -0.19266 -0.00584  0.21850  0.70920 \n\nCoefficients:\n            Estimate Std. Error t value Pr(>|t|)    \n(Intercept)  0.02206    0.02807   0.786    0.434    \nx            0.70713    0.05027  14.066   <2e-16 ***\n---\nSignif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1\n\nResidual standard error: 0.2806 on 98 degrees of freedom\nMultiple R-squared:  0.6687,\tAdjusted R-squared:  0.6654 \nF-statistic: 197.8 on 1 and 98 DF,  p-value: < 2.2e-16\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-62325f7e3868fa2062f486c7c2971433' size='20' data-answer='bRB8fmZEag=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-3d6bcf01fda1914946f822774d34fe74' data-answer='aFQaU09WHAFKVTw='><label><input type='checkbox' autocomplete='off' name='3d6bcf01fda1914946f822774d34fe74'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='3d6bcf01fda1914946f822774d34fe74'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='3d6bcf01fda1914946f822774d34fe74'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='3d6bcf01fda1914946f822774d34fe74'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='3d6bcf01fda1914946f822774d34fe74'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-a345aebe2e1f3a2dfc97cda82ad98f35' data-tol='0.01' size='20' data-answer='OhEZBU9VUFIQOA=='/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-96d586a4954445df0680b08629d7229e' data-tol='0.01' size='20' data-answer='YhRUGwAOUBZk'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-fade5ddde6f186ec23005a2cfc1bd958' data-answer='PVFIVBlUOQ=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `y` increases significantly with `x` (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.73372 -0.15283  0.01776  0.15444  0.56256 \n\nCoefficients:\n            Estimate Std. Error t value Pr(>|t|)    \n(Intercept) -0.02724    0.02554  -1.066    0.289    \nx            0.88110    0.04402  20.016   <2e-16 ***\n---\nSignif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1\n\nResidual standard error: 0.2554 on 98 degrees of freedom\nMultiple R-squared:  0.8035,\tAdjusted R-squared:  0.8015 \nF-statistic: 400.6 on 1 and 98 DF,  p-value: < 2.2e-16\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n::: {.webex-question }\n::: {.webex-check .webex-box}\n\n\n\n**Theory:** Consider a linear regression of `y` on `x`. It is usually estimated with\nwhich estimation technique (three-letter abbreviation)?\n\n<input class='webex-solveme' id='webex-6e3f241044c2d0072188f174775939bd' size='20' data-answer='bUd8KmEWbA=='/>\n\nThis estimator yields the best linear unbiased estimator (BLUE) under the assumptions\nof the Gauss-Markov theorem. Which of the following properties are required for the\nerrors of the linear regression model under these assumptions?\n\n<div class='webex-checkboxgroup' id='webex-13b928d48d8f323be2473d0252cc2143' data-answer='agNOCB4ISAQUVWU='><label><input type='checkbox' autocomplete='off' name='13b928d48d8f323be2473d0252cc2143'></input><span>independent</span></label><label><input type='checkbox' autocomplete='off' name='13b928d48d8f323be2473d0252cc2143'></input><span>zero expectation</span></label><label><input type='checkbox' autocomplete='off' name='13b928d48d8f323be2473d0252cc2143'></input><span>normally distributed</span></label><label><input type='checkbox' autocomplete='off' name='13b928d48d8f323be2473d0252cc2143'></input><span>identically distributed</span></label><label><input type='checkbox' autocomplete='off' name='13b928d48d8f323be2473d0252cc2143'></input><span>homoscedastic</span></label></div>\n\n\n**Application:** Using the data provided in [linreg.csv](linreg.csv) estimate a\nlinear regression of `y` on `x`. What are the estimated parameters?\n\nIntercept: <input class='webex-solveme nospaces' id='webex-1e100409cd54d689935e1559f097cbe2' data-tol='0.01' size='20' data-answer='akcBHgAEAhs+'/>\n\nSlope: <input class='webex-solveme nospaces' id='webex-bdfaf4973fd73ff2b4be949e08730faa' data-tol='0.01' size='20' data-answer='OUZWT1ACABVu'/>\n\nIn terms of significance at 5% level:\n\n<select class='webex-select' id='webex-3b5297cc962a9cf1d25b69e7d0d583d9' data-answer='aFIZAxUHPg=='><option value='blank'></option><option>`x` and `y` are not significantly correlated</option><option>`y` increases significantly with `x`</option><option>`y` decreases significantly with `x`</option></select>\n\n\n\n:::\n::: {.webex-solution}\n\n\n**Theory:** Linear regression models are typically estimated by ordinary least squares (OLS).\nThe Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors\nhave expectation zero, constant variance (homoscedastic), no autocorrelation and the\nregressors are exogenous and not linearly dependent, the OLS estimator is the best linear\nunbiased estimator (BLUE).\n\n**Application:** The estimated coefficients along with their significances are reported in the\nsummary of the fitted regression model, showing that `y` increases significantly with `x` (at 5% level).\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n\nCall:\nlm(formula = y ~ x, data = d)\n\nResiduals:\n     Min       1Q   Median       3Q      Max \n-0.59250 -0.19501 -0.01624  0.16970  0.58488 \n\nCoefficients:\n            Estimate Std. Error t value Pr(>|t|)    \n(Intercept) 0.001676   0.025788   0.065    0.948    \nx           0.669237   0.043362  15.434   <2e-16 ***\n---\nSignif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1\n\nResidual standard error: 0.2578 on 98 degrees of freedom\nMultiple R-squared:  0.7085,\tAdjusted R-squared:  0.7055 \nF-statistic: 238.2 on 1 and 98 DF,  p-value: < 2.2e-16\n```\n\n\n:::\n:::\n\n**Code:** The analysis can be replicated in R using the following code.\n\n```\n## data\nd <- read.csv(\"linreg.csv\")\n## regression\nm <- lm(y ~ x, data = d)\nsummary(m)\n## visualization\nplot(y ~ x, data = d)\nabline(m)\n```\n\n:::\n\n:::\n:::",
    "supporting": [],
    "filters": [
      "rmarkdown/pagebreak.lua"
    ],
    "includes": {
      "include-after-body": [
        "\n<script>\n  // htmlwidgets need to know to resize themselves when slides are shown/hidden.\n  // Fire the \"slideenter\" event (handled by htmlwidgets.js) when the current\n  // slide changes (different for each slide format).\n  (function () {\n    // dispatch for htmlwidgets\n    function fireSlideEnter() {\n      const event = window.document.createEvent(\"Event\");\n      event.initEvent(\"slideenter\", true, true);\n      window.document.dispatchEvent(event);\n    }\n\n    function fireSlideChanged(previousSlide, currentSlide) {\n      fireSlideEnter();\n\n      // dispatch for shiny\n      if (window.jQuery) {\n        if (previousSlide) {\n          window.jQuery(previousSlide).trigger(\"hidden\");\n        }\n        if (currentSlide) {\n          window.jQuery(currentSlide).trigger(\"shown\");\n        }\n      }\n    }\n\n    // hookup for slidy\n    if (window.w3c_slidy) {\n      window.w3c_slidy.add_observer(function (slide_num) {\n        // slide_num starts at position 1\n        fireSlideChanged(null, w3c_slidy.slides[slide_num - 1]);\n      });\n    }\n\n  })();\n</script>\n\n"
      ]
    },
    "engineDependencies": {},
    "preserve": {},
    "postProcess": true
  }
}