<?xml version="1.0" encoding="UTF-8"?>
<quiz>


<question type="category">
<category>
<text>$course$/Dtnnl_Rgrss_Quzzs_e2f_stat_deskr_regression_berechnung/"Deskriptive_Statistik"</text>
</category>
</question>


<question type="cloze">
<name>
<text> R01 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="yneebjyloa" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yneebjyloa table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#yneebjyloa thead, #yneebjyloa tbody, #yneebjyloa tfoot, #yneebjyloa tr, #yneebjyloa td, #yneebjyloa th {
  border-style: none;
}

#yneebjyloa p {
  margin: 0;
  padding: 0;
}

#yneebjyloa .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#yneebjyloa .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yneebjyloa .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#yneebjyloa .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#yneebjyloa .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yneebjyloa .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yneebjyloa .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yneebjyloa .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#yneebjyloa .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#yneebjyloa .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yneebjyloa .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yneebjyloa .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#yneebjyloa .gt_spanner_row {
  border-bottom-style: hidden;
}

#yneebjyloa .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#yneebjyloa .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#yneebjyloa .gt_from_md > :first-child {
  margin-top: 0;
}

#yneebjyloa .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yneebjyloa .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#yneebjyloa .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#yneebjyloa .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#yneebjyloa .gt_row_group_first td {
  border-top-width: 2px;
}

#yneebjyloa .gt_row_group_first th {
  border-top-width: 2px;
}

#yneebjyloa .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yneebjyloa .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yneebjyloa .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yneebjyloa .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yneebjyloa .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yneebjyloa .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#yneebjyloa .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#yneebjyloa .gt_striped {
  background-color: #F5F5F5;
}

#yneebjyloa .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yneebjyloa .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yneebjyloa .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yneebjyloa .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yneebjyloa .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yneebjyloa .gt_left {
  text-align: left;
}

#yneebjyloa .gt_center {
  text-align: center;
}

#yneebjyloa .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yneebjyloa .gt_font_normal {
  font-weight: normal;
}

#yneebjyloa .gt_font_bold {
  font-weight: bold;
}

#yneebjyloa .gt_font_italic {
  font-style: italic;
}

#yneebjyloa .gt_super {
  font-size: 65%;
}

#yneebjyloa .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yneebjyloa .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yneebjyloa .gt_indent_1 {
  text-indent: 5px;
}

#yneebjyloa .gt_indent_2 {
  text-indent: 10px;
}

#yneebjyloa .gt_indent_3 {
  text-indent: 15px;
}

#yneebjyloa .gt_indent_4 {
  text-indent: 20px;
}

#yneebjyloa .gt_indent_5 {
  text-indent: 25px;
}

#yneebjyloa .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yneebjyloa div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">112.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">35</td>
<td headers="Y" class="gt_row gt_center gt_striped">124.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center">40</td>
<td headers="Y" class="gt_row gt_center">130.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">134.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">50</td>
<td headers="Y" class="gt_row gt_center">133.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">60</td>
<td headers="Y" class="gt_row gt_center gt_striped">153.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=79.42:0.05}</p>
<p><span class="math inline">\(\hat{y}(55) =\)</span>  {1:NUMERICAL:=144.87:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 79.42\)</span>, <span class="math inline">\(\quad \hat{b} = 1.19\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 79.42 + 1.19 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9221\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(55) = 79.42 + 1.19 \cdot 55 = 144.87\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R02 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="xnbmrvnfas" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#xnbmrvnfas table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#xnbmrvnfas thead, #xnbmrvnfas tbody, #xnbmrvnfas tfoot, #xnbmrvnfas tr, #xnbmrvnfas td, #xnbmrvnfas th {
  border-style: none;
}

#xnbmrvnfas p {
  margin: 0;
  padding: 0;
}

#xnbmrvnfas .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#xnbmrvnfas .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#xnbmrvnfas .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#xnbmrvnfas .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#xnbmrvnfas .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#xnbmrvnfas .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xnbmrvnfas .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#xnbmrvnfas .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#xnbmrvnfas .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#xnbmrvnfas .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#xnbmrvnfas .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#xnbmrvnfas .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#xnbmrvnfas .gt_spanner_row {
  border-bottom-style: hidden;
}

#xnbmrvnfas .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#xnbmrvnfas .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#xnbmrvnfas .gt_from_md > :first-child {
  margin-top: 0;
}

#xnbmrvnfas .gt_from_md > :last-child {
  margin-bottom: 0;
}

#xnbmrvnfas .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#xnbmrvnfas .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#xnbmrvnfas .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#xnbmrvnfas .gt_row_group_first td {
  border-top-width: 2px;
}

#xnbmrvnfas .gt_row_group_first th {
  border-top-width: 2px;
}

#xnbmrvnfas .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#xnbmrvnfas .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#xnbmrvnfas .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#xnbmrvnfas .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xnbmrvnfas .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#xnbmrvnfas .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#xnbmrvnfas .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#xnbmrvnfas .gt_striped {
  background-color: #F5F5F5;
}

#xnbmrvnfas .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xnbmrvnfas .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#xnbmrvnfas .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#xnbmrvnfas .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#xnbmrvnfas .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#xnbmrvnfas .gt_left {
  text-align: left;
}

#xnbmrvnfas .gt_center {
  text-align: center;
}

#xnbmrvnfas .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#xnbmrvnfas .gt_font_normal {
  font-weight: normal;
}

#xnbmrvnfas .gt_font_bold {
  font-weight: bold;
}

#xnbmrvnfas .gt_font_italic {
  font-style: italic;
}

#xnbmrvnfas .gt_super {
  font-size: 65%;
}

#xnbmrvnfas .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#xnbmrvnfas .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#xnbmrvnfas .gt_indent_1 {
  text-indent: 5px;
}

#xnbmrvnfas .gt_indent_2 {
  text-indent: 10px;
}

#xnbmrvnfas .gt_indent_3 {
  text-indent: 15px;
}

#xnbmrvnfas .gt_indent_4 {
  text-indent: 20px;
}

#xnbmrvnfas .gt_indent_5 {
  text-indent: 25px;
}

#xnbmrvnfas .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#xnbmrvnfas div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">139.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">20</td>
<td headers="Y" class="gt_row gt_center gt_striped">206.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">243.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">30</td>
<td headers="Y" class="gt_row gt_center gt_striped">251.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">274.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">320.6</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.66:0.05}</p>
<p><span class="math inline">\(\hat{y}(25) =\)</span>  {1:NUMERICAL:=229.75:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 88.25\)</span>, <span class="math inline">\(\quad \hat{b} = 5.66\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 88.25 + 5.66 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.977\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(25) = 88.25 + 5.66 \cdot 25 = 229.75\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R03 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="lpamufqigw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#lpamufqigw table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#lpamufqigw thead, #lpamufqigw tbody, #lpamufqigw tfoot, #lpamufqigw tr, #lpamufqigw td, #lpamufqigw th {
  border-style: none;
}

#lpamufqigw p {
  margin: 0;
  padding: 0;
}

#lpamufqigw .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#lpamufqigw .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#lpamufqigw .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#lpamufqigw .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#lpamufqigw .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#lpamufqigw .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lpamufqigw .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#lpamufqigw .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#lpamufqigw .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#lpamufqigw .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#lpamufqigw .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#lpamufqigw .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#lpamufqigw .gt_spanner_row {
  border-bottom-style: hidden;
}

#lpamufqigw .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#lpamufqigw .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#lpamufqigw .gt_from_md > :first-child {
  margin-top: 0;
}

#lpamufqigw .gt_from_md > :last-child {
  margin-bottom: 0;
}

#lpamufqigw .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#lpamufqigw .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#lpamufqigw .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#lpamufqigw .gt_row_group_first td {
  border-top-width: 2px;
}

#lpamufqigw .gt_row_group_first th {
  border-top-width: 2px;
}

#lpamufqigw .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#lpamufqigw .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#lpamufqigw .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#lpamufqigw .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lpamufqigw .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#lpamufqigw .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#lpamufqigw .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#lpamufqigw .gt_striped {
  background-color: #F5F5F5;
}

#lpamufqigw .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lpamufqigw .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#lpamufqigw .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#lpamufqigw .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#lpamufqigw .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#lpamufqigw .gt_left {
  text-align: left;
}

#lpamufqigw .gt_center {
  text-align: center;
}

#lpamufqigw .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#lpamufqigw .gt_font_normal {
  font-weight: normal;
}

#lpamufqigw .gt_font_bold {
  font-weight: bold;
}

#lpamufqigw .gt_font_italic {
  font-style: italic;
}

#lpamufqigw .gt_super {
  font-size: 65%;
}

#lpamufqigw .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#lpamufqigw .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#lpamufqigw .gt_indent_1 {
  text-indent: 5px;
}

#lpamufqigw .gt_indent_2 {
  text-indent: 10px;
}

#lpamufqigw .gt_indent_3 {
  text-indent: 15px;
}

#lpamufqigw .gt_indent_4 {
  text-indent: 20px;
}

#lpamufqigw .gt_indent_5 {
  text-indent: 25px;
}

#lpamufqigw .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#lpamufqigw div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">166</td>
<td headers="Y" class="gt_row gt_center">38.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">170</td>
<td headers="Y" class="gt_row gt_center gt_striped">40.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">178</td>
<td headers="Y" class="gt_row gt_center">42.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">182</td>
<td headers="Y" class="gt_row gt_center gt_striped">45.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">190</td>
<td headers="Y" class="gt_row gt_center">51.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-45.88:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.5:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -45.88\)</span>, <span class="math inline">\(\quad \hat{b} = 0.5\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -45.88 + 0.5 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9653\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R04 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="zxjpulgxuv" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#zxjpulgxuv table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#zxjpulgxuv thead, #zxjpulgxuv tbody, #zxjpulgxuv tfoot, #zxjpulgxuv tr, #zxjpulgxuv td, #zxjpulgxuv th {
  border-style: none;
}

#zxjpulgxuv p {
  margin: 0;
  padding: 0;
}

#zxjpulgxuv .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#zxjpulgxuv .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#zxjpulgxuv .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#zxjpulgxuv .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#zxjpulgxuv .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zxjpulgxuv .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zxjpulgxuv .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zxjpulgxuv .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#zxjpulgxuv .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#zxjpulgxuv .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#zxjpulgxuv .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#zxjpulgxuv .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#zxjpulgxuv .gt_spanner_row {
  border-bottom-style: hidden;
}

#zxjpulgxuv .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#zxjpulgxuv .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#zxjpulgxuv .gt_from_md > :first-child {
  margin-top: 0;
}

#zxjpulgxuv .gt_from_md > :last-child {
  margin-bottom: 0;
}

#zxjpulgxuv .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#zxjpulgxuv .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#zxjpulgxuv .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#zxjpulgxuv .gt_row_group_first td {
  border-top-width: 2px;
}

#zxjpulgxuv .gt_row_group_first th {
  border-top-width: 2px;
}

#zxjpulgxuv .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zxjpulgxuv .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#zxjpulgxuv .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#zxjpulgxuv .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zxjpulgxuv .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zxjpulgxuv .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#zxjpulgxuv .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#zxjpulgxuv .gt_striped {
  background-color: #F5F5F5;
}

#zxjpulgxuv .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zxjpulgxuv .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zxjpulgxuv .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zxjpulgxuv .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zxjpulgxuv .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zxjpulgxuv .gt_left {
  text-align: left;
}

#zxjpulgxuv .gt_center {
  text-align: center;
}

#zxjpulgxuv .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#zxjpulgxuv .gt_font_normal {
  font-weight: normal;
}

#zxjpulgxuv .gt_font_bold {
  font-weight: bold;
}

#zxjpulgxuv .gt_font_italic {
  font-style: italic;
}

#zxjpulgxuv .gt_super {
  font-size: 65%;
}

#zxjpulgxuv .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#zxjpulgxuv .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#zxjpulgxuv .gt_indent_1 {
  text-indent: 5px;
}

#zxjpulgxuv .gt_indent_2 {
  text-indent: 10px;
}

#zxjpulgxuv .gt_indent_3 {
  text-indent: 15px;
}

#zxjpulgxuv .gt_indent_4 {
  text-indent: 20px;
}

#zxjpulgxuv .gt_indent_5 {
  text-indent: 25px;
}

#zxjpulgxuv .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#zxjpulgxuv div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">162</td>
<td headers="Y" class="gt_row gt_center">35.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">166</td>
<td headers="Y" class="gt_row gt_center gt_striped">35.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">178</td>
<td headers="Y" class="gt_row gt_center">43.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">186</td>
<td headers="Y" class="gt_row gt_center gt_striped">47.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">190</td>
<td headers="Y" class="gt_row gt_center">50.9</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.56:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9878:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -56.9\)</span>, <span class="math inline">\(\quad \hat{b} = 0.56\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -56.9 + 0.56 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9878\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R05 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Etat (in Mio. Euro) und Punkte (in Pkt.):</p>
<div id="qcvcgncslq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#qcvcgncslq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#qcvcgncslq thead, #qcvcgncslq tbody, #qcvcgncslq tfoot, #qcvcgncslq tr, #qcvcgncslq td, #qcvcgncslq th {
  border-style: none;
}

#qcvcgncslq p {
  margin: 0;
  padding: 0;
}

#qcvcgncslq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#qcvcgncslq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#qcvcgncslq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#qcvcgncslq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#qcvcgncslq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qcvcgncslq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qcvcgncslq .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qcvcgncslq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#qcvcgncslq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#qcvcgncslq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#qcvcgncslq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#qcvcgncslq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#qcvcgncslq .gt_spanner_row {
  border-bottom-style: hidden;
}

#qcvcgncslq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#qcvcgncslq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#qcvcgncslq .gt_from_md > :first-child {
  margin-top: 0;
}

#qcvcgncslq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#qcvcgncslq .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#qcvcgncslq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#qcvcgncslq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#qcvcgncslq .gt_row_group_first td {
  border-top-width: 2px;
}

#qcvcgncslq .gt_row_group_first th {
  border-top-width: 2px;
}

#qcvcgncslq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qcvcgncslq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#qcvcgncslq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#qcvcgncslq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qcvcgncslq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qcvcgncslq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#qcvcgncslq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#qcvcgncslq .gt_striped {
  background-color: #F5F5F5;
}

#qcvcgncslq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qcvcgncslq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qcvcgncslq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qcvcgncslq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qcvcgncslq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qcvcgncslq .gt_left {
  text-align: left;
}

#qcvcgncslq .gt_center {
  text-align: center;
}

#qcvcgncslq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#qcvcgncslq .gt_font_normal {
  font-weight: normal;
}

#qcvcgncslq .gt_font_bold {
  font-weight: bold;
}

#qcvcgncslq .gt_font_italic {
  font-style: italic;
}

#qcvcgncslq .gt_super {
  font-size: 65%;
}

#qcvcgncslq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#qcvcgncslq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#qcvcgncslq .gt_indent_1 {
  text-indent: 5px;
}

#qcvcgncslq .gt_indent_2 {
  text-indent: 10px;
}

#qcvcgncslq .gt_indent_3 {
  text-indent: 15px;
}

#qcvcgncslq .gt_indent_4 {
  text-indent: 20px;
}

#qcvcgncslq .gt_indent_5 {
  text-indent: 25px;
}

#qcvcgncslq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#qcvcgncslq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Etat (Mio. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Punkte (Pkt.)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">41.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">35</td>
<td headers="Y" class="gt_row gt_center gt_striped">41.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">45</td>
<td headers="Y" class="gt_row gt_center">44.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">59.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=26.72:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.46:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 26.72\)</span>, <span class="math inline">\(\quad \hat{b} = 0.46\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 26.72 + 0.46 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8821\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R06 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="palgizmzbb" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#palgizmzbb table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#palgizmzbb thead, #palgizmzbb tbody, #palgizmzbb tfoot, #palgizmzbb tr, #palgizmzbb td, #palgizmzbb th {
  border-style: none;
}

#palgizmzbb p {
  margin: 0;
  padding: 0;
}

#palgizmzbb .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#palgizmzbb .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#palgizmzbb .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#palgizmzbb .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#palgizmzbb .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#palgizmzbb .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#palgizmzbb .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#palgizmzbb .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#palgizmzbb .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#palgizmzbb .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#palgizmzbb .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#palgizmzbb .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#palgizmzbb .gt_spanner_row {
  border-bottom-style: hidden;
}

#palgizmzbb .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#palgizmzbb .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#palgizmzbb .gt_from_md > :first-child {
  margin-top: 0;
}

#palgizmzbb .gt_from_md > :last-child {
  margin-bottom: 0;
}

#palgizmzbb .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#palgizmzbb .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#palgizmzbb .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#palgizmzbb .gt_row_group_first td {
  border-top-width: 2px;
}

#palgizmzbb .gt_row_group_first th {
  border-top-width: 2px;
}

#palgizmzbb .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#palgizmzbb .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#palgizmzbb .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#palgizmzbb .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#palgizmzbb .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#palgizmzbb .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#palgizmzbb .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#palgizmzbb .gt_striped {
  background-color: #F5F5F5;
}

#palgizmzbb .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#palgizmzbb .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#palgizmzbb .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#palgizmzbb .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#palgizmzbb .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#palgizmzbb .gt_left {
  text-align: left;
}

#palgizmzbb .gt_center {
  text-align: center;
}

#palgizmzbb .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#palgizmzbb .gt_font_normal {
  font-weight: normal;
}

#palgizmzbb .gt_font_bold {
  font-weight: bold;
}

#palgizmzbb .gt_font_italic {
  font-style: italic;
}

#palgizmzbb .gt_super {
  font-size: 65%;
}

#palgizmzbb .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#palgizmzbb .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#palgizmzbb .gt_indent_1 {
  text-indent: 5px;
}

#palgizmzbb .gt_indent_2 {
  text-indent: 10px;
}

#palgizmzbb .gt_indent_3 {
  text-indent: 15px;
}

#palgizmzbb .gt_indent_4 {
  text-indent: 20px;
}

#palgizmzbb .gt_indent_5 {
  text-indent: 25px;
}

#palgizmzbb .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#palgizmzbb div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">124.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">35</td>
<td headers="Y" class="gt_row gt_center gt_striped">128.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">40</td>
<td headers="Y" class="gt_row gt_center">130.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">55</td>
<td headers="Y" class="gt_row gt_center gt_striped">149.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">65</td>
<td headers="Y" class="gt_row gt_center">151.9</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.86:0.05}</p>
<p><span class="math inline">\(\hat{y}(45) =\)</span>  {1:NUMERICAL:=136.87:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 98.17\)</span>, <span class="math inline">\(\quad \hat{b} = 0.86\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 98.17 + 0.86 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9648\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(45) = 98.17 + 0.86 \cdot 45 = 136.87\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R07 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="xjoteyegel" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#xjoteyegel table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#xjoteyegel thead, #xjoteyegel tbody, #xjoteyegel tfoot, #xjoteyegel tr, #xjoteyegel td, #xjoteyegel th {
  border-style: none;
}

#xjoteyegel p {
  margin: 0;
  padding: 0;
}

#xjoteyegel .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#xjoteyegel .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#xjoteyegel .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#xjoteyegel .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#xjoteyegel .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#xjoteyegel .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xjoteyegel .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#xjoteyegel .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#xjoteyegel .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#xjoteyegel .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#xjoteyegel .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#xjoteyegel .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#xjoteyegel .gt_spanner_row {
  border-bottom-style: hidden;
}

#xjoteyegel .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#xjoteyegel .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#xjoteyegel .gt_from_md > :first-child {
  margin-top: 0;
}

#xjoteyegel .gt_from_md > :last-child {
  margin-bottom: 0;
}

#xjoteyegel .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#xjoteyegel .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#xjoteyegel .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#xjoteyegel .gt_row_group_first td {
  border-top-width: 2px;
}

#xjoteyegel .gt_row_group_first th {
  border-top-width: 2px;
}

#xjoteyegel .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#xjoteyegel .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#xjoteyegel .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#xjoteyegel .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xjoteyegel .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#xjoteyegel .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#xjoteyegel .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#xjoteyegel .gt_striped {
  background-color: #F5F5F5;
}

#xjoteyegel .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#xjoteyegel .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#xjoteyegel .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#xjoteyegel .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#xjoteyegel .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#xjoteyegel .gt_left {
  text-align: left;
}

#xjoteyegel .gt_center {
  text-align: center;
}

#xjoteyegel .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#xjoteyegel .gt_font_normal {
  font-weight: normal;
}

#xjoteyegel .gt_font_bold {
  font-weight: bold;
}

#xjoteyegel .gt_font_italic {
  font-style: italic;
}

#xjoteyegel .gt_super {
  font-size: 65%;
}

#xjoteyegel .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#xjoteyegel .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#xjoteyegel .gt_indent_1 {
  text-indent: 5px;
}

#xjoteyegel .gt_indent_2 {
  text-indent: 10px;
}

#xjoteyegel .gt_indent_3 {
  text-indent: 15px;
}

#xjoteyegel .gt_indent_4 {
  text-indent: 20px;
}

#xjoteyegel .gt_indent_5 {
  text-indent: 25px;
}

#xjoteyegel .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#xjoteyegel div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">162</td>
<td headers="Y" class="gt_row gt_center">36.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">166</td>
<td headers="Y" class="gt_row gt_center gt_striped">38.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">182</td>
<td headers="Y" class="gt_row gt_center">46.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">186</td>
<td headers="Y" class="gt_row gt_center gt_striped">50.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.57:0.05}</p>
<p><span class="math inline">\(\hat{y}(170) =\)</span>  {1:NUMERICAL:=39.95:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -56.95\)</span>, <span class="math inline">\(\quad \hat{b} = 0.57\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -56.95 + 0.57 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9879\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(170) = -56.95 + 0.57 \cdot 170 = 39.95\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R08 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="uhdqiuautj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#uhdqiuautj table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#uhdqiuautj thead, #uhdqiuautj tbody, #uhdqiuautj tfoot, #uhdqiuautj tr, #uhdqiuautj td, #uhdqiuautj th {
  border-style: none;
}

#uhdqiuautj p {
  margin: 0;
  padding: 0;
}

#uhdqiuautj .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#uhdqiuautj .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#uhdqiuautj .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#uhdqiuautj .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#uhdqiuautj .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#uhdqiuautj .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uhdqiuautj .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#uhdqiuautj .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#uhdqiuautj .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#uhdqiuautj .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#uhdqiuautj .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#uhdqiuautj .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#uhdqiuautj .gt_spanner_row {
  border-bottom-style: hidden;
}

#uhdqiuautj .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#uhdqiuautj .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#uhdqiuautj .gt_from_md > :first-child {
  margin-top: 0;
}

#uhdqiuautj .gt_from_md > :last-child {
  margin-bottom: 0;
}

#uhdqiuautj .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#uhdqiuautj .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#uhdqiuautj .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#uhdqiuautj .gt_row_group_first td {
  border-top-width: 2px;
}

#uhdqiuautj .gt_row_group_first th {
  border-top-width: 2px;
}

#uhdqiuautj .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#uhdqiuautj .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#uhdqiuautj .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#uhdqiuautj .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uhdqiuautj .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#uhdqiuautj .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#uhdqiuautj .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#uhdqiuautj .gt_striped {
  background-color: #F5F5F5;
}

#uhdqiuautj .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uhdqiuautj .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#uhdqiuautj .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#uhdqiuautj .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#uhdqiuautj .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#uhdqiuautj .gt_left {
  text-align: left;
}

#uhdqiuautj .gt_center {
  text-align: center;
}

#uhdqiuautj .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#uhdqiuautj .gt_font_normal {
  font-weight: normal;
}

#uhdqiuautj .gt_font_bold {
  font-weight: bold;
}

#uhdqiuautj .gt_font_italic {
  font-style: italic;
}

#uhdqiuautj .gt_super {
  font-size: 65%;
}

#uhdqiuautj .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#uhdqiuautj .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#uhdqiuautj .gt_indent_1 {
  text-indent: 5px;
}

#uhdqiuautj .gt_indent_2 {
  text-indent: 10px;
}

#uhdqiuautj .gt_indent_3 {
  text-indent: 15px;
}

#uhdqiuautj .gt_indent_4 {
  text-indent: 20px;
}

#uhdqiuautj .gt_indent_5 {
  text-indent: 25px;
}

#uhdqiuautj .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#uhdqiuautj div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">18</td>
<td headers="Y" class="gt_row gt_center">56.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">22</td>
<td headers="Y" class="gt_row gt_center gt_striped">80.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center">26</td>
<td headers="Y" class="gt_row gt_center">105.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">28</td>
<td headers="Y" class="gt_row gt_center gt_striped">123.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">129.4</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9923:0.005}</p>
<p><span class="math inline">\(\hat{y}(20) =\)</span>  {1:NUMERICAL:=68.72:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -57.68\)</span>, <span class="math inline">\(\quad \hat{b} = 6.32\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -57.68 + 6.32 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9923\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(20) = -57.68 + 6.32 \cdot 20 = 68.72\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R09 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="ehxgtdqjdy" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ehxgtdqjdy table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ehxgtdqjdy thead, #ehxgtdqjdy tbody, #ehxgtdqjdy tfoot, #ehxgtdqjdy tr, #ehxgtdqjdy td, #ehxgtdqjdy th {
  border-style: none;
}

#ehxgtdqjdy p {
  margin: 0;
  padding: 0;
}

#ehxgtdqjdy .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ehxgtdqjdy .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ehxgtdqjdy .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ehxgtdqjdy .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ehxgtdqjdy .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ehxgtdqjdy .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ehxgtdqjdy .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ehxgtdqjdy .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#ehxgtdqjdy .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ehxgtdqjdy .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ehxgtdqjdy .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ehxgtdqjdy .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ehxgtdqjdy .gt_spanner_row {
  border-bottom-style: hidden;
}

#ehxgtdqjdy .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ehxgtdqjdy .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ehxgtdqjdy .gt_from_md > :first-child {
  margin-top: 0;
}

#ehxgtdqjdy .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ehxgtdqjdy .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ehxgtdqjdy .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#ehxgtdqjdy .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#ehxgtdqjdy .gt_row_group_first td {
  border-top-width: 2px;
}

#ehxgtdqjdy .gt_row_group_first th {
  border-top-width: 2px;
}

#ehxgtdqjdy .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ehxgtdqjdy .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ehxgtdqjdy .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ehxgtdqjdy .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ehxgtdqjdy .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ehxgtdqjdy .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ehxgtdqjdy .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ehxgtdqjdy .gt_striped {
  background-color: #F5F5F5;
}

#ehxgtdqjdy .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ehxgtdqjdy .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ehxgtdqjdy .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ehxgtdqjdy .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ehxgtdqjdy .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ehxgtdqjdy .gt_left {
  text-align: left;
}

#ehxgtdqjdy .gt_center {
  text-align: center;
}

#ehxgtdqjdy .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ehxgtdqjdy .gt_font_normal {
  font-weight: normal;
}

#ehxgtdqjdy .gt_font_bold {
  font-weight: bold;
}

#ehxgtdqjdy .gt_font_italic {
  font-style: italic;
}

#ehxgtdqjdy .gt_super {
  font-size: 65%;
}

#ehxgtdqjdy .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ehxgtdqjdy .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ehxgtdqjdy .gt_indent_1 {
  text-indent: 5px;
}

#ehxgtdqjdy .gt_indent_2 {
  text-indent: 10px;
}

#ehxgtdqjdy .gt_indent_3 {
  text-indent: 15px;
}

#ehxgtdqjdy .gt_indent_4 {
  text-indent: 20px;
}

#ehxgtdqjdy .gt_indent_5 {
  text-indent: 25px;
}

#ehxgtdqjdy .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ehxgtdqjdy div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">24</td>
<td headers="Y" class="gt_row gt_center">86.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">26</td>
<td headers="Y" class="gt_row gt_center gt_striped">111.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">130.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">32</td>
<td headers="Y" class="gt_row gt_center gt_striped">139.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center">34</td>
<td headers="Y" class="gt_row gt_center">145.3</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-39.89:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.57:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -39.89\)</span>, <span class="math inline">\(\quad \hat{b} = 5.57\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -39.89 + 5.57 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9433\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R10 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="tjhanlpljb" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tjhanlpljb table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#tjhanlpljb thead, #tjhanlpljb tbody, #tjhanlpljb tfoot, #tjhanlpljb tr, #tjhanlpljb td, #tjhanlpljb th {
  border-style: none;
}

#tjhanlpljb p {
  margin: 0;
  padding: 0;
}

#tjhanlpljb .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#tjhanlpljb .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#tjhanlpljb .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#tjhanlpljb .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#tjhanlpljb .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tjhanlpljb .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tjhanlpljb .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tjhanlpljb .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#tjhanlpljb .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#tjhanlpljb .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#tjhanlpljb .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#tjhanlpljb .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#tjhanlpljb .gt_spanner_row {
  border-bottom-style: hidden;
}

#tjhanlpljb .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#tjhanlpljb .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#tjhanlpljb .gt_from_md > :first-child {
  margin-top: 0;
}

#tjhanlpljb .gt_from_md > :last-child {
  margin-bottom: 0;
}

#tjhanlpljb .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#tjhanlpljb .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#tjhanlpljb .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#tjhanlpljb .gt_row_group_first td {
  border-top-width: 2px;
}

#tjhanlpljb .gt_row_group_first th {
  border-top-width: 2px;
}

#tjhanlpljb .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjhanlpljb .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#tjhanlpljb .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#tjhanlpljb .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tjhanlpljb .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjhanlpljb .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#tjhanlpljb .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#tjhanlpljb .gt_striped {
  background-color: #F5F5F5;
}

#tjhanlpljb .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tjhanlpljb .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tjhanlpljb .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjhanlpljb .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tjhanlpljb .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjhanlpljb .gt_left {
  text-align: left;
}

#tjhanlpljb .gt_center {
  text-align: center;
}

#tjhanlpljb .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#tjhanlpljb .gt_font_normal {
  font-weight: normal;
}

#tjhanlpljb .gt_font_bold {
  font-weight: bold;
}

#tjhanlpljb .gt_font_italic {
  font-style: italic;
}

#tjhanlpljb .gt_super {
  font-size: 65%;
}

#tjhanlpljb .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#tjhanlpljb .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#tjhanlpljb .gt_indent_1 {
  text-indent: 5px;
}

#tjhanlpljb .gt_indent_2 {
  text-indent: 10px;
}

#tjhanlpljb .gt_indent_3 {
  text-indent: 15px;
}

#tjhanlpljb .gt_indent_4 {
  text-indent: 20px;
}

#tjhanlpljb .gt_indent_5 {
  text-indent: 25px;
}

#tjhanlpljb .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#tjhanlpljb div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">123.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">122.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">45</td>
<td headers="Y" class="gt_row gt_center">122.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">55</td>
<td headers="Y" class="gt_row gt_center gt_striped">150.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">60</td>
<td headers="Y" class="gt_row gt_center">146.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">147.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.93:0.05}</p>
<p><span class="math inline">\(\hat{y}(50) =\)</span>  {1:NUMERICAL:=136.16:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 89.66\)</span>, <span class="math inline">\(\quad \hat{b} = 0.93\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 89.66 + 0.93 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.7538\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(50) = 89.66 + 0.93 \cdot 50 = 136.16\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R11 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="ahuxjggkri" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ahuxjggkri table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ahuxjggkri thead, #ahuxjggkri tbody, #ahuxjggkri tfoot, #ahuxjggkri tr, #ahuxjggkri td, #ahuxjggkri th {
  border-style: none;
}

#ahuxjggkri p {
  margin: 0;
  padding: 0;
}

#ahuxjggkri .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ahuxjggkri .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ahuxjggkri .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ahuxjggkri .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ahuxjggkri .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ahuxjggkri .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ahuxjggkri .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ahuxjggkri .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#ahuxjggkri .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ahuxjggkri .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ahuxjggkri .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ahuxjggkri .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ahuxjggkri .gt_spanner_row {
  border-bottom-style: hidden;
}

#ahuxjggkri .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ahuxjggkri .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ahuxjggkri .gt_from_md > :first-child {
  margin-top: 0;
}

#ahuxjggkri .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ahuxjggkri .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ahuxjggkri .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#ahuxjggkri .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#ahuxjggkri .gt_row_group_first td {
  border-top-width: 2px;
}

#ahuxjggkri .gt_row_group_first th {
  border-top-width: 2px;
}

#ahuxjggkri .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ahuxjggkri .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ahuxjggkri .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ahuxjggkri .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ahuxjggkri .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ahuxjggkri .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ahuxjggkri .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ahuxjggkri .gt_striped {
  background-color: #F5F5F5;
}

#ahuxjggkri .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ahuxjggkri .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ahuxjggkri .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ahuxjggkri .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ahuxjggkri .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ahuxjggkri .gt_left {
  text-align: left;
}

#ahuxjggkri .gt_center {
  text-align: center;
}

#ahuxjggkri .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ahuxjggkri .gt_font_normal {
  font-weight: normal;
}

#ahuxjggkri .gt_font_bold {
  font-weight: bold;
}

#ahuxjggkri .gt_font_italic {
  font-style: italic;
}

#ahuxjggkri .gt_super {
  font-size: 65%;
}

#ahuxjggkri .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ahuxjggkri .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ahuxjggkri .gt_indent_1 {
  text-indent: 5px;
}

#ahuxjggkri .gt_indent_2 {
  text-indent: 10px;
}

#ahuxjggkri .gt_indent_3 {
  text-indent: 15px;
}

#ahuxjggkri .gt_indent_4 {
  text-indent: 20px;
}

#ahuxjggkri .gt_indent_5 {
  text-indent: 25px;
}

#ahuxjggkri .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ahuxjggkri div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">2</td>
<td headers="Y" class="gt_row gt_center">38.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">8</td>
<td headers="Y" class="gt_row gt_center gt_striped">67.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">12</td>
<td headers="Y" class="gt_row gt_center">90.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">14</td>
<td headers="Y" class="gt_row gt_center gt_striped">93.9</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=4.85:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9888:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 28.99\)</span>, <span class="math inline">\(\quad \hat{b} = 4.85\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 28.99 + 4.85 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9888\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R12 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="kkqazmaszw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#kkqazmaszw table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#kkqazmaszw thead, #kkqazmaszw tbody, #kkqazmaszw tfoot, #kkqazmaszw tr, #kkqazmaszw td, #kkqazmaszw th {
  border-style: none;
}

#kkqazmaszw p {
  margin: 0;
  padding: 0;
}

#kkqazmaszw .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#kkqazmaszw .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#kkqazmaszw .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#kkqazmaszw .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#kkqazmaszw .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#kkqazmaszw .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kkqazmaszw .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#kkqazmaszw .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#kkqazmaszw .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#kkqazmaszw .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#kkqazmaszw .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#kkqazmaszw .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#kkqazmaszw .gt_spanner_row {
  border-bottom-style: hidden;
}

#kkqazmaszw .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#kkqazmaszw .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#kkqazmaszw .gt_from_md > :first-child {
  margin-top: 0;
}

#kkqazmaszw .gt_from_md > :last-child {
  margin-bottom: 0;
}

#kkqazmaszw .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#kkqazmaszw .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#kkqazmaszw .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#kkqazmaszw .gt_row_group_first td {
  border-top-width: 2px;
}

#kkqazmaszw .gt_row_group_first th {
  border-top-width: 2px;
}

#kkqazmaszw .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kkqazmaszw .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#kkqazmaszw .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#kkqazmaszw .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kkqazmaszw .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kkqazmaszw .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#kkqazmaszw .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#kkqazmaszw .gt_striped {
  background-color: #F5F5F5;
}

#kkqazmaszw .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kkqazmaszw .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#kkqazmaszw .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kkqazmaszw .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#kkqazmaszw .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kkqazmaszw .gt_left {
  text-align: left;
}

#kkqazmaszw .gt_center {
  text-align: center;
}

#kkqazmaszw .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#kkqazmaszw .gt_font_normal {
  font-weight: normal;
}

#kkqazmaszw .gt_font_bold {
  font-weight: bold;
}

#kkqazmaszw .gt_font_italic {
  font-style: italic;
}

#kkqazmaszw .gt_super {
  font-size: 65%;
}

#kkqazmaszw .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#kkqazmaszw .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#kkqazmaszw .gt_indent_1 {
  text-indent: 5px;
}

#kkqazmaszw .gt_indent_2 {
  text-indent: 10px;
}

#kkqazmaszw .gt_indent_3 {
  text-indent: 15px;
}

#kkqazmaszw .gt_indent_4 {
  text-indent: 20px;
}

#kkqazmaszw .gt_indent_5 {
  text-indent: 25px;
}

#kkqazmaszw .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#kkqazmaszw div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">144.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">15</td>
<td headers="Y" class="gt_row gt_center gt_striped">161.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">210.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">215.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">40</td>
<td headers="Y" class="gt_row gt_center">307.4</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=87.66:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.46:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 87.66\)</span>, <span class="math inline">\(\quad \hat{b} = 5.46\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 87.66 + 5.46 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9798\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R13 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="awackmwrez" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#awackmwrez table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#awackmwrez thead, #awackmwrez tbody, #awackmwrez tfoot, #awackmwrez tr, #awackmwrez td, #awackmwrez th {
  border-style: none;
}

#awackmwrez p {
  margin: 0;
  padding: 0;
}

#awackmwrez .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#awackmwrez .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#awackmwrez .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#awackmwrez .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#awackmwrez .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#awackmwrez .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#awackmwrez .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#awackmwrez .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#awackmwrez .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#awackmwrez .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#awackmwrez .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#awackmwrez .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#awackmwrez .gt_spanner_row {
  border-bottom-style: hidden;
}

#awackmwrez .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#awackmwrez .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#awackmwrez .gt_from_md > :first-child {
  margin-top: 0;
}

#awackmwrez .gt_from_md > :last-child {
  margin-bottom: 0;
}

#awackmwrez .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#awackmwrez .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#awackmwrez .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#awackmwrez .gt_row_group_first td {
  border-top-width: 2px;
}

#awackmwrez .gt_row_group_first th {
  border-top-width: 2px;
}

#awackmwrez .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#awackmwrez .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#awackmwrez .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#awackmwrez .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#awackmwrez .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#awackmwrez .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#awackmwrez .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#awackmwrez .gt_striped {
  background-color: #F5F5F5;
}

#awackmwrez .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#awackmwrez .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#awackmwrez .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#awackmwrez .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#awackmwrez .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#awackmwrez .gt_left {
  text-align: left;
}

#awackmwrez .gt_center {
  text-align: center;
}

#awackmwrez .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#awackmwrez .gt_font_normal {
  font-weight: normal;
}

#awackmwrez .gt_font_bold {
  font-weight: bold;
}

#awackmwrez .gt_font_italic {
  font-style: italic;
}

#awackmwrez .gt_super {
  font-size: 65%;
}

#awackmwrez .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#awackmwrez .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#awackmwrez .gt_indent_1 {
  text-indent: 5px;
}

#awackmwrez .gt_indent_2 {
  text-indent: 10px;
}

#awackmwrez .gt_indent_3 {
  text-indent: 15px;
}

#awackmwrez .gt_indent_4 {
  text-indent: 20px;
}

#awackmwrez .gt_indent_5 {
  text-indent: 25px;
}

#awackmwrez .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#awackmwrez div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">5</td>
<td headers="Y" class="gt_row gt_center">116.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">15</td>
<td headers="Y" class="gt_row gt_center gt_striped">169.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">236.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">30</td>
<td headers="Y" class="gt_row gt_center gt_striped">258.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=86.31:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9966:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 86.31\)</span>, <span class="math inline">\(\quad \hat{b} = 5.8\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 86.31 + 5.8 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9966\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R14 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="dmahuejlcy" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#dmahuejlcy table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#dmahuejlcy thead, #dmahuejlcy tbody, #dmahuejlcy tfoot, #dmahuejlcy tr, #dmahuejlcy td, #dmahuejlcy th {
  border-style: none;
}

#dmahuejlcy p {
  margin: 0;
  padding: 0;
}

#dmahuejlcy .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#dmahuejlcy .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#dmahuejlcy .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#dmahuejlcy .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#dmahuejlcy .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#dmahuejlcy .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#dmahuejlcy .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#dmahuejlcy .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#dmahuejlcy .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#dmahuejlcy .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#dmahuejlcy .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#dmahuejlcy .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#dmahuejlcy .gt_spanner_row {
  border-bottom-style: hidden;
}

#dmahuejlcy .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#dmahuejlcy .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#dmahuejlcy .gt_from_md > :first-child {
  margin-top: 0;
}

#dmahuejlcy .gt_from_md > :last-child {
  margin-bottom: 0;
}

#dmahuejlcy .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#dmahuejlcy .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#dmahuejlcy .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#dmahuejlcy .gt_row_group_first td {
  border-top-width: 2px;
}

#dmahuejlcy .gt_row_group_first th {
  border-top-width: 2px;
}

#dmahuejlcy .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#dmahuejlcy .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#dmahuejlcy .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#dmahuejlcy .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#dmahuejlcy .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#dmahuejlcy .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#dmahuejlcy .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#dmahuejlcy .gt_striped {
  background-color: #F5F5F5;
}

#dmahuejlcy .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#dmahuejlcy .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#dmahuejlcy .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#dmahuejlcy .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#dmahuejlcy .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#dmahuejlcy .gt_left {
  text-align: left;
}

#dmahuejlcy .gt_center {
  text-align: center;
}

#dmahuejlcy .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#dmahuejlcy .gt_font_normal {
  font-weight: normal;
}

#dmahuejlcy .gt_font_bold {
  font-weight: bold;
}

#dmahuejlcy .gt_font_italic {
  font-style: italic;
}

#dmahuejlcy .gt_super {
  font-size: 65%;
}

#dmahuejlcy .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#dmahuejlcy .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#dmahuejlcy .gt_indent_1 {
  text-indent: 5px;
}

#dmahuejlcy .gt_indent_2 {
  text-indent: 10px;
}

#dmahuejlcy .gt_indent_3 {
  text-indent: 15px;
}

#dmahuejlcy .gt_indent_4 {
  text-indent: 20px;
}

#dmahuejlcy .gt_indent_5 {
  text-indent: 25px;
}

#dmahuejlcy .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#dmahuejlcy div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">2</td>
<td headers="Y" class="gt_row gt_center">32.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">8</td>
<td headers="Y" class="gt_row gt_center gt_striped">72.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">70.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">12</td>
<td headers="Y" class="gt_row gt_center gt_striped">72.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center">14</td>
<td headers="Y" class="gt_row gt_center">89.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=27.6:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9014:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 27.6\)</span>, <span class="math inline">\(\quad \hat{b} = 4.34\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 27.6 + 4.34 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9014\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R15 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Niederschlag (in mm) und Ertrag (in dt/ha):</p>
<div id="rlgdswqesw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#rlgdswqesw table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#rlgdswqesw thead, #rlgdswqesw tbody, #rlgdswqesw tfoot, #rlgdswqesw tr, #rlgdswqesw td, #rlgdswqesw th {
  border-style: none;
}

#rlgdswqesw p {
  margin: 0;
  padding: 0;
}

#rlgdswqesw .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#rlgdswqesw .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#rlgdswqesw .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#rlgdswqesw .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#rlgdswqesw .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#rlgdswqesw .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#rlgdswqesw .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#rlgdswqesw .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#rlgdswqesw .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#rlgdswqesw .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#rlgdswqesw .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#rlgdswqesw .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#rlgdswqesw .gt_spanner_row {
  border-bottom-style: hidden;
}

#rlgdswqesw .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#rlgdswqesw .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#rlgdswqesw .gt_from_md > :first-child {
  margin-top: 0;
}

#rlgdswqesw .gt_from_md > :last-child {
  margin-bottom: 0;
}

#rlgdswqesw .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#rlgdswqesw .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#rlgdswqesw .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#rlgdswqesw .gt_row_group_first td {
  border-top-width: 2px;
}

#rlgdswqesw .gt_row_group_first th {
  border-top-width: 2px;
}

#rlgdswqesw .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#rlgdswqesw .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#rlgdswqesw .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#rlgdswqesw .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#rlgdswqesw .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#rlgdswqesw .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#rlgdswqesw .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#rlgdswqesw .gt_striped {
  background-color: #F5F5F5;
}

#rlgdswqesw .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#rlgdswqesw .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#rlgdswqesw .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#rlgdswqesw .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#rlgdswqesw .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#rlgdswqesw .gt_left {
  text-align: left;
}

#rlgdswqesw .gt_center {
  text-align: center;
}

#rlgdswqesw .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#rlgdswqesw .gt_font_normal {
  font-weight: normal;
}

#rlgdswqesw .gt_font_bold {
  font-weight: bold;
}

#rlgdswqesw .gt_font_italic {
  font-style: italic;
}

#rlgdswqesw .gt_super {
  font-size: 65%;
}

#rlgdswqesw .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#rlgdswqesw .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#rlgdswqesw .gt_indent_1 {
  text-indent: 5px;
}

#rlgdswqesw .gt_indent_2 {
  text-indent: 10px;
}

#rlgdswqesw .gt_indent_3 {
  text-indent: 15px;
}

#rlgdswqesw .gt_indent_4 {
  text-indent: 20px;
}

#rlgdswqesw .gt_indent_5 {
  text-indent: 25px;
}

#rlgdswqesw .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#rlgdswqesw div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Niederschlag (mm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Ertrag (dt/ha)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">200</td>
<td headers="Y" class="gt_row gt_center">44.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">300</td>
<td headers="Y" class="gt_row gt_center gt_striped">47.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">350</td>
<td headers="Y" class="gt_row gt_center">45.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">400</td>
<td headers="Y" class="gt_row gt_center gt_striped">58.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.5395:0.005}</p>
<p><span class="math inline">\(\hat{y}(350) =\)</span>  {1:NUMERICAL:=51.59:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 30.59\)</span>, <span class="math inline">\(\quad \hat{b} = 0.06\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 30.59 + 0.06 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.5395\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(350) = 30.59 + 0.06 \cdot 350 = 51.59\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R16 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="mzorfbuaqm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#mzorfbuaqm table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#mzorfbuaqm thead, #mzorfbuaqm tbody, #mzorfbuaqm tfoot, #mzorfbuaqm tr, #mzorfbuaqm td, #mzorfbuaqm th {
  border-style: none;
}

#mzorfbuaqm p {
  margin: 0;
  padding: 0;
}

#mzorfbuaqm .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#mzorfbuaqm .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#mzorfbuaqm .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#mzorfbuaqm .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#mzorfbuaqm .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#mzorfbuaqm .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#mzorfbuaqm .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#mzorfbuaqm .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#mzorfbuaqm .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#mzorfbuaqm .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#mzorfbuaqm .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#mzorfbuaqm .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#mzorfbuaqm .gt_spanner_row {
  border-bottom-style: hidden;
}

#mzorfbuaqm .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#mzorfbuaqm .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#mzorfbuaqm .gt_from_md > :first-child {
  margin-top: 0;
}

#mzorfbuaqm .gt_from_md > :last-child {
  margin-bottom: 0;
}

#mzorfbuaqm .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#mzorfbuaqm .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#mzorfbuaqm .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#mzorfbuaqm .gt_row_group_first td {
  border-top-width: 2px;
}

#mzorfbuaqm .gt_row_group_first th {
  border-top-width: 2px;
}

#mzorfbuaqm .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#mzorfbuaqm .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#mzorfbuaqm .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#mzorfbuaqm .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#mzorfbuaqm .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#mzorfbuaqm .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#mzorfbuaqm .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#mzorfbuaqm .gt_striped {
  background-color: #F5F5F5;
}

#mzorfbuaqm .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#mzorfbuaqm .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#mzorfbuaqm .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#mzorfbuaqm .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#mzorfbuaqm .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#mzorfbuaqm .gt_left {
  text-align: left;
}

#mzorfbuaqm .gt_center {
  text-align: center;
}

#mzorfbuaqm .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#mzorfbuaqm .gt_font_normal {
  font-weight: normal;
}

#mzorfbuaqm .gt_font_bold {
  font-weight: bold;
}

#mzorfbuaqm .gt_font_italic {
  font-style: italic;
}

#mzorfbuaqm .gt_super {
  font-size: 65%;
}

#mzorfbuaqm .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#mzorfbuaqm .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#mzorfbuaqm .gt_indent_1 {
  text-indent: 5px;
}

#mzorfbuaqm .gt_indent_2 {
  text-indent: 10px;
}

#mzorfbuaqm .gt_indent_3 {
  text-indent: 15px;
}

#mzorfbuaqm .gt_indent_4 {
  text-indent: 20px;
}

#mzorfbuaqm .gt_indent_5 {
  text-indent: 25px;
}

#mzorfbuaqm .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#mzorfbuaqm div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">0</td>
<td headers="Y" class="gt_row gt_center">34.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">51.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">66.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">80.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=1.79:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9865:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 33.67\)</span>, <span class="math inline">\(\quad \hat{b} = 1.79\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 33.67 + 1.79 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9865\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R17 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="ltwxobaezy" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ltwxobaezy table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ltwxobaezy thead, #ltwxobaezy tbody, #ltwxobaezy tfoot, #ltwxobaezy tr, #ltwxobaezy td, #ltwxobaezy th {
  border-style: none;
}

#ltwxobaezy p {
  margin: 0;
  padding: 0;
}

#ltwxobaezy .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ltwxobaezy .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ltwxobaezy .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ltwxobaezy .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ltwxobaezy .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ltwxobaezy .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ltwxobaezy .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ltwxobaezy .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#ltwxobaezy .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ltwxobaezy .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ltwxobaezy .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ltwxobaezy .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ltwxobaezy .gt_spanner_row {
  border-bottom-style: hidden;
}

#ltwxobaezy .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ltwxobaezy .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ltwxobaezy .gt_from_md > :first-child {
  margin-top: 0;
}

#ltwxobaezy .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ltwxobaezy .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ltwxobaezy .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#ltwxobaezy .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#ltwxobaezy .gt_row_group_first td {
  border-top-width: 2px;
}

#ltwxobaezy .gt_row_group_first th {
  border-top-width: 2px;
}

#ltwxobaezy .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ltwxobaezy .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ltwxobaezy .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ltwxobaezy .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ltwxobaezy .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ltwxobaezy .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ltwxobaezy .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ltwxobaezy .gt_striped {
  background-color: #F5F5F5;
}

#ltwxobaezy .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ltwxobaezy .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ltwxobaezy .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ltwxobaezy .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ltwxobaezy .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ltwxobaezy .gt_left {
  text-align: left;
}

#ltwxobaezy .gt_center {
  text-align: center;
}

#ltwxobaezy .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ltwxobaezy .gt_font_normal {
  font-weight: normal;
}

#ltwxobaezy .gt_font_bold {
  font-weight: bold;
}

#ltwxobaezy .gt_font_italic {
  font-style: italic;
}

#ltwxobaezy .gt_super {
  font-size: 65%;
}

#ltwxobaezy .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ltwxobaezy .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ltwxobaezy .gt_indent_1 {
  text-indent: 5px;
}

#ltwxobaezy .gt_indent_2 {
  text-indent: 10px;
}

#ltwxobaezy .gt_indent_3 {
  text-indent: 15px;
}

#ltwxobaezy .gt_indent_4 {
  text-indent: 20px;
}

#ltwxobaezy .gt_indent_5 {
  text-indent: 25px;
}

#ltwxobaezy .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ltwxobaezy div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">16</td>
<td headers="Y" class="gt_row gt_center">39.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">18</td>
<td headers="Y" class="gt_row gt_center gt_striped">79.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">131.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">34</td>
<td headers="Y" class="gt_row gt_center gt_striped">163.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-45.11:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=6.05:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -45.11\)</span>, <span class="math inline">\(\quad \hat{b} = 6.05\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -45.11 + 6.05 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9528\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R18 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="pqsnfkhwts" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#pqsnfkhwts table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pqsnfkhwts thead, #pqsnfkhwts tbody, #pqsnfkhwts tfoot, #pqsnfkhwts tr, #pqsnfkhwts td, #pqsnfkhwts th {
  border-style: none;
}

#pqsnfkhwts p {
  margin: 0;
  padding: 0;
}

#pqsnfkhwts .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#pqsnfkhwts .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#pqsnfkhwts .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#pqsnfkhwts .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#pqsnfkhwts .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pqsnfkhwts .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqsnfkhwts .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pqsnfkhwts .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#pqsnfkhwts .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#pqsnfkhwts .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#pqsnfkhwts .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#pqsnfkhwts .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#pqsnfkhwts .gt_spanner_row {
  border-bottom-style: hidden;
}

#pqsnfkhwts .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#pqsnfkhwts .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#pqsnfkhwts .gt_from_md > :first-child {
  margin-top: 0;
}

#pqsnfkhwts .gt_from_md > :last-child {
  margin-bottom: 0;
}

#pqsnfkhwts .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#pqsnfkhwts .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#pqsnfkhwts .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#pqsnfkhwts .gt_row_group_first td {
  border-top-width: 2px;
}

#pqsnfkhwts .gt_row_group_first th {
  border-top-width: 2px;
}

#pqsnfkhwts .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqsnfkhwts .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#pqsnfkhwts .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#pqsnfkhwts .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqsnfkhwts .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqsnfkhwts .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#pqsnfkhwts .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#pqsnfkhwts .gt_striped {
  background-color: #F5F5F5;
}

#pqsnfkhwts .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqsnfkhwts .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pqsnfkhwts .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqsnfkhwts .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pqsnfkhwts .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqsnfkhwts .gt_left {
  text-align: left;
}

#pqsnfkhwts .gt_center {
  text-align: center;
}

#pqsnfkhwts .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#pqsnfkhwts .gt_font_normal {
  font-weight: normal;
}

#pqsnfkhwts .gt_font_bold {
  font-weight: bold;
}

#pqsnfkhwts .gt_font_italic {
  font-style: italic;
}

#pqsnfkhwts .gt_super {
  font-size: 65%;
}

#pqsnfkhwts .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#pqsnfkhwts .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#pqsnfkhwts .gt_indent_1 {
  text-indent: 5px;
}

#pqsnfkhwts .gt_indent_2 {
  text-indent: 10px;
}

#pqsnfkhwts .gt_indent_3 {
  text-indent: 15px;
}

#pqsnfkhwts .gt_indent_4 {
  text-indent: 20px;
}

#pqsnfkhwts .gt_indent_5 {
  text-indent: 25px;
}

#pqsnfkhwts .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#pqsnfkhwts div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">0</td>
<td headers="Y" class="gt_row gt_center">32.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">5</td>
<td headers="Y" class="gt_row gt_center gt_striped">40.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">15</td>
<td headers="Y" class="gt_row gt_center">61.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">20</td>
<td headers="Y" class="gt_row gt_center gt_striped">74.5</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.994:0.005}</p>
<p><span class="math inline">\(\hat{y}(5) =\)</span>  {1:NUMERICAL:=41.54:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 30.94\)</span>, <span class="math inline">\(\quad \hat{b} = 2.12\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 30.94 + 2.12 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.994\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(5) = 30.94 + 2.12 \cdot 5 = 41.54\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R19 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="pqkihvmfsp" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#pqkihvmfsp table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pqkihvmfsp thead, #pqkihvmfsp tbody, #pqkihvmfsp tfoot, #pqkihvmfsp tr, #pqkihvmfsp td, #pqkihvmfsp th {
  border-style: none;
}

#pqkihvmfsp p {
  margin: 0;
  padding: 0;
}

#pqkihvmfsp .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#pqkihvmfsp .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#pqkihvmfsp .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#pqkihvmfsp .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#pqkihvmfsp .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pqkihvmfsp .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqkihvmfsp .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pqkihvmfsp .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#pqkihvmfsp .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#pqkihvmfsp .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#pqkihvmfsp .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#pqkihvmfsp .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#pqkihvmfsp .gt_spanner_row {
  border-bottom-style: hidden;
}

#pqkihvmfsp .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#pqkihvmfsp .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#pqkihvmfsp .gt_from_md > :first-child {
  margin-top: 0;
}

#pqkihvmfsp .gt_from_md > :last-child {
  margin-bottom: 0;
}

#pqkihvmfsp .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#pqkihvmfsp .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#pqkihvmfsp .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#pqkihvmfsp .gt_row_group_first td {
  border-top-width: 2px;
}

#pqkihvmfsp .gt_row_group_first th {
  border-top-width: 2px;
}

#pqkihvmfsp .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqkihvmfsp .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#pqkihvmfsp .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#pqkihvmfsp .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqkihvmfsp .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqkihvmfsp .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#pqkihvmfsp .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#pqkihvmfsp .gt_striped {
  background-color: #F5F5F5;
}

#pqkihvmfsp .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pqkihvmfsp .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pqkihvmfsp .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqkihvmfsp .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pqkihvmfsp .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pqkihvmfsp .gt_left {
  text-align: left;
}

#pqkihvmfsp .gt_center {
  text-align: center;
}

#pqkihvmfsp .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#pqkihvmfsp .gt_font_normal {
  font-weight: normal;
}

#pqkihvmfsp .gt_font_bold {
  font-weight: bold;
}

#pqkihvmfsp .gt_font_italic {
  font-style: italic;
}

#pqkihvmfsp .gt_super {
  font-size: 65%;
}

#pqkihvmfsp .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#pqkihvmfsp .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#pqkihvmfsp .gt_indent_1 {
  text-indent: 5px;
}

#pqkihvmfsp .gt_indent_2 {
  text-indent: 10px;
}

#pqkihvmfsp .gt_indent_3 {
  text-indent: 15px;
}

#pqkihvmfsp .gt_indent_4 {
  text-indent: 20px;
}

#pqkihvmfsp .gt_indent_5 {
  text-indent: 25px;
}

#pqkihvmfsp .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#pqkihvmfsp div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">5</td>
<td headers="Y" class="gt_row gt_center">47.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">56.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">15</td>
<td headers="Y" class="gt_row gt_center">59.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">20</td>
<td headers="Y" class="gt_row gt_center gt_striped">70.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">72.9</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9676:0.005}</p>
<p><span class="math inline">\(\hat{y}(10) =\)</span>  {1:NUMERICAL:=54.75:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 41.75\)</span>, <span class="math inline">\(\quad \hat{b} = 1.3\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 41.75 + 1.3 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9676\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(10) = 41.75 + 1.3 \cdot 10 = 54.75\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R20 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="donzmcnobf" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#donzmcnobf table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#donzmcnobf thead, #donzmcnobf tbody, #donzmcnobf tfoot, #donzmcnobf tr, #donzmcnobf td, #donzmcnobf th {
  border-style: none;
}

#donzmcnobf p {
  margin: 0;
  padding: 0;
}

#donzmcnobf .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#donzmcnobf .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#donzmcnobf .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#donzmcnobf .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#donzmcnobf .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#donzmcnobf .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#donzmcnobf .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#donzmcnobf .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#donzmcnobf .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#donzmcnobf .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#donzmcnobf .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#donzmcnobf .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#donzmcnobf .gt_spanner_row {
  border-bottom-style: hidden;
}

#donzmcnobf .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#donzmcnobf .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#donzmcnobf .gt_from_md > :first-child {
  margin-top: 0;
}

#donzmcnobf .gt_from_md > :last-child {
  margin-bottom: 0;
}

#donzmcnobf .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#donzmcnobf .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#donzmcnobf .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#donzmcnobf .gt_row_group_first td {
  border-top-width: 2px;
}

#donzmcnobf .gt_row_group_first th {
  border-top-width: 2px;
}

#donzmcnobf .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#donzmcnobf .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#donzmcnobf .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#donzmcnobf .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#donzmcnobf .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#donzmcnobf .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#donzmcnobf .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#donzmcnobf .gt_striped {
  background-color: #F5F5F5;
}

#donzmcnobf .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#donzmcnobf .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#donzmcnobf .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#donzmcnobf .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#donzmcnobf .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#donzmcnobf .gt_left {
  text-align: left;
}

#donzmcnobf .gt_center {
  text-align: center;
}

#donzmcnobf .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#donzmcnobf .gt_font_normal {
  font-weight: normal;
}

#donzmcnobf .gt_font_bold {
  font-weight: bold;
}

#donzmcnobf .gt_font_italic {
  font-style: italic;
}

#donzmcnobf .gt_super {
  font-size: 65%;
}

#donzmcnobf .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#donzmcnobf .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#donzmcnobf .gt_indent_1 {
  text-indent: 5px;
}

#donzmcnobf .gt_indent_2 {
  text-indent: 10px;
}

#donzmcnobf .gt_indent_3 {
  text-indent: 15px;
}

#donzmcnobf .gt_indent_4 {
  text-indent: 20px;
}

#donzmcnobf .gt_indent_5 {
  text-indent: 25px;
}

#donzmcnobf .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#donzmcnobf div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">158</td>
<td headers="Y" class="gt_row gt_center">31.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">170</td>
<td headers="Y" class="gt_row gt_center gt_striped">38.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center">174</td>
<td headers="Y" class="gt_row gt_center">43.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">178</td>
<td headers="Y" class="gt_row gt_center gt_striped">46.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">190</td>
<td headers="Y" class="gt_row gt_center">52.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9784:0.005}</p>
<p><span class="math inline">\(\hat{y}(170) =\)</span>  {1:NUMERICAL:=40.01:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -72.19\)</span>, <span class="math inline">\(\quad \hat{b} = 0.66\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -72.19 + 0.66 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9784\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(170) = -72.19 + 0.66 \cdot 170 = 40.01\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R21 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="wdwqvocppx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#wdwqvocppx table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wdwqvocppx thead, #wdwqvocppx tbody, #wdwqvocppx tfoot, #wdwqvocppx tr, #wdwqvocppx td, #wdwqvocppx th {
  border-style: none;
}

#wdwqvocppx p {
  margin: 0;
  padding: 0;
}

#wdwqvocppx .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#wdwqvocppx .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#wdwqvocppx .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#wdwqvocppx .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#wdwqvocppx .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wdwqvocppx .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wdwqvocppx .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wdwqvocppx .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#wdwqvocppx .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#wdwqvocppx .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#wdwqvocppx .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#wdwqvocppx .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#wdwqvocppx .gt_spanner_row {
  border-bottom-style: hidden;
}

#wdwqvocppx .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#wdwqvocppx .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#wdwqvocppx .gt_from_md > :first-child {
  margin-top: 0;
}

#wdwqvocppx .gt_from_md > :last-child {
  margin-bottom: 0;
}

#wdwqvocppx .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#wdwqvocppx .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#wdwqvocppx .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#wdwqvocppx .gt_row_group_first td {
  border-top-width: 2px;
}

#wdwqvocppx .gt_row_group_first th {
  border-top-width: 2px;
}

#wdwqvocppx .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wdwqvocppx .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#wdwqvocppx .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#wdwqvocppx .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wdwqvocppx .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wdwqvocppx .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#wdwqvocppx .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#wdwqvocppx .gt_striped {
  background-color: #F5F5F5;
}

#wdwqvocppx .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wdwqvocppx .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wdwqvocppx .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wdwqvocppx .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wdwqvocppx .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wdwqvocppx .gt_left {
  text-align: left;
}

#wdwqvocppx .gt_center {
  text-align: center;
}

#wdwqvocppx .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#wdwqvocppx .gt_font_normal {
  font-weight: normal;
}

#wdwqvocppx .gt_font_bold {
  font-weight: bold;
}

#wdwqvocppx .gt_font_italic {
  font-style: italic;
}

#wdwqvocppx .gt_super {
  font-size: 65%;
}

#wdwqvocppx .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#wdwqvocppx .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#wdwqvocppx .gt_indent_1 {
  text-indent: 5px;
}

#wdwqvocppx .gt_indent_2 {
  text-indent: 10px;
}

#wdwqvocppx .gt_indent_3 {
  text-indent: 15px;
}

#wdwqvocppx .gt_indent_4 {
  text-indent: 20px;
}

#wdwqvocppx .gt_indent_5 {
  text-indent: 25px;
}

#wdwqvocppx .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#wdwqvocppx div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">162</td>
<td headers="Y" class="gt_row gt_center">34.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">170</td>
<td headers="Y" class="gt_row gt_center gt_striped">40.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center">174</td>
<td headers="Y" class="gt_row gt_center">41.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">190</td>
<td headers="Y" class="gt_row gt_center gt_striped">50.5</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.57:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9858:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -56.6\)</span>, <span class="math inline">\(\quad \hat{b} = 0.57\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -56.6 + 0.57 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9858\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R22 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="thvahkkvuu" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#thvahkkvuu table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#thvahkkvuu thead, #thvahkkvuu tbody, #thvahkkvuu tfoot, #thvahkkvuu tr, #thvahkkvuu td, #thvahkkvuu th {
  border-style: none;
}

#thvahkkvuu p {
  margin: 0;
  padding: 0;
}

#thvahkkvuu .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#thvahkkvuu .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#thvahkkvuu .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#thvahkkvuu .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#thvahkkvuu .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#thvahkkvuu .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#thvahkkvuu .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#thvahkkvuu .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#thvahkkvuu .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#thvahkkvuu .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#thvahkkvuu .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#thvahkkvuu .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#thvahkkvuu .gt_spanner_row {
  border-bottom-style: hidden;
}

#thvahkkvuu .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#thvahkkvuu .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#thvahkkvuu .gt_from_md > :first-child {
  margin-top: 0;
}

#thvahkkvuu .gt_from_md > :last-child {
  margin-bottom: 0;
}

#thvahkkvuu .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#thvahkkvuu .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#thvahkkvuu .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#thvahkkvuu .gt_row_group_first td {
  border-top-width: 2px;
}

#thvahkkvuu .gt_row_group_first th {
  border-top-width: 2px;
}

#thvahkkvuu .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#thvahkkvuu .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#thvahkkvuu .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#thvahkkvuu .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#thvahkkvuu .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#thvahkkvuu .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#thvahkkvuu .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#thvahkkvuu .gt_striped {
  background-color: #F5F5F5;
}

#thvahkkvuu .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#thvahkkvuu .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#thvahkkvuu .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#thvahkkvuu .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#thvahkkvuu .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#thvahkkvuu .gt_left {
  text-align: left;
}

#thvahkkvuu .gt_center {
  text-align: center;
}

#thvahkkvuu .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#thvahkkvuu .gt_font_normal {
  font-weight: normal;
}

#thvahkkvuu .gt_font_bold {
  font-weight: bold;
}

#thvahkkvuu .gt_font_italic {
  font-style: italic;
}

#thvahkkvuu .gt_super {
  font-size: 65%;
}

#thvahkkvuu .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#thvahkkvuu .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#thvahkkvuu .gt_indent_1 {
  text-indent: 5px;
}

#thvahkkvuu .gt_indent_2 {
  text-indent: 10px;
}

#thvahkkvuu .gt_indent_3 {
  text-indent: 15px;
}

#thvahkkvuu .gt_indent_4 {
  text-indent: 20px;
}

#thvahkkvuu .gt_indent_5 {
  text-indent: 25px;
}

#thvahkkvuu .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#thvahkkvuu div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">5</td>
<td headers="Y" class="gt_row gt_center">116.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">139.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">209.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">227.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">277.4</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=89.78:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.49:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 89.78\)</span>, <span class="math inline">\(\quad \hat{b} = 5.49\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 89.78 + 5.49 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9914\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R23 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="zjhvckmsbh" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#zjhvckmsbh table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#zjhvckmsbh thead, #zjhvckmsbh tbody, #zjhvckmsbh tfoot, #zjhvckmsbh tr, #zjhvckmsbh td, #zjhvckmsbh th {
  border-style: none;
}

#zjhvckmsbh p {
  margin: 0;
  padding: 0;
}

#zjhvckmsbh .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#zjhvckmsbh .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#zjhvckmsbh .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#zjhvckmsbh .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#zjhvckmsbh .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zjhvckmsbh .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zjhvckmsbh .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zjhvckmsbh .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#zjhvckmsbh .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#zjhvckmsbh .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#zjhvckmsbh .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#zjhvckmsbh .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#zjhvckmsbh .gt_spanner_row {
  border-bottom-style: hidden;
}

#zjhvckmsbh .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#zjhvckmsbh .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#zjhvckmsbh .gt_from_md > :first-child {
  margin-top: 0;
}

#zjhvckmsbh .gt_from_md > :last-child {
  margin-bottom: 0;
}

#zjhvckmsbh .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#zjhvckmsbh .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#zjhvckmsbh .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#zjhvckmsbh .gt_row_group_first td {
  border-top-width: 2px;
}

#zjhvckmsbh .gt_row_group_first th {
  border-top-width: 2px;
}

#zjhvckmsbh .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zjhvckmsbh .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#zjhvckmsbh .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#zjhvckmsbh .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zjhvckmsbh .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zjhvckmsbh .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#zjhvckmsbh .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#zjhvckmsbh .gt_striped {
  background-color: #F5F5F5;
}

#zjhvckmsbh .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zjhvckmsbh .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zjhvckmsbh .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zjhvckmsbh .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zjhvckmsbh .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zjhvckmsbh .gt_left {
  text-align: left;
}

#zjhvckmsbh .gt_center {
  text-align: center;
}

#zjhvckmsbh .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#zjhvckmsbh .gt_font_normal {
  font-weight: normal;
}

#zjhvckmsbh .gt_font_bold {
  font-weight: bold;
}

#zjhvckmsbh .gt_font_italic {
  font-style: italic;
}

#zjhvckmsbh .gt_super {
  font-size: 65%;
}

#zjhvckmsbh .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#zjhvckmsbh .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#zjhvckmsbh .gt_indent_1 {
  text-indent: 5px;
}

#zjhvckmsbh .gt_indent_2 {
  text-indent: 10px;
}

#zjhvckmsbh .gt_indent_3 {
  text-indent: 15px;
}

#zjhvckmsbh .gt_indent_4 {
  text-indent: 20px;
}

#zjhvckmsbh .gt_indent_5 {
  text-indent: 25px;
}

#zjhvckmsbh .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#zjhvckmsbh div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">119.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">127.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">45</td>
<td headers="Y" class="gt_row gt_center">125.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">55</td>
<td headers="Y" class="gt_row gt_center gt_striped">139.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.91:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.8857:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 87.9\)</span>, <span class="math inline">\(\quad \hat{b} = 0.91\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 87.9 + 0.91 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8857\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R24 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="uwfpueyqaz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#uwfpueyqaz table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#uwfpueyqaz thead, #uwfpueyqaz tbody, #uwfpueyqaz tfoot, #uwfpueyqaz tr, #uwfpueyqaz td, #uwfpueyqaz th {
  border-style: none;
}

#uwfpueyqaz p {
  margin: 0;
  padding: 0;
}

#uwfpueyqaz .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#uwfpueyqaz .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#uwfpueyqaz .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#uwfpueyqaz .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#uwfpueyqaz .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#uwfpueyqaz .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uwfpueyqaz .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#uwfpueyqaz .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#uwfpueyqaz .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#uwfpueyqaz .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#uwfpueyqaz .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#uwfpueyqaz .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#uwfpueyqaz .gt_spanner_row {
  border-bottom-style: hidden;
}

#uwfpueyqaz .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#uwfpueyqaz .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#uwfpueyqaz .gt_from_md > :first-child {
  margin-top: 0;
}

#uwfpueyqaz .gt_from_md > :last-child {
  margin-bottom: 0;
}

#uwfpueyqaz .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#uwfpueyqaz .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#uwfpueyqaz .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#uwfpueyqaz .gt_row_group_first td {
  border-top-width: 2px;
}

#uwfpueyqaz .gt_row_group_first th {
  border-top-width: 2px;
}

#uwfpueyqaz .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#uwfpueyqaz .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#uwfpueyqaz .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#uwfpueyqaz .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uwfpueyqaz .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#uwfpueyqaz .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#uwfpueyqaz .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#uwfpueyqaz .gt_striped {
  background-color: #F5F5F5;
}

#uwfpueyqaz .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#uwfpueyqaz .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#uwfpueyqaz .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#uwfpueyqaz .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#uwfpueyqaz .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#uwfpueyqaz .gt_left {
  text-align: left;
}

#uwfpueyqaz .gt_center {
  text-align: center;
}

#uwfpueyqaz .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#uwfpueyqaz .gt_font_normal {
  font-weight: normal;
}

#uwfpueyqaz .gt_font_bold {
  font-weight: bold;
}

#uwfpueyqaz .gt_font_italic {
  font-style: italic;
}

#uwfpueyqaz .gt_super {
  font-size: 65%;
}

#uwfpueyqaz .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#uwfpueyqaz .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#uwfpueyqaz .gt_indent_1 {
  text-indent: 5px;
}

#uwfpueyqaz .gt_indent_2 {
  text-indent: 10px;
}

#uwfpueyqaz .gt_indent_3 {
  text-indent: 15px;
}

#uwfpueyqaz .gt_indent_4 {
  text-indent: 20px;
}

#uwfpueyqaz .gt_indent_5 {
  text-indent: 25px;
}

#uwfpueyqaz .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#uwfpueyqaz div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">16</td>
<td headers="Y" class="gt_row gt_center">53.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">22</td>
<td headers="Y" class="gt_row gt_center gt_striped">103.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">24</td>
<td headers="Y" class="gt_row gt_center">92.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">26</td>
<td headers="Y" class="gt_row gt_center gt_striped">111.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">28</td>
<td headers="Y" class="gt_row gt_center">144.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">32</td>
<td headers="Y" class="gt_row gt_center gt_striped">146.5</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-40.8:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=6.05:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -40.8\)</span>, <span class="math inline">\(\quad \hat{b} = 6.05\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -40.8 + 6.05 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9053\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R25 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Etat (in Mio. Euro) und Punkte (in Pkt.):</p>
<div id="txbotrctbz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#txbotrctbz table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#txbotrctbz thead, #txbotrctbz tbody, #txbotrctbz tfoot, #txbotrctbz tr, #txbotrctbz td, #txbotrctbz th {
  border-style: none;
}

#txbotrctbz p {
  margin: 0;
  padding: 0;
}

#txbotrctbz .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#txbotrctbz .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#txbotrctbz .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#txbotrctbz .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#txbotrctbz .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#txbotrctbz .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#txbotrctbz .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#txbotrctbz .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#txbotrctbz .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#txbotrctbz .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#txbotrctbz .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#txbotrctbz .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#txbotrctbz .gt_spanner_row {
  border-bottom-style: hidden;
}

#txbotrctbz .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#txbotrctbz .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#txbotrctbz .gt_from_md > :first-child {
  margin-top: 0;
}

#txbotrctbz .gt_from_md > :last-child {
  margin-bottom: 0;
}

#txbotrctbz .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#txbotrctbz .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#txbotrctbz .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#txbotrctbz .gt_row_group_first td {
  border-top-width: 2px;
}

#txbotrctbz .gt_row_group_first th {
  border-top-width: 2px;
}

#txbotrctbz .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#txbotrctbz .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#txbotrctbz .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#txbotrctbz .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#txbotrctbz .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#txbotrctbz .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#txbotrctbz .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#txbotrctbz .gt_striped {
  background-color: #F5F5F5;
}

#txbotrctbz .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#txbotrctbz .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#txbotrctbz .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#txbotrctbz .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#txbotrctbz .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#txbotrctbz .gt_left {
  text-align: left;
}

#txbotrctbz .gt_center {
  text-align: center;
}

#txbotrctbz .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#txbotrctbz .gt_font_normal {
  font-weight: normal;
}

#txbotrctbz .gt_font_bold {
  font-weight: bold;
}

#txbotrctbz .gt_font_italic {
  font-style: italic;
}

#txbotrctbz .gt_super {
  font-size: 65%;
}

#txbotrctbz .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#txbotrctbz .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#txbotrctbz .gt_indent_1 {
  text-indent: 5px;
}

#txbotrctbz .gt_indent_2 {
  text-indent: 10px;
}

#txbotrctbz .gt_indent_3 {
  text-indent: 15px;
}

#txbotrctbz .gt_indent_4 {
  text-indent: 20px;
}

#txbotrctbz .gt_indent_5 {
  text-indent: 25px;
}

#txbotrctbz .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#txbotrctbz div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Etat (Mio. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Punkte (Pkt.)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">15</td>
<td headers="Y" class="gt_row gt_center">45.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">30.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">45.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">63.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">58.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">72.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=26.01:0.05}</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.67:0.05}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 26.01\)</span>, <span class="math inline">\(\quad \hat{b} = 0.67\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 26.01 + 0.67 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.7006\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R26 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="nvdbzasqsm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#nvdbzasqsm table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nvdbzasqsm thead, #nvdbzasqsm tbody, #nvdbzasqsm tfoot, #nvdbzasqsm tr, #nvdbzasqsm td, #nvdbzasqsm th {
  border-style: none;
}

#nvdbzasqsm p {
  margin: 0;
  padding: 0;
}

#nvdbzasqsm .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#nvdbzasqsm .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#nvdbzasqsm .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#nvdbzasqsm .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#nvdbzasqsm .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nvdbzasqsm .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nvdbzasqsm .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nvdbzasqsm .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#nvdbzasqsm .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#nvdbzasqsm .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#nvdbzasqsm .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#nvdbzasqsm .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#nvdbzasqsm .gt_spanner_row {
  border-bottom-style: hidden;
}

#nvdbzasqsm .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#nvdbzasqsm .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#nvdbzasqsm .gt_from_md > :first-child {
  margin-top: 0;
}

#nvdbzasqsm .gt_from_md > :last-child {
  margin-bottom: 0;
}

#nvdbzasqsm .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#nvdbzasqsm .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#nvdbzasqsm .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#nvdbzasqsm .gt_row_group_first td {
  border-top-width: 2px;
}

#nvdbzasqsm .gt_row_group_first th {
  border-top-width: 2px;
}

#nvdbzasqsm .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nvdbzasqsm .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#nvdbzasqsm .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#nvdbzasqsm .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nvdbzasqsm .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nvdbzasqsm .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#nvdbzasqsm .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#nvdbzasqsm .gt_striped {
  background-color: #F5F5F5;
}

#nvdbzasqsm .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nvdbzasqsm .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nvdbzasqsm .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nvdbzasqsm .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nvdbzasqsm .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nvdbzasqsm .gt_left {
  text-align: left;
}

#nvdbzasqsm .gt_center {
  text-align: center;
}

#nvdbzasqsm .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#nvdbzasqsm .gt_font_normal {
  font-weight: normal;
}

#nvdbzasqsm .gt_font_bold {
  font-weight: bold;
}

#nvdbzasqsm .gt_font_italic {
  font-style: italic;
}

#nvdbzasqsm .gt_super {
  font-size: 65%;
}

#nvdbzasqsm .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#nvdbzasqsm .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#nvdbzasqsm .gt_indent_1 {
  text-indent: 5px;
}

#nvdbzasqsm .gt_indent_2 {
  text-indent: 10px;
}

#nvdbzasqsm .gt_indent_3 {
  text-indent: 15px;
}

#nvdbzasqsm .gt_indent_4 {
  text-indent: 20px;
}

#nvdbzasqsm .gt_indent_5 {
  text-indent: 25px;
}

#nvdbzasqsm .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#nvdbzasqsm div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">4</td>
<td headers="Y" class="gt_row gt_center">41.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">6</td>
<td headers="Y" class="gt_row gt_center gt_striped">55.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">8</td>
<td headers="Y" class="gt_row gt_center">62.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">73.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">12</td>
<td headers="Y" class="gt_row gt_center">78.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">14</td>
<td headers="Y" class="gt_row gt_center gt_striped">92.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=24.17:0.05}</p>
<p><span class="math inline">\(\hat{y}(8) =\)</span>  {1:NUMERICAL:=62.49:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 24.17\)</span>, <span class="math inline">\(\quad \hat{b} = 4.79\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 24.17 + 4.79 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9859\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(8) = 24.17 + 4.79 \cdot 8 = 62.49\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R27 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="vntxpullvn" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#vntxpullvn table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#vntxpullvn thead, #vntxpullvn tbody, #vntxpullvn tfoot, #vntxpullvn tr, #vntxpullvn td, #vntxpullvn th {
  border-style: none;
}

#vntxpullvn p {
  margin: 0;
  padding: 0;
}

#vntxpullvn .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#vntxpullvn .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#vntxpullvn .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#vntxpullvn .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#vntxpullvn .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#vntxpullvn .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#vntxpullvn .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#vntxpullvn .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#vntxpullvn .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#vntxpullvn .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#vntxpullvn .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#vntxpullvn .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#vntxpullvn .gt_spanner_row {
  border-bottom-style: hidden;
}

#vntxpullvn .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#vntxpullvn .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#vntxpullvn .gt_from_md > :first-child {
  margin-top: 0;
}

#vntxpullvn .gt_from_md > :last-child {
  margin-bottom: 0;
}

#vntxpullvn .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#vntxpullvn .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#vntxpullvn .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#vntxpullvn .gt_row_group_first td {
  border-top-width: 2px;
}

#vntxpullvn .gt_row_group_first th {
  border-top-width: 2px;
}

#vntxpullvn .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#vntxpullvn .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#vntxpullvn .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#vntxpullvn .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#vntxpullvn .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#vntxpullvn .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#vntxpullvn .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#vntxpullvn .gt_striped {
  background-color: #F5F5F5;
}

#vntxpullvn .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#vntxpullvn .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#vntxpullvn .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#vntxpullvn .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#vntxpullvn .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#vntxpullvn .gt_left {
  text-align: left;
}

#vntxpullvn .gt_center {
  text-align: center;
}

#vntxpullvn .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#vntxpullvn .gt_font_normal {
  font-weight: normal;
}

#vntxpullvn .gt_font_bold {
  font-weight: bold;
}

#vntxpullvn .gt_font_italic {
  font-style: italic;
}

#vntxpullvn .gt_super {
  font-size: 65%;
}

#vntxpullvn .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#vntxpullvn .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#vntxpullvn .gt_indent_1 {
  text-indent: 5px;
}

#vntxpullvn .gt_indent_2 {
  text-indent: 10px;
}

#vntxpullvn .gt_indent_3 {
  text-indent: 15px;
}

#vntxpullvn .gt_indent_4 {
  text-indent: 20px;
}

#vntxpullvn .gt_indent_5 {
  text-indent: 25px;
}

#vntxpullvn .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#vntxpullvn div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">2</td>
<td headers="Y" class="gt_row gt_center">50.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">6</td>
<td headers="Y" class="gt_row gt_center gt_striped">63.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">8</td>
<td headers="Y" class="gt_row gt_center">70.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">75.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">12</td>
<td headers="Y" class="gt_row gt_center">82.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">14</td>
<td headers="Y" class="gt_row gt_center gt_striped">86.6</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=44.61:0.05}</p>
<p><span class="math inline">\(\hat{y}(4) =\)</span>  {1:NUMERICAL:=56.97:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 44.61\)</span>, <span class="math inline">\(\quad \hat{b} = 3.09\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 44.61 + 3.09 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.996\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(4) = 44.61 + 3.09 \cdot 4 = 56.97\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R28 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Etat (in Mio. Euro) und Punkte (in Pkt.):</p>
<div id="yjfvwbcabs" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yjfvwbcabs table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#yjfvwbcabs thead, #yjfvwbcabs tbody, #yjfvwbcabs tfoot, #yjfvwbcabs tr, #yjfvwbcabs td, #yjfvwbcabs th {
  border-style: none;
}

#yjfvwbcabs p {
  margin: 0;
  padding: 0;
}

#yjfvwbcabs .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#yjfvwbcabs .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yjfvwbcabs .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#yjfvwbcabs .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#yjfvwbcabs .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yjfvwbcabs .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yjfvwbcabs .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yjfvwbcabs .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#yjfvwbcabs .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#yjfvwbcabs .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yjfvwbcabs .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yjfvwbcabs .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#yjfvwbcabs .gt_spanner_row {
  border-bottom-style: hidden;
}

#yjfvwbcabs .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#yjfvwbcabs .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#yjfvwbcabs .gt_from_md > :first-child {
  margin-top: 0;
}

#yjfvwbcabs .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yjfvwbcabs .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#yjfvwbcabs .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#yjfvwbcabs .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#yjfvwbcabs .gt_row_group_first td {
  border-top-width: 2px;
}

#yjfvwbcabs .gt_row_group_first th {
  border-top-width: 2px;
}

#yjfvwbcabs .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yjfvwbcabs .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yjfvwbcabs .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yjfvwbcabs .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yjfvwbcabs .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yjfvwbcabs .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#yjfvwbcabs .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#yjfvwbcabs .gt_striped {
  background-color: #F5F5F5;
}

#yjfvwbcabs .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yjfvwbcabs .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yjfvwbcabs .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yjfvwbcabs .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yjfvwbcabs .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yjfvwbcabs .gt_left {
  text-align: left;
}

#yjfvwbcabs .gt_center {
  text-align: center;
}

#yjfvwbcabs .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yjfvwbcabs .gt_font_normal {
  font-weight: normal;
}

#yjfvwbcabs .gt_font_bold {
  font-weight: bold;
}

#yjfvwbcabs .gt_font_italic {
  font-style: italic;
}

#yjfvwbcabs .gt_super {
  font-size: 65%;
}

#yjfvwbcabs .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yjfvwbcabs .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yjfvwbcabs .gt_indent_1 {
  text-indent: 5px;
}

#yjfvwbcabs .gt_indent_2 {
  text-indent: 10px;
}

#yjfvwbcabs .gt_indent_3 {
  text-indent: 15px;
}

#yjfvwbcabs .gt_indent_4 {
  text-indent: 20px;
}

#yjfvwbcabs .gt_indent_5 {
  text-indent: 25px;
}

#yjfvwbcabs .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yjfvwbcabs div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Etat (Mio. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Punkte (Pkt.)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">15</td>
<td headers="Y" class="gt_row gt_center">39.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">49.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">58.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">42.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">63.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">60.4</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.38:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.4851:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 37.25\)</span>, <span class="math inline">\(\quad \hat{b} = 0.38\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 37.25 + 0.38 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.4851\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R29 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="pwmypvzhpn" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#pwmypvzhpn table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pwmypvzhpn thead, #pwmypvzhpn tbody, #pwmypvzhpn tfoot, #pwmypvzhpn tr, #pwmypvzhpn td, #pwmypvzhpn th {
  border-style: none;
}

#pwmypvzhpn p {
  margin: 0;
  padding: 0;
}

#pwmypvzhpn .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#pwmypvzhpn .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#pwmypvzhpn .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#pwmypvzhpn .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#pwmypvzhpn .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pwmypvzhpn .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pwmypvzhpn .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pwmypvzhpn .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#pwmypvzhpn .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#pwmypvzhpn .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#pwmypvzhpn .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#pwmypvzhpn .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#pwmypvzhpn .gt_spanner_row {
  border-bottom-style: hidden;
}

#pwmypvzhpn .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#pwmypvzhpn .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#pwmypvzhpn .gt_from_md > :first-child {
  margin-top: 0;
}

#pwmypvzhpn .gt_from_md > :last-child {
  margin-bottom: 0;
}

#pwmypvzhpn .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#pwmypvzhpn .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#pwmypvzhpn .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#pwmypvzhpn .gt_row_group_first td {
  border-top-width: 2px;
}

#pwmypvzhpn .gt_row_group_first th {
  border-top-width: 2px;
}

#pwmypvzhpn .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pwmypvzhpn .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#pwmypvzhpn .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#pwmypvzhpn .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pwmypvzhpn .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pwmypvzhpn .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#pwmypvzhpn .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#pwmypvzhpn .gt_striped {
  background-color: #F5F5F5;
}

#pwmypvzhpn .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pwmypvzhpn .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pwmypvzhpn .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pwmypvzhpn .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pwmypvzhpn .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pwmypvzhpn .gt_left {
  text-align: left;
}

#pwmypvzhpn .gt_center {
  text-align: center;
}

#pwmypvzhpn .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#pwmypvzhpn .gt_font_normal {
  font-weight: normal;
}

#pwmypvzhpn .gt_font_bold {
  font-weight: bold;
}

#pwmypvzhpn .gt_font_italic {
  font-style: italic;
}

#pwmypvzhpn .gt_super {
  font-size: 65%;
}

#pwmypvzhpn .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#pwmypvzhpn .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#pwmypvzhpn .gt_indent_1 {
  text-indent: 5px;
}

#pwmypvzhpn .gt_indent_2 {
  text-indent: 10px;
}

#pwmypvzhpn .gt_indent_3 {
  text-indent: 15px;
}

#pwmypvzhpn .gt_indent_4 {
  text-indent: 20px;
}

#pwmypvzhpn .gt_indent_5 {
  text-indent: 25px;
}

#pwmypvzhpn .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#pwmypvzhpn div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">16</td>
<td headers="Y" class="gt_row gt_center">38.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">18</td>
<td headers="Y" class="gt_row gt_center gt_striped">67.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">24</td>
<td headers="Y" class="gt_row gt_center">88.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">32</td>
<td headers="Y" class="gt_row gt_center gt_striped">134.9</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.56:0.05}</p>
<p><span class="math inline">\(\hat{y}(24) =\)</span>  {1:NUMERICAL:=90.77:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -42.67\)</span>, <span class="math inline">\(\quad \hat{b} = 5.56\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -42.67 + 5.56 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9679\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(24) = -42.67 + 5.56 \cdot 24 = 90.77\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R30 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="msynwdtmch" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#msynwdtmch table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#msynwdtmch thead, #msynwdtmch tbody, #msynwdtmch tfoot, #msynwdtmch tr, #msynwdtmch td, #msynwdtmch th {
  border-style: none;
}

#msynwdtmch p {
  margin: 0;
  padding: 0;
}

#msynwdtmch .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#msynwdtmch .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#msynwdtmch .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#msynwdtmch .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#msynwdtmch .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#msynwdtmch .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#msynwdtmch .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#msynwdtmch .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#msynwdtmch .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#msynwdtmch .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#msynwdtmch .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#msynwdtmch .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#msynwdtmch .gt_spanner_row {
  border-bottom-style: hidden;
}

#msynwdtmch .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#msynwdtmch .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#msynwdtmch .gt_from_md > :first-child {
  margin-top: 0;
}

#msynwdtmch .gt_from_md > :last-child {
  margin-bottom: 0;
}

#msynwdtmch .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#msynwdtmch .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#msynwdtmch .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#msynwdtmch .gt_row_group_first td {
  border-top-width: 2px;
}

#msynwdtmch .gt_row_group_first th {
  border-top-width: 2px;
}

#msynwdtmch .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#msynwdtmch .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#msynwdtmch .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#msynwdtmch .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#msynwdtmch .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#msynwdtmch .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#msynwdtmch .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#msynwdtmch .gt_striped {
  background-color: #F5F5F5;
}

#msynwdtmch .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#msynwdtmch .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#msynwdtmch .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#msynwdtmch .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#msynwdtmch .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#msynwdtmch .gt_left {
  text-align: left;
}

#msynwdtmch .gt_center {
  text-align: center;
}

#msynwdtmch .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#msynwdtmch .gt_font_normal {
  font-weight: normal;
}

#msynwdtmch .gt_font_bold {
  font-weight: bold;
}

#msynwdtmch .gt_font_italic {
  font-style: italic;
}

#msynwdtmch .gt_super {
  font-size: 65%;
}

#msynwdtmch .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#msynwdtmch .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#msynwdtmch .gt_indent_1 {
  text-indent: 5px;
}

#msynwdtmch .gt_indent_2 {
  text-indent: 10px;
}

#msynwdtmch .gt_indent_3 {
  text-indent: 15px;
}

#msynwdtmch .gt_indent_4 {
  text-indent: 20px;
}

#msynwdtmch .gt_indent_5 {
  text-indent: 25px;
}

#msynwdtmch .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#msynwdtmch div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">46.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">15</td>
<td headers="Y" class="gt_row gt_center gt_striped">58.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">67.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">75.2</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=27.66:0.05}</p>
<p><span class="math inline">\(\hat{y}(15) =\)</span>  {1:NUMERICAL:=56.91:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 27.66\)</span>, <span class="math inline">\(\quad \hat{b} = 1.95\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 27.66 + 1.95 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.989\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(15) = 27.66 + 1.95 \cdot 15 = 56.91\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R31 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Etat (in Mio. Euro) und Punkte (in Pkt.):</p>
<div id="nwzoojevaq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#nwzoojevaq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nwzoojevaq thead, #nwzoojevaq tbody, #nwzoojevaq tfoot, #nwzoojevaq tr, #nwzoojevaq td, #nwzoojevaq th {
  border-style: none;
}

#nwzoojevaq p {
  margin: 0;
  padding: 0;
}

#nwzoojevaq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#nwzoojevaq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#nwzoojevaq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#nwzoojevaq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#nwzoojevaq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nwzoojevaq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nwzoojevaq .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nwzoojevaq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#nwzoojevaq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#nwzoojevaq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#nwzoojevaq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#nwzoojevaq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#nwzoojevaq .gt_spanner_row {
  border-bottom-style: hidden;
}

#nwzoojevaq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#nwzoojevaq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#nwzoojevaq .gt_from_md > :first-child {
  margin-top: 0;
}

#nwzoojevaq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#nwzoojevaq .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#nwzoojevaq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#nwzoojevaq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#nwzoojevaq .gt_row_group_first td {
  border-top-width: 2px;
}

#nwzoojevaq .gt_row_group_first th {
  border-top-width: 2px;
}

#nwzoojevaq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nwzoojevaq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#nwzoojevaq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#nwzoojevaq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nwzoojevaq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nwzoojevaq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#nwzoojevaq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#nwzoojevaq .gt_striped {
  background-color: #F5F5F5;
}

#nwzoojevaq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nwzoojevaq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nwzoojevaq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nwzoojevaq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nwzoojevaq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nwzoojevaq .gt_left {
  text-align: left;
}

#nwzoojevaq .gt_center {
  text-align: center;
}

#nwzoojevaq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#nwzoojevaq .gt_font_normal {
  font-weight: normal;
}

#nwzoojevaq .gt_font_bold {
  font-weight: bold;
}

#nwzoojevaq .gt_font_italic {
  font-style: italic;
}

#nwzoojevaq .gt_super {
  font-size: 65%;
}

#nwzoojevaq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#nwzoojevaq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#nwzoojevaq .gt_indent_1 {
  text-indent: 5px;
}

#nwzoojevaq .gt_indent_2 {
  text-indent: 10px;
}

#nwzoojevaq .gt_indent_3 {
  text-indent: 15px;
}

#nwzoojevaq .gt_indent_4 {
  text-indent: 20px;
}

#nwzoojevaq .gt_indent_5 {
  text-indent: 25px;
}

#nwzoojevaq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#nwzoojevaq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Etat (Mio. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Punkte (Pkt.)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">57.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">60.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">55.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">60.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=56.63:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.0437:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 56.63\)</span>, <span class="math inline">\(\quad \hat{b} = 0.03\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 56.63 + 0.03 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.0437\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R32 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Temperatur (in Grad C) und Eisverkauf (in Portionen):</p>
<div id="pkufxzhugc" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#pkufxzhugc table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pkufxzhugc thead, #pkufxzhugc tbody, #pkufxzhugc tfoot, #pkufxzhugc tr, #pkufxzhugc td, #pkufxzhugc th {
  border-style: none;
}

#pkufxzhugc p {
  margin: 0;
  padding: 0;
}

#pkufxzhugc .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#pkufxzhugc .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#pkufxzhugc .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#pkufxzhugc .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#pkufxzhugc .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pkufxzhugc .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pkufxzhugc .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pkufxzhugc .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#pkufxzhugc .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#pkufxzhugc .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#pkufxzhugc .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#pkufxzhugc .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#pkufxzhugc .gt_spanner_row {
  border-bottom-style: hidden;
}

#pkufxzhugc .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#pkufxzhugc .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#pkufxzhugc .gt_from_md > :first-child {
  margin-top: 0;
}

#pkufxzhugc .gt_from_md > :last-child {
  margin-bottom: 0;
}

#pkufxzhugc .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#pkufxzhugc .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#pkufxzhugc .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#pkufxzhugc .gt_row_group_first td {
  border-top-width: 2px;
}

#pkufxzhugc .gt_row_group_first th {
  border-top-width: 2px;
}

#pkufxzhugc .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pkufxzhugc .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#pkufxzhugc .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#pkufxzhugc .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pkufxzhugc .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#pkufxzhugc .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#pkufxzhugc .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#pkufxzhugc .gt_striped {
  background-color: #F5F5F5;
}

#pkufxzhugc .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pkufxzhugc .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pkufxzhugc .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pkufxzhugc .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pkufxzhugc .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#pkufxzhugc .gt_left {
  text-align: left;
}

#pkufxzhugc .gt_center {
  text-align: center;
}

#pkufxzhugc .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#pkufxzhugc .gt_font_normal {
  font-weight: normal;
}

#pkufxzhugc .gt_font_bold {
  font-weight: bold;
}

#pkufxzhugc .gt_font_italic {
  font-style: italic;
}

#pkufxzhugc .gt_super {
  font-size: 65%;
}

#pkufxzhugc .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#pkufxzhugc .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#pkufxzhugc .gt_indent_1 {
  text-indent: 5px;
}

#pkufxzhugc .gt_indent_2 {
  text-indent: 10px;
}

#pkufxzhugc .gt_indent_3 {
  text-indent: 15px;
}

#pkufxzhugc .gt_indent_4 {
  text-indent: 20px;
}

#pkufxzhugc .gt_indent_5 {
  text-indent: 25px;
}

#pkufxzhugc .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#pkufxzhugc div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Temperatur (Grad C)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Eisverkauf (Portionen)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">16</td>
<td headers="Y" class="gt_row gt_center">44.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">22</td>
<td headers="Y" class="gt_row gt_center gt_striped">78.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">26</td>
<td headers="Y" class="gt_row gt_center">118.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">34</td>
<td headers="Y" class="gt_row gt_center gt_striped">154.7</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.979:0.005}</p>
<p><span class="math inline">\(\hat{y}(32) =\)</span>  {1:NUMERICAL:=146.04:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -55.56\)</span>, <span class="math inline">\(\quad \hat{b} = 6.3\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -55.56 + 6.3 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.979\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(32) = -55.56 + 6.3 \cdot 32 = 146.04\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R33 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="zigseqivlv" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#zigseqivlv table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#zigseqivlv thead, #zigseqivlv tbody, #zigseqivlv tfoot, #zigseqivlv tr, #zigseqivlv td, #zigseqivlv th {
  border-style: none;
}

#zigseqivlv p {
  margin: 0;
  padding: 0;
}

#zigseqivlv .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#zigseqivlv .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#zigseqivlv .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#zigseqivlv .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#zigseqivlv .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zigseqivlv .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zigseqivlv .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#zigseqivlv .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#zigseqivlv .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#zigseqivlv .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#zigseqivlv .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#zigseqivlv .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#zigseqivlv .gt_spanner_row {
  border-bottom-style: hidden;
}

#zigseqivlv .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#zigseqivlv .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#zigseqivlv .gt_from_md > :first-child {
  margin-top: 0;
}

#zigseqivlv .gt_from_md > :last-child {
  margin-bottom: 0;
}

#zigseqivlv .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#zigseqivlv .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#zigseqivlv .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#zigseqivlv .gt_row_group_first td {
  border-top-width: 2px;
}

#zigseqivlv .gt_row_group_first th {
  border-top-width: 2px;
}

#zigseqivlv .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zigseqivlv .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#zigseqivlv .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#zigseqivlv .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zigseqivlv .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#zigseqivlv .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#zigseqivlv .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#zigseqivlv .gt_striped {
  background-color: #F5F5F5;
}

#zigseqivlv .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#zigseqivlv .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zigseqivlv .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zigseqivlv .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#zigseqivlv .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#zigseqivlv .gt_left {
  text-align: left;
}

#zigseqivlv .gt_center {
  text-align: center;
}

#zigseqivlv .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#zigseqivlv .gt_font_normal {
  font-weight: normal;
}

#zigseqivlv .gt_font_bold {
  font-weight: bold;
}

#zigseqivlv .gt_font_italic {
  font-style: italic;
}

#zigseqivlv .gt_super {
  font-size: 65%;
}

#zigseqivlv .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#zigseqivlv .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#zigseqivlv .gt_indent_1 {
  text-indent: 5px;
}

#zigseqivlv .gt_indent_2 {
  text-indent: 10px;
}

#zigseqivlv .gt_indent_3 {
  text-indent: 15px;
}

#zigseqivlv .gt_indent_4 {
  text-indent: 20px;
}

#zigseqivlv .gt_indent_5 {
  text-indent: 25px;
}

#zigseqivlv .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#zigseqivlv div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">8</td>
<td headers="Y" class="gt_row gt_center">62.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">72.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">12</td>
<td headers="Y" class="gt_row gt_center">70.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">14</td>
<td headers="Y" class="gt_row gt_center gt_striped">87.4</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=3.69:0.05}</p>
<p><span class="math inline">\(\hat{y}(12) =\)</span>  {1:NUMERICAL:=76.92:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 32.64\)</span>, <span class="math inline">\(\quad \hat{b} = 3.69\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 32.64 + 3.69 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.835\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(12) = 32.64 + 3.69 \cdot 12 = 76.92\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R34 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="llzbttysit" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#llzbttysit table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#llzbttysit thead, #llzbttysit tbody, #llzbttysit tfoot, #llzbttysit tr, #llzbttysit td, #llzbttysit th {
  border-style: none;
}

#llzbttysit p {
  margin: 0;
  padding: 0;
}

#llzbttysit .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#llzbttysit .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#llzbttysit .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#llzbttysit .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#llzbttysit .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#llzbttysit .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#llzbttysit .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#llzbttysit .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#llzbttysit .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#llzbttysit .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#llzbttysit .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#llzbttysit .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#llzbttysit .gt_spanner_row {
  border-bottom-style: hidden;
}

#llzbttysit .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#llzbttysit .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#llzbttysit .gt_from_md > :first-child {
  margin-top: 0;
}

#llzbttysit .gt_from_md > :last-child {
  margin-bottom: 0;
}

#llzbttysit .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#llzbttysit .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#llzbttysit .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#llzbttysit .gt_row_group_first td {
  border-top-width: 2px;
}

#llzbttysit .gt_row_group_first th {
  border-top-width: 2px;
}

#llzbttysit .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#llzbttysit .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#llzbttysit .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#llzbttysit .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#llzbttysit .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#llzbttysit .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#llzbttysit .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#llzbttysit .gt_striped {
  background-color: #F5F5F5;
}

#llzbttysit .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#llzbttysit .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#llzbttysit .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#llzbttysit .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#llzbttysit .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#llzbttysit .gt_left {
  text-align: left;
}

#llzbttysit .gt_center {
  text-align: center;
}

#llzbttysit .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#llzbttysit .gt_font_normal {
  font-weight: normal;
}

#llzbttysit .gt_font_bold {
  font-weight: bold;
}

#llzbttysit .gt_font_italic {
  font-style: italic;
}

#llzbttysit .gt_super {
  font-size: 65%;
}

#llzbttysit .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#llzbttysit .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#llzbttysit .gt_indent_1 {
  text-indent: 5px;
}

#llzbttysit .gt_indent_2 {
  text-indent: 10px;
}

#llzbttysit .gt_indent_3 {
  text-indent: 15px;
}

#llzbttysit .gt_indent_4 {
  text-indent: 20px;
}

#llzbttysit .gt_indent_5 {
  text-indent: 25px;
}

#llzbttysit .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#llzbttysit div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">114.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">128.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">45</td>
<td headers="Y" class="gt_row gt_center">129.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">55</td>
<td headers="Y" class="gt_row gt_center gt_striped">137.7</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.8596:0.005}</p>
<p><span class="math inline">\(\hat{y}(50) =\)</span>  {1:NUMERICAL:=133.8:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 81.8\)</span>, <span class="math inline">\(\quad \hat{b} = 1.04\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 81.8 + 1.04 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8596\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(50) = 81.8 + 1.04 \cdot 50 = 133.8\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R35 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Etat (in Mio. Euro) und Punkte (in Pkt.):</p>
<div id="psnsjbpksx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#psnsjbpksx table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#psnsjbpksx thead, #psnsjbpksx tbody, #psnsjbpksx tfoot, #psnsjbpksx tr, #psnsjbpksx td, #psnsjbpksx th {
  border-style: none;
}

#psnsjbpksx p {
  margin: 0;
  padding: 0;
}

#psnsjbpksx .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#psnsjbpksx .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#psnsjbpksx .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#psnsjbpksx .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#psnsjbpksx .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#psnsjbpksx .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#psnsjbpksx .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#psnsjbpksx .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#psnsjbpksx .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#psnsjbpksx .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#psnsjbpksx .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#psnsjbpksx .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#psnsjbpksx .gt_spanner_row {
  border-bottom-style: hidden;
}

#psnsjbpksx .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#psnsjbpksx .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#psnsjbpksx .gt_from_md > :first-child {
  margin-top: 0;
}

#psnsjbpksx .gt_from_md > :last-child {
  margin-bottom: 0;
}

#psnsjbpksx .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#psnsjbpksx .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#psnsjbpksx .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#psnsjbpksx .gt_row_group_first td {
  border-top-width: 2px;
}

#psnsjbpksx .gt_row_group_first th {
  border-top-width: 2px;
}

#psnsjbpksx .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#psnsjbpksx .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#psnsjbpksx .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#psnsjbpksx .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#psnsjbpksx .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#psnsjbpksx .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#psnsjbpksx .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#psnsjbpksx .gt_striped {
  background-color: #F5F5F5;
}

#psnsjbpksx .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#psnsjbpksx .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#psnsjbpksx .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#psnsjbpksx .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#psnsjbpksx .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#psnsjbpksx .gt_left {
  text-align: left;
}

#psnsjbpksx .gt_center {
  text-align: center;
}

#psnsjbpksx .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#psnsjbpksx .gt_font_normal {
  font-weight: normal;
}

#psnsjbpksx .gt_font_bold {
  font-weight: bold;
}

#psnsjbpksx .gt_font_italic {
  font-style: italic;
}

#psnsjbpksx .gt_super {
  font-size: 65%;
}

#psnsjbpksx .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#psnsjbpksx .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#psnsjbpksx .gt_indent_1 {
  text-indent: 5px;
}

#psnsjbpksx .gt_indent_2 {
  text-indent: 10px;
}

#psnsjbpksx .gt_indent_3 {
  text-indent: 15px;
}

#psnsjbpksx .gt_indent_4 {
  text-indent: 20px;
}

#psnsjbpksx .gt_indent_5 {
  text-indent: 25px;
}

#psnsjbpksx .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#psnsjbpksx div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Etat (Mio. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Punkte (Pkt.)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">45.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">47.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">60.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">62.6</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=22.12:0.05}</p>
<p><span class="math inline">\(\hat{y}(45) =\)</span>  {1:NUMERICAL:=50.92:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 22.12\)</span>, <span class="math inline">\(\quad \hat{b} = 0.64\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 22.12 + 0.64 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8788\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(45) = 22.12 + 0.64 \cdot 45 = 50.92\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R36 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="wfhwmkmbhl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#wfhwmkmbhl table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wfhwmkmbhl thead, #wfhwmkmbhl tbody, #wfhwmkmbhl tfoot, #wfhwmkmbhl tr, #wfhwmkmbhl td, #wfhwmkmbhl th {
  border-style: none;
}

#wfhwmkmbhl p {
  margin: 0;
  padding: 0;
}

#wfhwmkmbhl .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#wfhwmkmbhl .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#wfhwmkmbhl .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#wfhwmkmbhl .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#wfhwmkmbhl .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wfhwmkmbhl .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wfhwmkmbhl .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wfhwmkmbhl .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#wfhwmkmbhl .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#wfhwmkmbhl .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#wfhwmkmbhl .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#wfhwmkmbhl .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#wfhwmkmbhl .gt_spanner_row {
  border-bottom-style: hidden;
}

#wfhwmkmbhl .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#wfhwmkmbhl .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#wfhwmkmbhl .gt_from_md > :first-child {
  margin-top: 0;
}

#wfhwmkmbhl .gt_from_md > :last-child {
  margin-bottom: 0;
}

#wfhwmkmbhl .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#wfhwmkmbhl .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#wfhwmkmbhl .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#wfhwmkmbhl .gt_row_group_first td {
  border-top-width: 2px;
}

#wfhwmkmbhl .gt_row_group_first th {
  border-top-width: 2px;
}

#wfhwmkmbhl .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wfhwmkmbhl .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#wfhwmkmbhl .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#wfhwmkmbhl .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wfhwmkmbhl .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wfhwmkmbhl .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#wfhwmkmbhl .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#wfhwmkmbhl .gt_striped {
  background-color: #F5F5F5;
}

#wfhwmkmbhl .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wfhwmkmbhl .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wfhwmkmbhl .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wfhwmkmbhl .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wfhwmkmbhl .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wfhwmkmbhl .gt_left {
  text-align: left;
}

#wfhwmkmbhl .gt_center {
  text-align: center;
}

#wfhwmkmbhl .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#wfhwmkmbhl .gt_font_normal {
  font-weight: normal;
}

#wfhwmkmbhl .gt_font_bold {
  font-weight: bold;
}

#wfhwmkmbhl .gt_font_italic {
  font-style: italic;
}

#wfhwmkmbhl .gt_super {
  font-size: 65%;
}

#wfhwmkmbhl .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#wfhwmkmbhl .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#wfhwmkmbhl .gt_indent_1 {
  text-indent: 5px;
}

#wfhwmkmbhl .gt_indent_2 {
  text-indent: 10px;
}

#wfhwmkmbhl .gt_indent_3 {
  text-indent: 15px;
}

#wfhwmkmbhl .gt_indent_4 {
  text-indent: 20px;
}

#wfhwmkmbhl .gt_indent_5 {
  text-indent: 25px;
}

#wfhwmkmbhl .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#wfhwmkmbhl div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">170</td>
<td headers="Y" class="gt_row gt_center">39.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">174</td>
<td headers="Y" class="gt_row gt_center gt_striped">40.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">178</td>
<td headers="Y" class="gt_row gt_center">42.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">182</td>
<td headers="Y" class="gt_row gt_center gt_striped">47.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">186</td>
<td headers="Y" class="gt_row gt_center">48.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">190</td>
<td headers="Y" class="gt_row gt_center gt_striped">48.3</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-49.96:0.05}</p>
<p><span class="math inline">\(\hat{y}(186) =\)</span>  {1:NUMERICAL:=46.76:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -49.96\)</span>, <span class="math inline">\(\quad \hat{b} = 0.52\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -49.96 + 0.52 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9227\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(186) = -49.96 + 0.52 \cdot 186 = 46.76\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R37 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="cettvowfjm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#cettvowfjm table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#cettvowfjm thead, #cettvowfjm tbody, #cettvowfjm tfoot, #cettvowfjm tr, #cettvowfjm td, #cettvowfjm th {
  border-style: none;
}

#cettvowfjm p {
  margin: 0;
  padding: 0;
}

#cettvowfjm .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#cettvowfjm .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#cettvowfjm .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#cettvowfjm .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#cettvowfjm .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#cettvowfjm .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cettvowfjm .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#cettvowfjm .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#cettvowfjm .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#cettvowfjm .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#cettvowfjm .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#cettvowfjm .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#cettvowfjm .gt_spanner_row {
  border-bottom-style: hidden;
}

#cettvowfjm .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#cettvowfjm .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#cettvowfjm .gt_from_md > :first-child {
  margin-top: 0;
}

#cettvowfjm .gt_from_md > :last-child {
  margin-bottom: 0;
}

#cettvowfjm .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#cettvowfjm .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#cettvowfjm .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#cettvowfjm .gt_row_group_first td {
  border-top-width: 2px;
}

#cettvowfjm .gt_row_group_first th {
  border-top-width: 2px;
}

#cettvowfjm .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#cettvowfjm .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#cettvowfjm .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#cettvowfjm .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cettvowfjm .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#cettvowfjm .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#cettvowfjm .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#cettvowfjm .gt_striped {
  background-color: #F5F5F5;
}

#cettvowfjm .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cettvowfjm .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#cettvowfjm .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#cettvowfjm .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#cettvowfjm .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#cettvowfjm .gt_left {
  text-align: left;
}

#cettvowfjm .gt_center {
  text-align: center;
}

#cettvowfjm .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#cettvowfjm .gt_font_normal {
  font-weight: normal;
}

#cettvowfjm .gt_font_bold {
  font-weight: bold;
}

#cettvowfjm .gt_font_italic {
  font-style: italic;
}

#cettvowfjm .gt_super {
  font-size: 65%;
}

#cettvowfjm .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#cettvowfjm .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#cettvowfjm .gt_indent_1 {
  text-indent: 5px;
}

#cettvowfjm .gt_indent_2 {
  text-indent: 10px;
}

#cettvowfjm .gt_indent_3 {
  text-indent: 15px;
}

#cettvowfjm .gt_indent_4 {
  text-indent: 20px;
}

#cettvowfjm .gt_indent_5 {
  text-indent: 25px;
}

#cettvowfjm .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#cettvowfjm div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">166</td>
<td headers="Y" class="gt_row gt_center">36.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">170</td>
<td headers="Y" class="gt_row gt_center gt_striped">41.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">174</td>
<td headers="Y" class="gt_row gt_center">42.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">182</td>
<td headers="Y" class="gt_row gt_center gt_striped">46.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">186</td>
<td headers="Y" class="gt_row gt_center">48.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.53:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9425:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -49.33\)</span>, <span class="math inline">\(\quad \hat{b} = 0.53\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -49.33 + 0.53 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9425\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R38 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="ewjudwyxlz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ewjudwyxlz table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ewjudwyxlz thead, #ewjudwyxlz tbody, #ewjudwyxlz tfoot, #ewjudwyxlz tr, #ewjudwyxlz td, #ewjudwyxlz th {
  border-style: none;
}

#ewjudwyxlz p {
  margin: 0;
  padding: 0;
}

#ewjudwyxlz .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ewjudwyxlz .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ewjudwyxlz .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ewjudwyxlz .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ewjudwyxlz .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ewjudwyxlz .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ewjudwyxlz .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ewjudwyxlz .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#ewjudwyxlz .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ewjudwyxlz .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ewjudwyxlz .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ewjudwyxlz .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ewjudwyxlz .gt_spanner_row {
  border-bottom-style: hidden;
}

#ewjudwyxlz .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ewjudwyxlz .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ewjudwyxlz .gt_from_md > :first-child {
  margin-top: 0;
}

#ewjudwyxlz .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ewjudwyxlz .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ewjudwyxlz .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#ewjudwyxlz .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#ewjudwyxlz .gt_row_group_first td {
  border-top-width: 2px;
}

#ewjudwyxlz .gt_row_group_first th {
  border-top-width: 2px;
}

#ewjudwyxlz .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ewjudwyxlz .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ewjudwyxlz .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ewjudwyxlz .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ewjudwyxlz .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ewjudwyxlz .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ewjudwyxlz .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ewjudwyxlz .gt_striped {
  background-color: #F5F5F5;
}

#ewjudwyxlz .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ewjudwyxlz .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ewjudwyxlz .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ewjudwyxlz .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ewjudwyxlz .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ewjudwyxlz .gt_left {
  text-align: left;
}

#ewjudwyxlz .gt_center {
  text-align: center;
}

#ewjudwyxlz .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ewjudwyxlz .gt_font_normal {
  font-weight: normal;
}

#ewjudwyxlz .gt_font_bold {
  font-weight: bold;
}

#ewjudwyxlz .gt_font_italic {
  font-style: italic;
}

#ewjudwyxlz .gt_super {
  font-size: 65%;
}

#ewjudwyxlz .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ewjudwyxlz .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ewjudwyxlz .gt_indent_1 {
  text-indent: 5px;
}

#ewjudwyxlz .gt_indent_2 {
  text-indent: 10px;
}

#ewjudwyxlz .gt_indent_3 {
  text-indent: 15px;
}

#ewjudwyxlz .gt_indent_4 {
  text-indent: 20px;
}

#ewjudwyxlz .gt_indent_5 {
  text-indent: 25px;
}

#ewjudwyxlz .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ewjudwyxlz div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">124.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">35</td>
<td headers="Y" class="gt_row gt_center gt_striped">121.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center">40</td>
<td headers="Y" class="gt_row gt_center">129.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">45</td>
<td headers="Y" class="gt_row gt_center gt_striped">130.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">136.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">157.6</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=90.8:0.05}</p>
<p><span class="math inline">\(\hat{y}(40) =\)</span>  {1:NUMERICAL:=128.4:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 90.8\)</span>, <span class="math inline">\(\quad \hat{b} = 0.94\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 90.8 + 0.94 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8716\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(40) = 90.8 + 0.94 \cdot 40 = 128.4\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R39 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="ydiikygdzs" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ydiikygdzs table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ydiikygdzs thead, #ydiikygdzs tbody, #ydiikygdzs tfoot, #ydiikygdzs tr, #ydiikygdzs td, #ydiikygdzs th {
  border-style: none;
}

#ydiikygdzs p {
  margin: 0;
  padding: 0;
}

#ydiikygdzs .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ydiikygdzs .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ydiikygdzs .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ydiikygdzs .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ydiikygdzs .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ydiikygdzs .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ydiikygdzs .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ydiikygdzs .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#ydiikygdzs .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ydiikygdzs .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ydiikygdzs .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ydiikygdzs .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ydiikygdzs .gt_spanner_row {
  border-bottom-style: hidden;
}

#ydiikygdzs .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ydiikygdzs .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ydiikygdzs .gt_from_md > :first-child {
  margin-top: 0;
}

#ydiikygdzs .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ydiikygdzs .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ydiikygdzs .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#ydiikygdzs .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#ydiikygdzs .gt_row_group_first td {
  border-top-width: 2px;
}

#ydiikygdzs .gt_row_group_first th {
  border-top-width: 2px;
}

#ydiikygdzs .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ydiikygdzs .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ydiikygdzs .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ydiikygdzs .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ydiikygdzs .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ydiikygdzs .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ydiikygdzs .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ydiikygdzs .gt_striped {
  background-color: #F5F5F5;
}

#ydiikygdzs .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ydiikygdzs .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ydiikygdzs .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ydiikygdzs .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ydiikygdzs .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ydiikygdzs .gt_left {
  text-align: left;
}

#ydiikygdzs .gt_center {
  text-align: center;
}

#ydiikygdzs .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ydiikygdzs .gt_font_normal {
  font-weight: normal;
}

#ydiikygdzs .gt_font_bold {
  font-weight: bold;
}

#ydiikygdzs .gt_font_italic {
  font-style: italic;
}

#ydiikygdzs .gt_super {
  font-size: 65%;
}

#ydiikygdzs .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ydiikygdzs .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ydiikygdzs .gt_indent_1 {
  text-indent: 5px;
}

#ydiikygdzs .gt_indent_2 {
  text-indent: 10px;
}

#ydiikygdzs .gt_indent_3 {
  text-indent: 15px;
}

#ydiikygdzs .gt_indent_4 {
  text-indent: 20px;
}

#ydiikygdzs .gt_indent_5 {
  text-indent: 25px;
}

#ydiikygdzs .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ydiikygdzs div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">2</td>
<td headers="Y" class="gt_row gt_center">43.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">6</td>
<td headers="Y" class="gt_row gt_center gt_striped">57.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">76.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">14</td>
<td headers="Y" class="gt_row gt_center gt_striped">96.1</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=4.38:0.05}</p>
<p><span class="math inline">\(\hat{y}(6) =\)</span>  {1:NUMERICAL:=59.65:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 33.37\)</span>, <span class="math inline">\(\quad \hat{b} = 4.38\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 33.37 + 4.38 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9932\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(6) = 33.37 + 4.38 \cdot 6 = 59.65\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R40 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="tnxpjuawtg" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tnxpjuawtg table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#tnxpjuawtg thead, #tnxpjuawtg tbody, #tnxpjuawtg tfoot, #tnxpjuawtg tr, #tnxpjuawtg td, #tnxpjuawtg th {
  border-style: none;
}

#tnxpjuawtg p {
  margin: 0;
  padding: 0;
}

#tnxpjuawtg .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#tnxpjuawtg .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#tnxpjuawtg .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#tnxpjuawtg .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#tnxpjuawtg .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tnxpjuawtg .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tnxpjuawtg .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tnxpjuawtg .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#tnxpjuawtg .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#tnxpjuawtg .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#tnxpjuawtg .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#tnxpjuawtg .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#tnxpjuawtg .gt_spanner_row {
  border-bottom-style: hidden;
}

#tnxpjuawtg .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#tnxpjuawtg .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#tnxpjuawtg .gt_from_md > :first-child {
  margin-top: 0;
}

#tnxpjuawtg .gt_from_md > :last-child {
  margin-bottom: 0;
}

#tnxpjuawtg .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#tnxpjuawtg .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#tnxpjuawtg .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#tnxpjuawtg .gt_row_group_first td {
  border-top-width: 2px;
}

#tnxpjuawtg .gt_row_group_first th {
  border-top-width: 2px;
}

#tnxpjuawtg .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tnxpjuawtg .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#tnxpjuawtg .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#tnxpjuawtg .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tnxpjuawtg .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tnxpjuawtg .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#tnxpjuawtg .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#tnxpjuawtg .gt_striped {
  background-color: #F5F5F5;
}

#tnxpjuawtg .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tnxpjuawtg .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tnxpjuawtg .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tnxpjuawtg .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tnxpjuawtg .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tnxpjuawtg .gt_left {
  text-align: left;
}

#tnxpjuawtg .gt_center {
  text-align: center;
}

#tnxpjuawtg .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#tnxpjuawtg .gt_font_normal {
  font-weight: normal;
}

#tnxpjuawtg .gt_font_bold {
  font-weight: bold;
}

#tnxpjuawtg .gt_font_italic {
  font-style: italic;
}

#tnxpjuawtg .gt_super {
  font-size: 65%;
}

#tnxpjuawtg .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#tnxpjuawtg .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#tnxpjuawtg .gt_indent_1 {
  text-indent: 5px;
}

#tnxpjuawtg .gt_indent_2 {
  text-indent: 10px;
}

#tnxpjuawtg .gt_indent_3 {
  text-indent: 15px;
}

#tnxpjuawtg .gt_indent_4 {
  text-indent: 20px;
}

#tnxpjuawtg .gt_indent_5 {
  text-indent: 25px;
}

#tnxpjuawtg .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#tnxpjuawtg div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">5</td>
<td headers="Y" class="gt_row gt_center">110.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">10</td>
<td headers="Y" class="gt_row gt_center gt_striped">138.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">15</td>
<td headers="Y" class="gt_row gt_center">168.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">20</td>
<td headers="Y" class="gt_row gt_center gt_striped">205.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">25</td>
<td headers="Y" class="gt_row gt_center">239.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">35</td>
<td headers="Y" class="gt_row gt_center gt_striped">278.2</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=5.81:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9878:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 83.38\)</span>, <span class="math inline">\(\quad \hat{b} = 5.81\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 83.38 + 5.81 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9878\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R41 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Werbeausgaben (in Tsd. Euro) und Umsatz (in Tsd. Euro):</p>
<div id="biomecztnq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#biomecztnq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#biomecztnq thead, #biomecztnq tbody, #biomecztnq tfoot, #biomecztnq tr, #biomecztnq td, #biomecztnq th {
  border-style: none;
}

#biomecztnq p {
  margin: 0;
  padding: 0;
}

#biomecztnq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#biomecztnq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#biomecztnq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#biomecztnq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#biomecztnq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#biomecztnq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#biomecztnq .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#biomecztnq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#biomecztnq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#biomecztnq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#biomecztnq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#biomecztnq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#biomecztnq .gt_spanner_row {
  border-bottom-style: hidden;
}

#biomecztnq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#biomecztnq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#biomecztnq .gt_from_md > :first-child {
  margin-top: 0;
}

#biomecztnq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#biomecztnq .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#biomecztnq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#biomecztnq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#biomecztnq .gt_row_group_first td {
  border-top-width: 2px;
}

#biomecztnq .gt_row_group_first th {
  border-top-width: 2px;
}

#biomecztnq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#biomecztnq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#biomecztnq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#biomecztnq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#biomecztnq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#biomecztnq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#biomecztnq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#biomecztnq .gt_striped {
  background-color: #F5F5F5;
}

#biomecztnq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#biomecztnq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#biomecztnq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#biomecztnq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#biomecztnq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#biomecztnq .gt_left {
  text-align: left;
}

#biomecztnq .gt_center {
  text-align: center;
}

#biomecztnq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#biomecztnq .gt_font_normal {
  font-weight: normal;
}

#biomecztnq .gt_font_bold {
  font-weight: bold;
}

#biomecztnq .gt_font_italic {
  font-style: italic;
}

#biomecztnq .gt_super {
  font-size: 65%;
}

#biomecztnq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#biomecztnq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#biomecztnq .gt_indent_1 {
  text-indent: 5px;
}

#biomecztnq .gt_indent_2 {
  text-indent: 10px;
}

#biomecztnq .gt_indent_3 {
  text-indent: 15px;
}

#biomecztnq .gt_indent_4 {
  text-indent: 20px;
}

#biomecztnq .gt_indent_5 {
  text-indent: 25px;
}

#biomecztnq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#biomecztnq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Werbeausgaben (Tsd. Euro)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Umsatz (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">128.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">221.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">264.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">308.7</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9906:0.005}</p>
<p><span class="math inline">\(\hat{y}(30) =\)</span>  {1:NUMERICAL:=253.66:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 69.76\)</span>, <span class="math inline">\(\quad \hat{b} = 6.13\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 69.76 + 6.13 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9906\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(30) = 69.76 + 6.13 \cdot 30 = 253.66\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R42 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="lbijnwtfes" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#lbijnwtfes table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#lbijnwtfes thead, #lbijnwtfes tbody, #lbijnwtfes tfoot, #lbijnwtfes tr, #lbijnwtfes td, #lbijnwtfes th {
  border-style: none;
}

#lbijnwtfes p {
  margin: 0;
  padding: 0;
}

#lbijnwtfes .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#lbijnwtfes .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#lbijnwtfes .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#lbijnwtfes .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#lbijnwtfes .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#lbijnwtfes .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lbijnwtfes .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#lbijnwtfes .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#lbijnwtfes .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#lbijnwtfes .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#lbijnwtfes .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#lbijnwtfes .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#lbijnwtfes .gt_spanner_row {
  border-bottom-style: hidden;
}

#lbijnwtfes .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#lbijnwtfes .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#lbijnwtfes .gt_from_md > :first-child {
  margin-top: 0;
}

#lbijnwtfes .gt_from_md > :last-child {
  margin-bottom: 0;
}

#lbijnwtfes .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#lbijnwtfes .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#lbijnwtfes .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#lbijnwtfes .gt_row_group_first td {
  border-top-width: 2px;
}

#lbijnwtfes .gt_row_group_first th {
  border-top-width: 2px;
}

#lbijnwtfes .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#lbijnwtfes .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#lbijnwtfes .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#lbijnwtfes .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lbijnwtfes .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#lbijnwtfes .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#lbijnwtfes .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#lbijnwtfes .gt_striped {
  background-color: #F5F5F5;
}

#lbijnwtfes .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#lbijnwtfes .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#lbijnwtfes .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#lbijnwtfes .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#lbijnwtfes .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#lbijnwtfes .gt_left {
  text-align: left;
}

#lbijnwtfes .gt_center {
  text-align: center;
}

#lbijnwtfes .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#lbijnwtfes .gt_font_normal {
  font-weight: normal;
}

#lbijnwtfes .gt_font_bold {
  font-weight: bold;
}

#lbijnwtfes .gt_font_italic {
  font-style: italic;
}

#lbijnwtfes .gt_super {
  font-size: 65%;
}

#lbijnwtfes .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#lbijnwtfes .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#lbijnwtfes .gt_indent_1 {
  text-indent: 5px;
}

#lbijnwtfes .gt_indent_2 {
  text-indent: 10px;
}

#lbijnwtfes .gt_indent_3 {
  text-indent: 15px;
}

#lbijnwtfes .gt_indent_4 {
  text-indent: 20px;
}

#lbijnwtfes .gt_indent_5 {
  text-indent: 25px;
}

#lbijnwtfes .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#lbijnwtfes div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">35</td>
<td headers="Y" class="gt_row gt_center">127.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">127.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center">50</td>
<td headers="Y" class="gt_row gt_center">137.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">55</td>
<td headers="Y" class="gt_row gt_center gt_striped">135.6</td></tr>
    <tr><td headers="X" class="gt_row gt_center">65</td>
<td headers="Y" class="gt_row gt_center">145.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=104.28:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9279:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 104.28\)</span>, <span class="math inline">\(\quad \hat{b} = 0.62\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 104.28 + 0.62 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9279\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R43 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="geqhfyxfwj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#geqhfyxfwj table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#geqhfyxfwj thead, #geqhfyxfwj tbody, #geqhfyxfwj tfoot, #geqhfyxfwj tr, #geqhfyxfwj td, #geqhfyxfwj th {
  border-style: none;
}

#geqhfyxfwj p {
  margin: 0;
  padding: 0;
}

#geqhfyxfwj .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#geqhfyxfwj .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#geqhfyxfwj .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#geqhfyxfwj .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#geqhfyxfwj .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#geqhfyxfwj .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#geqhfyxfwj .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#geqhfyxfwj .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#geqhfyxfwj .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#geqhfyxfwj .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#geqhfyxfwj .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#geqhfyxfwj .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#geqhfyxfwj .gt_spanner_row {
  border-bottom-style: hidden;
}

#geqhfyxfwj .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#geqhfyxfwj .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#geqhfyxfwj .gt_from_md > :first-child {
  margin-top: 0;
}

#geqhfyxfwj .gt_from_md > :last-child {
  margin-bottom: 0;
}

#geqhfyxfwj .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#geqhfyxfwj .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#geqhfyxfwj .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#geqhfyxfwj .gt_row_group_first td {
  border-top-width: 2px;
}

#geqhfyxfwj .gt_row_group_first th {
  border-top-width: 2px;
}

#geqhfyxfwj .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#geqhfyxfwj .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#geqhfyxfwj .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#geqhfyxfwj .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#geqhfyxfwj .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#geqhfyxfwj .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#geqhfyxfwj .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#geqhfyxfwj .gt_striped {
  background-color: #F5F5F5;
}

#geqhfyxfwj .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#geqhfyxfwj .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#geqhfyxfwj .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#geqhfyxfwj .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#geqhfyxfwj .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#geqhfyxfwj .gt_left {
  text-align: left;
}

#geqhfyxfwj .gt_center {
  text-align: center;
}

#geqhfyxfwj .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#geqhfyxfwj .gt_font_normal {
  font-weight: normal;
}

#geqhfyxfwj .gt_font_bold {
  font-weight: bold;
}

#geqhfyxfwj .gt_font_italic {
  font-style: italic;
}

#geqhfyxfwj .gt_super {
  font-size: 65%;
}

#geqhfyxfwj .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#geqhfyxfwj .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#geqhfyxfwj .gt_indent_1 {
  text-indent: 5px;
}

#geqhfyxfwj .gt_indent_2 {
  text-indent: 10px;
}

#geqhfyxfwj .gt_indent_3 {
  text-indent: 15px;
}

#geqhfyxfwj .gt_indent_4 {
  text-indent: 20px;
}

#geqhfyxfwj .gt_indent_5 {
  text-indent: 25px;
}

#geqhfyxfwj .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#geqhfyxfwj div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">158</td>
<td headers="Y" class="gt_row gt_center">33.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">162</td>
<td headers="Y" class="gt_row gt_center gt_striped">35.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">170</td>
<td headers="Y" class="gt_row gt_center">39.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">174</td>
<td headers="Y" class="gt_row gt_center gt_striped">41.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">190</td>
<td headers="Y" class="gt_row gt_center">51.2</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=0.56:0.05}</p>
<p><span class="math inline">\(\hat{y}(162) =\)</span>  {1:NUMERICAL:=34.53:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -56.19\)</span>, <span class="math inline">\(\quad \hat{b} = 0.56\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -56.19 + 0.56 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9961\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(162) = -56.19 + 0.56 \cdot 162 = 34.53\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R44 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Körpergröße (in cm) und Schuhgröße (in EU):</p>
<div id="yryxjilpdz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yryxjilpdz table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#yryxjilpdz thead, #yryxjilpdz tbody, #yryxjilpdz tfoot, #yryxjilpdz tr, #yryxjilpdz td, #yryxjilpdz th {
  border-style: none;
}

#yryxjilpdz p {
  margin: 0;
  padding: 0;
}

#yryxjilpdz .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#yryxjilpdz .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yryxjilpdz .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#yryxjilpdz .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#yryxjilpdz .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yryxjilpdz .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yryxjilpdz .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#yryxjilpdz .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#yryxjilpdz .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#yryxjilpdz .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yryxjilpdz .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yryxjilpdz .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#yryxjilpdz .gt_spanner_row {
  border-bottom-style: hidden;
}

#yryxjilpdz .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#yryxjilpdz .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#yryxjilpdz .gt_from_md > :first-child {
  margin-top: 0;
}

#yryxjilpdz .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yryxjilpdz .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#yryxjilpdz .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#yryxjilpdz .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#yryxjilpdz .gt_row_group_first td {
  border-top-width: 2px;
}

#yryxjilpdz .gt_row_group_first th {
  border-top-width: 2px;
}

#yryxjilpdz .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yryxjilpdz .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yryxjilpdz .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yryxjilpdz .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yryxjilpdz .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yryxjilpdz .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#yryxjilpdz .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#yryxjilpdz .gt_striped {
  background-color: #F5F5F5;
}

#yryxjilpdz .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yryxjilpdz .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yryxjilpdz .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yryxjilpdz .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#yryxjilpdz .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yryxjilpdz .gt_left {
  text-align: left;
}

#yryxjilpdz .gt_center {
  text-align: center;
}

#yryxjilpdz .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yryxjilpdz .gt_font_normal {
  font-weight: normal;
}

#yryxjilpdz .gt_font_bold {
  font-weight: bold;
}

#yryxjilpdz .gt_font_italic {
  font-style: italic;
}

#yryxjilpdz .gt_super {
  font-size: 65%;
}

#yryxjilpdz .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yryxjilpdz .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yryxjilpdz .gt_indent_1 {
  text-indent: 5px;
}

#yryxjilpdz .gt_indent_2 {
  text-indent: 10px;
}

#yryxjilpdz .gt_indent_3 {
  text-indent: 15px;
}

#yryxjilpdz .gt_indent_4 {
  text-indent: 20px;
}

#yryxjilpdz .gt_indent_5 {
  text-indent: 25px;
}

#yryxjilpdz .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yryxjilpdz div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Körpergröße (cm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Schuhgröße (EU)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">158</td>
<td headers="Y" class="gt_row gt_center">32.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">170</td>
<td headers="Y" class="gt_row gt_center gt_striped">38.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">182</td>
<td headers="Y" class="gt_row gt_center">47.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">186</td>
<td headers="Y" class="gt_row gt_center gt_striped">46.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">190</td>
<td headers="Y" class="gt_row gt_center">49.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=-51.5:0.05}</p>
<p><span class="math inline">\(\hat{y}(162) =\)</span>  {1:NUMERICAL:=34.36:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = -51.5\)</span>, <span class="math inline">\(\quad \hat{b} = 0.53\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = -51.5 + 0.53 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9719\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(162) = -51.5 + 0.53 \cdot 162 = 34.36\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R45 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="gnjqntwoaq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#gnjqntwoaq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#gnjqntwoaq thead, #gnjqntwoaq tbody, #gnjqntwoaq tfoot, #gnjqntwoaq tr, #gnjqntwoaq td, #gnjqntwoaq th {
  border-style: none;
}

#gnjqntwoaq p {
  margin: 0;
  padding: 0;
}

#gnjqntwoaq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#gnjqntwoaq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#gnjqntwoaq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#gnjqntwoaq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#gnjqntwoaq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#gnjqntwoaq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#gnjqntwoaq .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#gnjqntwoaq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#gnjqntwoaq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#gnjqntwoaq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#gnjqntwoaq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#gnjqntwoaq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#gnjqntwoaq .gt_spanner_row {
  border-bottom-style: hidden;
}

#gnjqntwoaq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#gnjqntwoaq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#gnjqntwoaq .gt_from_md > :first-child {
  margin-top: 0;
}

#gnjqntwoaq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#gnjqntwoaq .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#gnjqntwoaq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#gnjqntwoaq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#gnjqntwoaq .gt_row_group_first td {
  border-top-width: 2px;
}

#gnjqntwoaq .gt_row_group_first th {
  border-top-width: 2px;
}

#gnjqntwoaq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#gnjqntwoaq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#gnjqntwoaq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#gnjqntwoaq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#gnjqntwoaq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#gnjqntwoaq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#gnjqntwoaq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#gnjqntwoaq .gt_striped {
  background-color: #F5F5F5;
}

#gnjqntwoaq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#gnjqntwoaq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#gnjqntwoaq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#gnjqntwoaq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#gnjqntwoaq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#gnjqntwoaq .gt_left {
  text-align: left;
}

#gnjqntwoaq .gt_center {
  text-align: center;
}

#gnjqntwoaq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#gnjqntwoaq .gt_font_normal {
  font-weight: normal;
}

#gnjqntwoaq .gt_font_bold {
  font-weight: bold;
}

#gnjqntwoaq .gt_font_italic {
  font-style: italic;
}

#gnjqntwoaq .gt_super {
  font-size: 65%;
}

#gnjqntwoaq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#gnjqntwoaq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#gnjqntwoaq .gt_indent_1 {
  text-indent: 5px;
}

#gnjqntwoaq .gt_indent_2 {
  text-indent: 10px;
}

#gnjqntwoaq .gt_indent_3 {
  text-indent: 15px;
}

#gnjqntwoaq .gt_indent_4 {
  text-indent: 20px;
}

#gnjqntwoaq .gt_indent_5 {
  text-indent: 25px;
}

#gnjqntwoaq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#gnjqntwoaq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">0</td>
<td headers="Y" class="gt_row gt_center">28.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">5</td>
<td headers="Y" class="gt_row gt_center gt_striped">42.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">51.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">15</td>
<td headers="Y" class="gt_row gt_center gt_striped">63.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">67.6</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=2.01:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9719:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 30.62\)</span>, <span class="math inline">\(\quad \hat{b} = 2.01\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 30.62 + 2.01 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9719\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R46 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 4\)</span> Beobachtungen zu Niederschlag (in mm) und Ertrag (in dt/ha):</p>
<div id="houjcwyins" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#houjcwyins table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#houjcwyins thead, #houjcwyins tbody, #houjcwyins tfoot, #houjcwyins tr, #houjcwyins td, #houjcwyins th {
  border-style: none;
}

#houjcwyins p {
  margin: 0;
  padding: 0;
}

#houjcwyins .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#houjcwyins .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#houjcwyins .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#houjcwyins .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#houjcwyins .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#houjcwyins .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#houjcwyins .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#houjcwyins .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#houjcwyins .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#houjcwyins .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#houjcwyins .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#houjcwyins .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#houjcwyins .gt_spanner_row {
  border-bottom-style: hidden;
}

#houjcwyins .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#houjcwyins .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#houjcwyins .gt_from_md > :first-child {
  margin-top: 0;
}

#houjcwyins .gt_from_md > :last-child {
  margin-bottom: 0;
}

#houjcwyins .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#houjcwyins .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#houjcwyins .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#houjcwyins .gt_row_group_first td {
  border-top-width: 2px;
}

#houjcwyins .gt_row_group_first th {
  border-top-width: 2px;
}

#houjcwyins .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#houjcwyins .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#houjcwyins .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#houjcwyins .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#houjcwyins .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#houjcwyins .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#houjcwyins .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#houjcwyins .gt_striped {
  background-color: #F5F5F5;
}

#houjcwyins .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#houjcwyins .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#houjcwyins .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#houjcwyins .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#houjcwyins .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#houjcwyins .gt_left {
  text-align: left;
}

#houjcwyins .gt_center {
  text-align: center;
}

#houjcwyins .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#houjcwyins .gt_font_normal {
  font-weight: normal;
}

#houjcwyins .gt_font_bold {
  font-weight: bold;
}

#houjcwyins .gt_font_italic {
  font-style: italic;
}

#houjcwyins .gt_super {
  font-size: 65%;
}

#houjcwyins .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#houjcwyins .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#houjcwyins .gt_indent_1 {
  text-indent: 5px;
}

#houjcwyins .gt_indent_2 {
  text-indent: 10px;
}

#houjcwyins .gt_indent_3 {
  text-indent: 15px;
}

#houjcwyins .gt_indent_4 {
  text-indent: 20px;
}

#houjcwyins .gt_indent_5 {
  text-indent: 25px;
}

#houjcwyins .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#houjcwyins div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Niederschlag (mm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Ertrag (dt/ha)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">250</td>
<td headers="Y" class="gt_row gt_center">36.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">350</td>
<td headers="Y" class="gt_row gt_center gt_striped">48.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">400</td>
<td headers="Y" class="gt_row gt_center">53.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">450</td>
<td headers="Y" class="gt_row gt_center gt_striped">65.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=0.66:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.9782:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 0.66\)</span>, <span class="math inline">\(\quad \hat{b} = 0.14\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 0.66 + 0.14 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9782\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R47 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Berufserfahrung (in Jahren) und Jahresgehalt (in Tsd. Euro):</p>
<div id="aqvpapdbap" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#aqvpapdbap table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#aqvpapdbap thead, #aqvpapdbap tbody, #aqvpapdbap tfoot, #aqvpapdbap tr, #aqvpapdbap td, #aqvpapdbap th {
  border-style: none;
}

#aqvpapdbap p {
  margin: 0;
  padding: 0;
}

#aqvpapdbap .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#aqvpapdbap .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#aqvpapdbap .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#aqvpapdbap .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#aqvpapdbap .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#aqvpapdbap .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#aqvpapdbap .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#aqvpapdbap .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#aqvpapdbap .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#aqvpapdbap .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#aqvpapdbap .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#aqvpapdbap .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#aqvpapdbap .gt_spanner_row {
  border-bottom-style: hidden;
}

#aqvpapdbap .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#aqvpapdbap .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#aqvpapdbap .gt_from_md > :first-child {
  margin-top: 0;
}

#aqvpapdbap .gt_from_md > :last-child {
  margin-bottom: 0;
}

#aqvpapdbap .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#aqvpapdbap .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#aqvpapdbap .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#aqvpapdbap .gt_row_group_first td {
  border-top-width: 2px;
}

#aqvpapdbap .gt_row_group_first th {
  border-top-width: 2px;
}

#aqvpapdbap .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#aqvpapdbap .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#aqvpapdbap .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#aqvpapdbap .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#aqvpapdbap .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#aqvpapdbap .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#aqvpapdbap .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#aqvpapdbap .gt_striped {
  background-color: #F5F5F5;
}

#aqvpapdbap .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#aqvpapdbap .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#aqvpapdbap .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#aqvpapdbap .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#aqvpapdbap .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#aqvpapdbap .gt_left {
  text-align: left;
}

#aqvpapdbap .gt_center {
  text-align: center;
}

#aqvpapdbap .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#aqvpapdbap .gt_font_normal {
  font-weight: normal;
}

#aqvpapdbap .gt_font_bold {
  font-weight: bold;
}

#aqvpapdbap .gt_font_italic {
  font-style: italic;
}

#aqvpapdbap .gt_super {
  font-size: 65%;
}

#aqvpapdbap .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#aqvpapdbap .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#aqvpapdbap .gt_indent_1 {
  text-indent: 5px;
}

#aqvpapdbap .gt_indent_2 {
  text-indent: 10px;
}

#aqvpapdbap .gt_indent_3 {
  text-indent: 15px;
}

#aqvpapdbap .gt_indent_4 {
  text-indent: 20px;
}

#aqvpapdbap .gt_indent_5 {
  text-indent: 25px;
}

#aqvpapdbap .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#aqvpapdbap div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Berufserfahrung (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Jahresgehalt (Tsd. Euro)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">0</td>
<td headers="Y" class="gt_row gt_center">39.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">5</td>
<td headers="Y" class="gt_row gt_center gt_striped">43.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">53.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">15</td>
<td headers="Y" class="gt_row gt_center gt_striped">52.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">20</td>
<td headers="Y" class="gt_row gt_center">72.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">25</td>
<td headers="Y" class="gt_row gt_center gt_striped">81.5</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=36.21:0.05}</p>
<p><span class="math inline">\(\hat{y}(20) =\)</span>  {1:NUMERICAL:=69.61:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 36.21\)</span>, <span class="math inline">\(\quad \hat{b} = 1.67\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 36.21 + 1.67 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.9136\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(20) = 36.21 + 1.67 \cdot 20 = 69.61\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R48 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Alter (in Jahren) und Blutdruck (in mmHg):</p>
<div id="genuqiitol" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#genuqiitol table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#genuqiitol thead, #genuqiitol tbody, #genuqiitol tfoot, #genuqiitol tr, #genuqiitol td, #genuqiitol th {
  border-style: none;
}

#genuqiitol p {
  margin: 0;
  padding: 0;
}

#genuqiitol .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#genuqiitol .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#genuqiitol .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#genuqiitol .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#genuqiitol .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#genuqiitol .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#genuqiitol .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#genuqiitol .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#genuqiitol .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#genuqiitol .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#genuqiitol .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#genuqiitol .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#genuqiitol .gt_spanner_row {
  border-bottom-style: hidden;
}

#genuqiitol .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#genuqiitol .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#genuqiitol .gt_from_md > :first-child {
  margin-top: 0;
}

#genuqiitol .gt_from_md > :last-child {
  margin-bottom: 0;
}

#genuqiitol .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#genuqiitol .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#genuqiitol .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#genuqiitol .gt_row_group_first td {
  border-top-width: 2px;
}

#genuqiitol .gt_row_group_first th {
  border-top-width: 2px;
}

#genuqiitol .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#genuqiitol .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#genuqiitol .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#genuqiitol .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#genuqiitol .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#genuqiitol .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#genuqiitol .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#genuqiitol .gt_striped {
  background-color: #F5F5F5;
}

#genuqiitol .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#genuqiitol .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#genuqiitol .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#genuqiitol .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#genuqiitol .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#genuqiitol .gt_left {
  text-align: left;
}

#genuqiitol .gt_center {
  text-align: center;
}

#genuqiitol .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#genuqiitol .gt_font_normal {
  font-weight: normal;
}

#genuqiitol .gt_font_bold {
  font-weight: bold;
}

#genuqiitol .gt_font_italic {
  font-style: italic;
}

#genuqiitol .gt_super {
  font-size: 65%;
}

#genuqiitol .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#genuqiitol .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#genuqiitol .gt_indent_1 {
  text-indent: 5px;
}

#genuqiitol .gt_indent_2 {
  text-indent: 10px;
}

#genuqiitol .gt_indent_3 {
  text-indent: 15px;
}

#genuqiitol .gt_indent_4 {
  text-indent: 20px;
}

#genuqiitol .gt_indent_5 {
  text-indent: 25px;
}

#genuqiitol .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#genuqiitol div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Alter (Jahren)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Blutdruck (mmHg)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">30</td>
<td headers="Y" class="gt_row gt_center">112.7</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">40</td>
<td headers="Y" class="gt_row gt_center gt_striped">117.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">45</td>
<td headers="Y" class="gt_row gt_center">120.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">50</td>
<td headers="Y" class="gt_row gt_center gt_striped">143.3</td></tr>
    <tr><td headers="X" class="gt_row gt_center">55</td>
<td headers="Y" class="gt_row gt_center">134.0</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">65</td>
<td headers="Y" class="gt_row gt_center gt_striped">145.5</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{b} =\)</span>  {1:NUMERICAL:=1.02:0.05}</p>
<p><span class="math inline">\(\hat{y}(55) =\)</span>  {1:NUMERICAL:=136.41:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 80.31\)</span>, <span class="math inline">\(\quad \hat{b} = 1.02\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 80.31 + 1.02 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.7947\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(55) = 80.31 + 1.02 \cdot 55 = 136.41\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R49 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 6\)</span> Beobachtungen zu Niederschlag (in mm) und Ertrag (in dt/ha):</p>
<div id="fgveoxaxed" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#fgveoxaxed table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#fgveoxaxed thead, #fgveoxaxed tbody, #fgveoxaxed tfoot, #fgveoxaxed tr, #fgveoxaxed td, #fgveoxaxed th {
  border-style: none;
}

#fgveoxaxed p {
  margin: 0;
  padding: 0;
}

#fgveoxaxed .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#fgveoxaxed .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#fgveoxaxed .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#fgveoxaxed .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#fgveoxaxed .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#fgveoxaxed .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#fgveoxaxed .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#fgveoxaxed .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#fgveoxaxed .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#fgveoxaxed .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#fgveoxaxed .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#fgveoxaxed .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#fgveoxaxed .gt_spanner_row {
  border-bottom-style: hidden;
}

#fgveoxaxed .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#fgveoxaxed .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#fgveoxaxed .gt_from_md > :first-child {
  margin-top: 0;
}

#fgveoxaxed .gt_from_md > :last-child {
  margin-bottom: 0;
}

#fgveoxaxed .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#fgveoxaxed .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#fgveoxaxed .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#fgveoxaxed .gt_row_group_first td {
  border-top-width: 2px;
}

#fgveoxaxed .gt_row_group_first th {
  border-top-width: 2px;
}

#fgveoxaxed .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fgveoxaxed .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#fgveoxaxed .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#fgveoxaxed .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#fgveoxaxed .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fgveoxaxed .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#fgveoxaxed .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#fgveoxaxed .gt_striped {
  background-color: #F5F5F5;
}

#fgveoxaxed .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#fgveoxaxed .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#fgveoxaxed .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fgveoxaxed .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#fgveoxaxed .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fgveoxaxed .gt_left {
  text-align: left;
}

#fgveoxaxed .gt_center {
  text-align: center;
}

#fgveoxaxed .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#fgveoxaxed .gt_font_normal {
  font-weight: normal;
}

#fgveoxaxed .gt_font_bold {
  font-weight: bold;
}

#fgveoxaxed .gt_font_italic {
  font-style: italic;
}

#fgveoxaxed .gt_super {
  font-size: 65%;
}

#fgveoxaxed .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#fgveoxaxed .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#fgveoxaxed .gt_indent_1 {
  text-indent: 5px;
}

#fgveoxaxed .gt_indent_2 {
  text-indent: 10px;
}

#fgveoxaxed .gt_indent_3 {
  text-indent: 15px;
}

#fgveoxaxed .gt_indent_4 {
  text-indent: 20px;
}

#fgveoxaxed .gt_indent_5 {
  text-indent: 25px;
}

#fgveoxaxed .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#fgveoxaxed div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Niederschlag (mm)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Ertrag (dt/ha)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">250</td>
<td headers="Y" class="gt_row gt_center">35.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">300</td>
<td headers="Y" class="gt_row gt_center gt_striped">46.2</td></tr>
    <tr><td headers="X" class="gt_row gt_center">350</td>
<td headers="Y" class="gt_row gt_center">42.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">400</td>
<td headers="Y" class="gt_row gt_center gt_striped">43.9</td></tr>
    <tr><td headers="X" class="gt_row gt_center">500</td>
<td headers="Y" class="gt_row gt_center">63.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">550</td>
<td headers="Y" class="gt_row gt_center gt_striped">62.0</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.8495:0.005}</p>
<p><span class="math inline">\(\hat{y}(350) =\)</span>  {1:NUMERICAL:=45.67:0.1}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 14.17\)</span>, <span class="math inline">\(\quad \hat{b} = 0.09\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 14.17 + 0.09 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.8495\)</span></p>
<p>Prognose: <span class="math inline">\(\hat{y}(350) = 14.17 + 0.09 \cdot 350 = 45.67\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R50 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_regression_berechnung </text>
</name>
<questiontext format="html">
<text><![CDATA[
<style type="text/css" rel="stylesheet">
/* tables with alternating shading */
.table_shade {
    border-collapse: collapse;
    border-spacing: 0;
    border:1px solid #FFFFFF;
    background-color: #FFFFFF;
}
.table_shade th {
    border:1px solid #FFFFFF;
    background: #D5D5D5;
}
.table_shade td {
    border:1px solid #FFFFFF;
}
.table_shade .odd {
    background: #EEEEEE;
}
.table_shade .even {
    background: #FBFBFB;
}
</style>
<p>
<p>Gegeben sind <span class="math inline">\(n = 5\)</span> Beobachtungen zu Lernzeit (in Stunden) und Klausurpunkte (in Punkte):</p>
<div id="nesgonwvkq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#nesgonwvkq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nesgonwvkq thead, #nesgonwvkq tbody, #nesgonwvkq tfoot, #nesgonwvkq tr, #nesgonwvkq td, #nesgonwvkq th {
  border-style: none;
}

#nesgonwvkq p {
  margin: 0;
  padding: 0;
}

#nesgonwvkq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #000000;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#nesgonwvkq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#nesgonwvkq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#nesgonwvkq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#nesgonwvkq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nesgonwvkq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nesgonwvkq .gt_col_headings {
  border-top-style: none;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nesgonwvkq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: hidden;
}

#nesgonwvkq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#nesgonwvkq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#nesgonwvkq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#nesgonwvkq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #000000;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#nesgonwvkq .gt_spanner_row {
  border-bottom-style: hidden;
}

#nesgonwvkq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#nesgonwvkq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#nesgonwvkq .gt_from_md > :first-child {
  margin-top: 0;
}

#nesgonwvkq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#nesgonwvkq .gt_row {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 10px;
  border-top-style: none;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#nesgonwvkq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
}

#nesgonwvkq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
}

#nesgonwvkq .gt_row_group_first td {
  border-top-width: 2px;
}

#nesgonwvkq .gt_row_group_first th {
  border-top-width: 2px;
}

#nesgonwvkq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nesgonwvkq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#nesgonwvkq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#nesgonwvkq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nesgonwvkq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#nesgonwvkq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#nesgonwvkq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#nesgonwvkq .gt_striped {
  background-color: #F5F5F5;
}

#nesgonwvkq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nesgonwvkq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nesgonwvkq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nesgonwvkq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nesgonwvkq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#nesgonwvkq .gt_left {
  text-align: left;
}

#nesgonwvkq .gt_center {
  text-align: center;
}

#nesgonwvkq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#nesgonwvkq .gt_font_normal {
  font-weight: normal;
}

#nesgonwvkq .gt_font_bold {
  font-weight: bold;
}

#nesgonwvkq .gt_font_italic {
  font-style: italic;
}

#nesgonwvkq .gt_super {
  font-size: 65%;
}

#nesgonwvkq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#nesgonwvkq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#nesgonwvkq .gt_indent_1 {
  text-indent: 5px;
}

#nesgonwvkq .gt_indent_2 {
  text-indent: 10px;
}

#nesgonwvkq .gt_indent_3 {
  text-indent: 15px;
}

#nesgonwvkq .gt_indent_4 {
  text-indent: 20px;
}

#nesgonwvkq .gt_indent_5 {
  text-indent: 25px;
}

#nesgonwvkq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#nesgonwvkq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>
<table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
  <thead>
    <tr class="gt_col_headings">
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="X">Lernzeit (Stunden)</th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="Y">Klausurpunkte (Punkte)</th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="X" class="gt_row gt_center">6</td>
<td headers="Y" class="gt_row gt_center">66.4</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">8</td>
<td headers="Y" class="gt_row gt_center gt_striped">65.1</td></tr>
    <tr><td headers="X" class="gt_row gt_center">10</td>
<td headers="Y" class="gt_row gt_center">66.8</td></tr>
    <tr><td headers="X" class="gt_row gt_center gt_striped">12</td>
<td headers="Y" class="gt_row gt_center gt_striped">75.5</td></tr>
    <tr><td headers="X" class="gt_row gt_center">14</td>
<td headers="Y" class="gt_row gt_center">98.8</td></tr>
  </tbody>
  
</table>
</div>
<p>Berechnen Sie für die lineare Regressionsgerade <span class="math inline">\(\hat{y} = \hat{a} + \hat{b} \cdot x\)</span>
nach der Methode der kleinsten Quadrate die nachstehenden Kenngrößen.
Runden Sie auf zwei Dezimalstellen (bei <span class="math inline">\(R^2\)</span> auf vier Dezimalstellen).</p>
<p><span class="math inline">\(\hat{a} =\)</span>  {1:NUMERICAL:=36.92:0.05}</p>
<p><span class="math inline">\(R^2 =\)</span>  {1:NUMERICAL:=0.7027:0.005}</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><span class="math inline">\(\hat{a} = 36.92\)</span>, <span class="math inline">\(\quad \hat{b} = 3.76\)</span></p>
<p>Regressionsgerade: <span class="math inline">\(\hat{y} = 36.92 + 3.76 \cdot x\)</span></p>
<p><span class="math inline">\(R^2 = r^2 = 0.7027\)</span></p>
<p>Mit dem Taschenrechner (Modus A+BX / REG): <span class="math inline">\(x\)</span>- und <span class="math inline">\(y\)</span>-Werte paarweise eingeben, dann <span class="math inline">\(a\)</span>, <span class="math inline">\(b\)</span> und <span class="math inline">\(r\)</span> direkt ablesen. <span class="math inline">\(R^2 = r^2\)</span>.</p>
<p>In R: <code>lm(y ~ x)</code> für <span class="math inline">\(\hat{a}\)</span>, <span class="math inline">\(\hat{b}\)</span>; <code>summary(lm(y ~ x))$r.squared</code> für <span class="math inline">\(R^2\)</span>.</p>
<div class="cell">

</div>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>2</defaultgrade>
</question>

</quiz>
