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


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


<question type="cloze">
<name>
<text> R01 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Franz hat den Jahresumsatz (in Mio. €) von 5 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(10, 20, 100, 20, 50\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.525:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 20, 20, 50, 100)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="sauujvnjgi" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#sauujvnjgi 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;
}

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

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

#sauujvnjgi .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;
}

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

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

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

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

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

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

#sauujvnjgi .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%;
}

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

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

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

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

#sauujvnjgi .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

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

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

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

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

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

#sauujvnjgi .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;
}

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

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

#sauujvnjgi .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#sauujvnjgi .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;
}

#sauujvnjgi .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;
}

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

#sauujvnjgi .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#sauujvnjgi 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.0000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.0500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.05\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.05 - (5 + 1)}{5}
    = \frac{8.1 - 6}{5}
    = \frac{2.1}{5}
    = 0.42\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.42}{0.8} = 0.525}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R02 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Sebastian hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.3, 0.1, 0.4, 0.3, 0.4, 0.1, 0.2, 0.2\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="bacxifqtei" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#bacxifqtei 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;
}

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

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

#bacxifqtei .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;
}

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

#bacxifqtei .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;
}

#bacxifqtei .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;
}

#bacxifqtei .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;
}

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

#bacxifqtei .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;
}

#bacxifqtei .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;
}

#bacxifqtei .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;
}

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

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

#bacxifqtei .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%;
}

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

#bacxifqtei .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;
}

#bacxifqtei .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;
}

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

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

#bacxifqtei .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#bacxifqtei .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;
}

#bacxifqtei .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;
}

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

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

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

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

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

#bacxifqtei .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;
}

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

#bacxifqtei .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;
}

#bacxifqtei .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;
}

#bacxifqtei .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#bacxifqtei .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;
}

#bacxifqtei .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;
}

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

#bacxifqtei .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#bacxifqtei 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R03 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(1000, 100, 600, 100, 200\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.575:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 200, 600, 1000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="tnztejltwx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tnztejltwx 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;
}

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

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

#tnztejltwx .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;
}

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

#tnztejltwx .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;
}

#tnztejltwx .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;
}

#tnztejltwx .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;
}

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

#tnztejltwx .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;
}

#tnztejltwx .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;
}

#tnztejltwx .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;
}

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

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

#tnztejltwx .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%;
}

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

#tnztejltwx .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;
}

#tnztejltwx .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;
}

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

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

#tnztejltwx .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#tnztejltwx .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;
}

#tnztejltwx .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;
}

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

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

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

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

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

#tnztejltwx .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;
}

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

#tnztejltwx .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;
}

#tnztejltwx .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;
}

#tnztejltwx .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#tnztejltwx .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;
}

#tnztejltwx .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;
}

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

#tnztejltwx .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#tnztejltwx 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">600</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAxMCQ="><span class='gt_from_md'>\(3 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.3000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.15\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.15 - (5 + 1)}{5}
    = \frac{8.3 - 6}{5}
    = \frac{2.3}{5}
    = 0.46\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.46}{0.8} = 0.575}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R04 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(1.0, 0.1, 0.2, 0.3, 0.1, 0.1, 0.1, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.543:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.3, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="owviabiqej" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#owviabiqej 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;
}

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

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

#owviabiqej .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;
}

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

#owviabiqej .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;
}

#owviabiqej .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;
}

#owviabiqej .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;
}

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

#owviabiqej .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;
}

#owviabiqej .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;
}

#owviabiqej .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;
}

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

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

#owviabiqej .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%;
}

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

#owviabiqej .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;
}

#owviabiqej .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;
}

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

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

#owviabiqej .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#owviabiqej .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;
}

#owviabiqej .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;
}

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

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

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

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

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

#owviabiqej .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;
}

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

#owviabiqej .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;
}

#owviabiqej .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;
}

#owviabiqej .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#owviabiqej .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;
}

#owviabiqej .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;
}

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

#owviabiqej .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#owviabiqej 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.4000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.4 - (8 + 1)}{8}
    = \frac{12.8 - 9}{8}
    = \frac{3.8}{8}
    = 0.475\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.475}{0.875} = 0.543}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R05 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.1, 0.4, 0.3, 0.1, 0.1, 0.8, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.5:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.1, 0.3, 0.4, 0.8)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</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: 3px;
  padding-bottom: 3px;
  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: rgba(128, 128, 128, 0.05);
}

#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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.8</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">3.2000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.2500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.25\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.25 - (8 + 1)}{8}
    = \frac{12.5 - 9}{8}
    = \frac{3.5}{8}
    = 0.438\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.438}{0.875} = 0.5}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R06 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat das Nettovermögen (in k€) von 10 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(400, 100, 400, 200, 200, 100, 200, 200, 100, 100\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.311:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 100, 100, 200, 200, 200, 200, 400, 400)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="xkrwrbgtnx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#xkrwrbgtnx 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;
}

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

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

#xkrwrbgtnx .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;
}

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

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

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

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

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

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

#xkrwrbgtnx .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%;
}

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

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

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

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

#xkrwrbgtnx .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

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

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

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

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

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

#xkrwrbgtnx .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;
}

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

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#xkrwrbgtnx .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;
}

#xkrwrbgtnx .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;
}

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

#xkrwrbgtnx .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#xkrwrbgtnx 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.9000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 6.9\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.9 - (10 + 1)}{10}
    = \frac{13.8 - 11}{10}
    = \frac{2.8}{10}
    = 0.28\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.28}{0.9} = 0.311}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R07 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Georg hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(100, 400, 300, 300, 200, 100, 200, 400\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 200, 200, 300, 300, 400, 400)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="owwomdzgap" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#owwomdzgap 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;
}

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

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

#owwomdzgap .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;
}

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

#owwomdzgap .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;
}

#owwomdzgap .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;
}

#owwomdzgap .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;
}

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

#owwomdzgap .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;
}

#owwomdzgap .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;
}

#owwomdzgap .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;
}

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

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

#owwomdzgap .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%;
}

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

#owwomdzgap .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;
}

#owwomdzgap .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;
}

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

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

#owwomdzgap .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#owwomdzgap .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;
}

#owwomdzgap .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;
}

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

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

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

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

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

#owwomdzgap .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;
}

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

#owwomdzgap .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;
}

#owwomdzgap .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;
}

#owwomdzgap .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#owwomdzgap .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;
}

#owwomdzgap .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;
}

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

#owwomdzgap .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#owwomdzgap 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R08 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alois hat das Nettovermögen (in k€) von 5 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(2000, 4000, 1000, 1000, 2000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.35:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1000, 1000, 2000, 2000, 4000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 10 000\)</span>)</p>
<div id="wpapjzdjwo" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#wpapjzdjwo 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;
}

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

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

#wpapjzdjwo .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;
}

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

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

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

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

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

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

#wpapjzdjwo .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%;
}

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

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

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

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

#wpapjzdjwo .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

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

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

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

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

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

#wpapjzdjwo .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;
}

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

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

#wpapjzdjwo .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#wpapjzdjwo .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;
}

#wpapjzdjwo .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;
}

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

#wpapjzdjwo .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#wpapjzdjwo 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">2000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">2000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">4000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">10000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">3.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 3.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 3.7 - (5 + 1)}{5}
    = \frac{7.4 - 6}{5}
    = \frac{1.4}{5}
    = 0.28\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.28}{0.8} = 0.35}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R09 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Sebastian hat das Nettovermögen (in k€) von 5 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(1, 1, 10, 2, 6\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.575:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 2, 6, 10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="jilgbmkgei" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#jilgbmkgei 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;
}

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

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

#jilgbmkgei .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;
}

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

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

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

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

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

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

#jilgbmkgei .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%;
}

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

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

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

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

#jilgbmkgei .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

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

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

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

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

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

#jilgbmkgei .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;
}

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

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

#jilgbmkgei .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#jilgbmkgei .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;
}

#jilgbmkgei .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;
}

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

#jilgbmkgei .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#jilgbmkgei 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">6</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAxMCQ="><span class='gt_from_md'>\(3 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.3000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.15\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.15 - (5 + 1)}{5}
    = \frac{8.3 - 6}{5}
    = \frac{2.3}{5}
    = 0.46\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.46}{0.8} = 0.575}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R10 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat den Jahresumsatz (in Mio. €) von 10 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(1 000, 1 000, 1 000, 10 000, 1 000, 2 000, 1 000, 1 000, 1 000, 1 000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 2 000, 10 000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="osllkizgov" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#osllkizgov 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;
}

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

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

#osllkizgov .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;
}

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

#osllkizgov .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;
}

#osllkizgov .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;
}

#osllkizgov .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;
}

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

#osllkizgov .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;
}

#osllkizgov .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;
}

#osllkizgov .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;
}

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

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

#osllkizgov .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%;
}

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

#osllkizgov .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;
}

#osllkizgov .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;
}

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

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

#osllkizgov .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#osllkizgov .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;
}

#osllkizgov .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;
}

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

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

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

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

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

#osllkizgov .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;
}

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

#osllkizgov .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;
}

#osllkizgov .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;
}

#osllkizgov .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#osllkizgov .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;
}

#osllkizgov .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;
}

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

#osllkizgov .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#osllkizgov 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">2 000</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">10 000</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20 000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R11 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Florian hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.01, 0.04, 0.02, 0.01, 0.02\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.35:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.01, 0.01, 0.02, 0.02, 0.04)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 0.1\)</span>)</p>
<div id="isczgchmxj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#isczgchmxj 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;
}

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

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

#isczgchmxj .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;
}

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

#isczgchmxj .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;
}

#isczgchmxj .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;
}

#isczgchmxj .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;
}

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

#isczgchmxj .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;
}

#isczgchmxj .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;
}

#isczgchmxj .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;
}

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

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

#isczgchmxj .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%;
}

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

#isczgchmxj .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;
}

#isczgchmxj .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;
}

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

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

#isczgchmxj .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#isczgchmxj .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;
}

#isczgchmxj .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;
}

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

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

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

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

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

#isczgchmxj .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;
}

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

#isczgchmxj .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;
}

#isczgchmxj .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;
}

#isczgchmxj .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#isczgchmxj .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;
}

#isczgchmxj .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;
}

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

#isczgchmxj .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#isczgchmxj 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.02</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.02</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.04</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">0.10</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">3.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 3.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 3.7 - (5 + 1)}{5}
    = \frac{7.4 - 6}{5}
    = \frac{1.4}{5}
    = 0.28\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.28}{0.8} = 0.35}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R12 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Karl hat das Nettovermögen (in k€) von 10 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 1.0, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="stmimqutdp" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#stmimqutdp 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;
}

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

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

#stmimqutdp .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;
}

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

#stmimqutdp .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;
}

#stmimqutdp .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;
}

#stmimqutdp .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;
}

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

#stmimqutdp .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;
}

#stmimqutdp .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;
}

#stmimqutdp .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;
}

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

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

#stmimqutdp .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%;
}

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

#stmimqutdp .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;
}

#stmimqutdp .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;
}

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

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

#stmimqutdp .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#stmimqutdp .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;
}

#stmimqutdp .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;
}

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

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

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

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

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

#stmimqutdp .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;
}

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

#stmimqutdp .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;
}

#stmimqutdp .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;
}

#stmimqutdp .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#stmimqutdp .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;
}

#stmimqutdp .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;
}

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

#stmimqutdp .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#stmimqutdp 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R13 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Peter hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(3000, 1000, 3000, 1000, 7000, 1000, 2000, 2000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.414:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1000, 1000, 1000, 2000, 2000, 3000, 3000, 7000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="yziygmitzw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yziygmitzw 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;
}

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

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

#yziygmitzw .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;
}

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

#yziygmitzw .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;
}

#yziygmitzw .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;
}

#yziygmitzw .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;
}

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

#yziygmitzw .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;
}

#yziygmitzw .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;
}

#yziygmitzw .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;
}

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

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

#yziygmitzw .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%;
}

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

#yziygmitzw .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;
}

#yziygmitzw .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;
}

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

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

#yziygmitzw .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#yziygmitzw .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;
}

#yziygmitzw .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;
}

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

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

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

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

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

#yziygmitzw .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;
}

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

#yziygmitzw .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;
}

#yziygmitzw .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;
}

#yziygmitzw .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#yziygmitzw .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;
}

#yziygmitzw .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;
}

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

#yziygmitzw .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#yziygmitzw 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">2000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">2000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">3000</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">3000</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">7000</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDcgLyAyMCQ="><span class='gt_from_md'>\(7 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.3500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">2.8000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.9500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.95\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.95 - (8 + 1)}{8}
    = \frac{11.9 - 9}{8}
    = \frac{2.9}{8}
    = 0.363\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.363}{0.875} = 0.414}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R14 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat den Jahresumsatz (in Mio. €) von 10 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.1, 0.2, 0.1, 1.0, 0.1, 0.1, 0.1, 0.1, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="jytqhautls" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#jytqhautls 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;
}

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

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

#jytqhautls .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;
}

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

#jytqhautls .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;
}

#jytqhautls .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;
}

#jytqhautls .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;
}

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

#jytqhautls .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;
}

#jytqhautls .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;
}

#jytqhautls .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;
}

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

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

#jytqhautls .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%;
}

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

#jytqhautls .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;
}

#jytqhautls .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;
}

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

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

#jytqhautls .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#jytqhautls .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;
}

#jytqhautls .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;
}

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

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

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

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

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

#jytqhautls .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;
}

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

#jytqhautls .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;
}

#jytqhautls .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;
}

#jytqhautls .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#jytqhautls .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;
}

#jytqhautls .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;
}

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

#jytqhautls .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#jytqhautls 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R15 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Franz hat das Nettovermögen (in k€) von 5 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(10 000, 2 000, 6 000, 1 000, 1 000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.575:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1 000, 1 000, 2 000, 6 000, 10 000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="ggurruxclz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ggurruxclz 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;
}

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

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

#ggurruxclz .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;
}

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

#ggurruxclz .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;
}

#ggurruxclz .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;
}

#ggurruxclz .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;
}

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

#ggurruxclz .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;
}

#ggurruxclz .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;
}

#ggurruxclz .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;
}

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

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

#ggurruxclz .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%;
}

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

#ggurruxclz .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;
}

#ggurruxclz .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;
}

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

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

#ggurruxclz .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#ggurruxclz .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;
}

#ggurruxclz .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;
}

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

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

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

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

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

#ggurruxclz .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;
}

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

#ggurruxclz .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;
}

#ggurruxclz .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;
}

#ggurruxclz .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ggurruxclz .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;
}

#ggurruxclz .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;
}

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

#ggurruxclz .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#ggurruxclz 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">2 000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">6 000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAxMCQ="><span class='gt_from_md'>\(3 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.3000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10 000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20 000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.15\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.15 - (5 + 1)}{5}
    = \frac{8.3 - 6}{5}
    = \frac{2.3}{5}
    = 0.46\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.46}{0.8} = 0.575}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R16 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Peter hat den Jahresumsatz (in Mio. €) von 5 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(3 000, 1 000, 10 000, 1 000, 5 000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.55:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1 000, 1 000, 3 000, 5 000, 10 000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="vrlgrsyhtp" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#vrlgrsyhtp 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;
}

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

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

#vrlgrsyhtp .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;
}

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

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

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

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

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

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

#vrlgrsyhtp .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%;
}

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

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

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

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

#vrlgrsyhtp .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

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

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

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

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

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

#vrlgrsyhtp .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;
}

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

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#vrlgrsyhtp .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;
}

#vrlgrsyhtp .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;
}

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

#vrlgrsyhtp .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#vrlgrsyhtp 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">3 000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.4500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">5 000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.0000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10 000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20 000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.1\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.1 - (5 + 1)}{5}
    = \frac{8.2 - 6}{5}
    = \frac{2.2}{5}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.8} = 0.55}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R17 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Sebastian hat den Jahresumsatz (in Mio. €) von 10 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(100, 100, 100, 100, 100, 500, 300, 100, 100, 500\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.411:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 100, 100, 100, 100, 100, 300, 500, 500)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="hdrtehrnfu" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#hdrtehrnfu 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;
}

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

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

#hdrtehrnfu .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;
}

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

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

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

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

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

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

#hdrtehrnfu .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%;
}

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

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

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

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

#hdrtehrnfu .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

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

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

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

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

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

#hdrtehrnfu .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;
}

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

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

#hdrtehrnfu .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#hdrtehrnfu .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;
}

#hdrtehrnfu .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;
}

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

#hdrtehrnfu .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#hdrtehrnfu 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">2.2500</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.3500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.35\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.35 - (10 + 1)}{10}
    = \frac{14.7 - 11}{10}
    = \frac{3.7}{10}
    = 0.37\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.37}{0.9} = 0.411}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R18 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Franz hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.01, 0.01, 0.01, 0.06, 0.01\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.5:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.01, 0.01, 0.01, 0.01, 0.06)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 0.1\)</span>)</p>
<div id="izrinizxgp" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#izrinizxgp 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;
}

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

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

#izrinizxgp .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;
}

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

#izrinizxgp .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;
}

#izrinizxgp .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;
}

#izrinizxgp .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;
}

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

#izrinizxgp .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;
}

#izrinizxgp .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;
}

#izrinizxgp .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;
}

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

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

#izrinizxgp .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%;
}

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

#izrinizxgp .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;
}

#izrinizxgp .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;
}

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

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

#izrinizxgp .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#izrinizxgp .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;
}

#izrinizxgp .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;
}

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

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

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

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

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

#izrinizxgp .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;
}

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

#izrinizxgp .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;
}

#izrinizxgp .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;
}

#izrinizxgp .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#izrinizxgp .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;
}

#izrinizxgp .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;
}

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

#izrinizxgp .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#izrinizxgp 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.06</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyA1JA=="><span class='gt_from_md'>\(3 / 5\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.6000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">3.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">0.10</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.0000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4 - (5 + 1)}{5}
    = \frac{8 - 6}{5}
    = \frac{2}{5}
    = 0.4\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.4}{0.8} = 0.5}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R19 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Thomas hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(0.02, 0.10, 0.01, 0.01, 0.03, 0.01, 0.01, 0.01\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.543:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.01, 0.01, 0.01, 0.01, 0.01, 0.02, 0.03, 0.10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 0.2\)</span>)</p>
<div id="vbhssoohej" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#vbhssoohej 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;
}

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

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

#vbhssoohej .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;
}

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

#vbhssoohej .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;
}

#vbhssoohej .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;
}

#vbhssoohej .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;
}

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

#vbhssoohej .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;
}

#vbhssoohej .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;
}

#vbhssoohej .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;
}

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

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

#vbhssoohej .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%;
}

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

#vbhssoohej .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;
}

#vbhssoohej .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;
}

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

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

#vbhssoohej .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#vbhssoohej .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;
}

#vbhssoohej .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;
}

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

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

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

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

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

#vbhssoohej .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;
}

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

#vbhssoohej .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;
}

#vbhssoohej .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;
}

#vbhssoohej .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#vbhssoohej .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;
}

#vbhssoohej .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;
}

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

#vbhssoohej .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#vbhssoohej 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.02</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.03</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.10</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">0.20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.4000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.4 - (8 + 1)}{8}
    = \frac{12.8 - 9}{8}
    = \frac{3.8}{8}
    = 0.475\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.475}{0.875} = 0.543}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R20 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Sebastian hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(100, 100, 300, 400, 300, 400, 200, 200\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 200, 200, 300, 300, 400, 400)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="xlmrnfngca" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#xlmrnfngca 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;
}

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

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

#xlmrnfngca .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;
}

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

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

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

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

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

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

#xlmrnfngca .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%;
}

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

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

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

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

#xlmrnfngca .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

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

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

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

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

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

#xlmrnfngca .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;
}

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

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

#xlmrnfngca .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#xlmrnfngca .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;
}

#xlmrnfngca .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;
}

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

#xlmrnfngca .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#xlmrnfngca 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R21 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alfons hat das Nettovermögen (in k€) von 5 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(5, 3, 10, 1, 1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.55:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 3, 5, 10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="uriiyulimh" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#uriiyulimh 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;
}

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

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

#uriiyulimh .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;
}

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

#uriiyulimh .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;
}

#uriiyulimh .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;
}

#uriiyulimh .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;
}

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

#uriiyulimh .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;
}

#uriiyulimh .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;
}

#uriiyulimh .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;
}

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

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

#uriiyulimh .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%;
}

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

#uriiyulimh .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;
}

#uriiyulimh .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;
}

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

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

#uriiyulimh .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#uriiyulimh .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;
}

#uriiyulimh .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;
}

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

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

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

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

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

#uriiyulimh .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;
}

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

#uriiyulimh .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;
}

#uriiyulimh .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;
}

#uriiyulimh .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#uriiyulimh .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;
}

#uriiyulimh .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;
}

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

#uriiyulimh .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#uriiyulimh 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.4500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">5</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.0000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.1\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.1 - (5 + 1)}{5}
    = \frac{8.2 - 6}{5}
    = \frac{2.2}{5}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.8} = 0.55}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R22 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Peter hat das Jahreseinkommen (in T€) von 8 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.1, 0.1, 0.2, 0.1, 0.3, 0.1, 1.0\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.543:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.3, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="dtyivxeakm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#dtyivxeakm 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;
}

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

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

#dtyivxeakm .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;
}

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

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

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

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

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

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

#dtyivxeakm .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%;
}

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

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

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

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

#dtyivxeakm .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

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

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

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

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

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

#dtyivxeakm .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;
}

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

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

#dtyivxeakm .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#dtyivxeakm .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;
}

#dtyivxeakm .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;
}

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

#dtyivxeakm .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#dtyivxeakm 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.4000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.4 - (8 + 1)}{8}
    = \frac{12.8 - 9}{8}
    = \frac{3.8}{8}
    = 0.475\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.475}{0.875} = 0.543}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R23 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Korbinian hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.3, 0.4, 0.1, 0.2, 0.3, 0.2, 0.4\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="cymnrfzyay" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#cymnrfzyay 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;
}

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

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

#cymnrfzyay .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;
}

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

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

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

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

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

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

#cymnrfzyay .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%;
}

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

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

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

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

#cymnrfzyay .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

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

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

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

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

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

#cymnrfzyay .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;
}

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

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

#cymnrfzyay .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#cymnrfzyay .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;
}

#cymnrfzyay .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;
}

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

#cymnrfzyay .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#cymnrfzyay 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R24 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.03, 0.04, 0.04, 0.02, 0.02, 0.03, 0.01, 0.01\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.01, 0.01, 0.02, 0.02, 0.03, 0.03, 0.04, 0.04)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 0.2\)</span>)</p>
<div id="zmgptywhup" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#zmgptywhup 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;
}

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

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

#zmgptywhup .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;
}

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

#zmgptywhup .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;
}

#zmgptywhup .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;
}

#zmgptywhup .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;
}

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

#zmgptywhup .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;
}

#zmgptywhup .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;
}

#zmgptywhup .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;
}

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

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

#zmgptywhup .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%;
}

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

#zmgptywhup .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;
}

#zmgptywhup .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;
}

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

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

#zmgptywhup .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#zmgptywhup .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;
}

#zmgptywhup .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;
}

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

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

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

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

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

#zmgptywhup .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;
}

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

#zmgptywhup .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;
}

#zmgptywhup .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;
}

#zmgptywhup .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#zmgptywhup .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;
}

#zmgptywhup .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;
}

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

#zmgptywhup .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#zmgptywhup 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.01</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.02</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.02</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.03</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.03</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.04</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.04</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">0.20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R25 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat den Jahresumsatz (in Mio. €) von 5 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(100, 200, 400, 200, 100\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.35:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 200, 200, 400)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 1000\)</span>)</p>
<div id="ycdomemkut" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ycdomemkut 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;
}

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

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

#ycdomemkut .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;
}

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

#ycdomemkut .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;
}

#ycdomemkut .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;
}

#ycdomemkut .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;
}

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

#ycdomemkut .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;
}

#ycdomemkut .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;
}

#ycdomemkut .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;
}

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

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

#ycdomemkut .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%;
}

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

#ycdomemkut .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;
}

#ycdomemkut .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;
}

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

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

#ycdomemkut .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#ycdomemkut .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;
}

#ycdomemkut .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;
}

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

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

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

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

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

#ycdomemkut .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;
}

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

#ycdomemkut .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;
}

#ycdomemkut .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;
}

#ycdomemkut .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ycdomemkut .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;
}

#ycdomemkut .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;
}

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

#ycdomemkut .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#ycdomemkut 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">1000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">3.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 3.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 3.7 - (5 + 1)}{5}
    = \frac{7.4 - 6}{5}
    = \frac{1.4}{5}
    = 0.28\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.28}{0.8} = 0.35}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R26 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alois hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.4, 0.4, 0.1, 0.2, 0.3, 0.1, 0.3, 0.2\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="rbopfnteir" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#rbopfnteir 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;
}

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

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

#rbopfnteir .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;
}

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

#rbopfnteir .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;
}

#rbopfnteir .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;
}

#rbopfnteir .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;
}

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

#rbopfnteir .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;
}

#rbopfnteir .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;
}

#rbopfnteir .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;
}

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

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

#rbopfnteir .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%;
}

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

#rbopfnteir .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;
}

#rbopfnteir .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;
}

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

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

#rbopfnteir .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#rbopfnteir .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;
}

#rbopfnteir .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;
}

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

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

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

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

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

#rbopfnteir .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;
}

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

#rbopfnteir .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;
}

#rbopfnteir .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;
}

#rbopfnteir .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#rbopfnteir .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;
}

#rbopfnteir .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;
}

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

#rbopfnteir .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#rbopfnteir .gt_indent_5 {
  text-indent: 25px;
}

#rbopfnteir .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#rbopfnteir 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R27 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Heinrich hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.2, 1.0, 0.2, 0.5, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.525:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.2, 0.2, 0.5, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="fjkhifwdje" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#fjkhifwdje 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;
}

#fjkhifwdje thead, #fjkhifwdje tbody, #fjkhifwdje tfoot, #fjkhifwdje tr, #fjkhifwdje td, #fjkhifwdje th {
  border-style: none;
}

#fjkhifwdje p {
  margin: 0;
  padding: 0;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#fjkhifwdje .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#fjkhifwdje .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%;
}

#fjkhifwdje .gt_spanner_row {
  border-bottom-style: hidden;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_from_md > :first-child {
  margin-top: 0;
}

#fjkhifwdje .gt_from_md > :last-child {
  margin-bottom: 0;
}

#fjkhifwdje .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_row_group_first td {
  border-top-width: 2px;
}

#fjkhifwdje .gt_row_group_first th {
  border-top-width: 2px;
}

#fjkhifwdje .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fjkhifwdje .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#fjkhifwdje .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#fjkhifwdje .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;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fjkhifwdje .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;
}

#fjkhifwdje .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fjkhifwdje .gt_left {
  text-align: left;
}

#fjkhifwdje .gt_center {
  text-align: center;
}

#fjkhifwdje .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#fjkhifwdje .gt_font_normal {
  font-weight: normal;
}

#fjkhifwdje .gt_font_bold {
  font-weight: bold;
}

#fjkhifwdje .gt_font_italic {
  font-style: italic;
}

#fjkhifwdje .gt_super {
  font-size: 65%;
}

#fjkhifwdje .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#fjkhifwdje .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#fjkhifwdje .gt_indent_1 {
  text-indent: 5px;
}

#fjkhifwdje .gt_indent_2 {
  text-indent: 10px;
}

#fjkhifwdje .gt_indent_3 {
  text-indent: 15px;
}

#fjkhifwdje .gt_indent_4 {
  text-indent: 20px;
}

#fjkhifwdje .gt_indent_5 {
  text-indent: 25px;
}

#fjkhifwdje .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#fjkhifwdje 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.5</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.0000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.0500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.05\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.05 - (5 + 1)}{5}
    = \frac{8.1 - 6}{5}
    = \frac{2.1}{5}
    = 0.42\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.42}{0.8} = 0.525}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R28 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Karl hat das Jahreseinkommen (in T€) von 8 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.2, 0.2, 0.2, 0.1, 0.1, 0.1, 1.0\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.514:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.2, 0.2, 0.2, 1.0)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="tenrglrbsd" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tenrglrbsd 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;
}

#tenrglrbsd thead, #tenrglrbsd tbody, #tenrglrbsd tfoot, #tenrglrbsd tr, #tenrglrbsd td, #tenrglrbsd th {
  border-style: none;
}

#tenrglrbsd p {
  margin: 0;
  padding: 0;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#tenrglrbsd .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#tenrglrbsd .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%;
}

#tenrglrbsd .gt_spanner_row {
  border-bottom-style: hidden;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_from_md > :first-child {
  margin-top: 0;
}

#tenrglrbsd .gt_from_md > :last-child {
  margin-bottom: 0;
}

#tenrglrbsd .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_row_group_first td {
  border-top-width: 2px;
}

#tenrglrbsd .gt_row_group_first th {
  border-top-width: 2px;
}

#tenrglrbsd .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tenrglrbsd .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#tenrglrbsd .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#tenrglrbsd .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;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tenrglrbsd .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;
}

#tenrglrbsd .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tenrglrbsd .gt_left {
  text-align: left;
}

#tenrglrbsd .gt_center {
  text-align: center;
}

#tenrglrbsd .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#tenrglrbsd .gt_font_normal {
  font-weight: normal;
}

#tenrglrbsd .gt_font_bold {
  font-weight: bold;
}

#tenrglrbsd .gt_font_italic {
  font-style: italic;
}

#tenrglrbsd .gt_super {
  font-size: 65%;
}

#tenrglrbsd .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#tenrglrbsd .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#tenrglrbsd .gt_indent_1 {
  text-indent: 5px;
}

#tenrglrbsd .gt_indent_2 {
  text-indent: 10px;
}

#tenrglrbsd .gt_indent_3 {
  text-indent: 15px;
}

#tenrglrbsd .gt_indent_4 {
  text-indent: 20px;
}

#tenrglrbsd .gt_indent_5 {
  text-indent: 25px;
}

#tenrglrbsd .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#tenrglrbsd 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1.0</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.3000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.3\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.3 - (8 + 1)}{8}
    = \frac{12.6 - 9}{8}
    = \frac{3.6}{8}
    = 0.45\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.45}{0.875} = 0.514}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R29 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Rupert hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(20, 10, 30, 10, 50, 40, 10, 10, 10, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.389:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 10, 20, 30, 40, 50)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="yvhjtijksz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yvhjtijksz 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;
}

#yvhjtijksz thead, #yvhjtijksz tbody, #yvhjtijksz tfoot, #yvhjtijksz tr, #yvhjtijksz td, #yvhjtijksz th {
  border-style: none;
}

#yvhjtijksz p {
  margin: 0;
  padding: 0;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yvhjtijksz .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yvhjtijksz .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%;
}

#yvhjtijksz .gt_spanner_row {
  border-bottom-style: hidden;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_from_md > :first-child {
  margin-top: 0;
}

#yvhjtijksz .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yvhjtijksz .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_row_group_first td {
  border-top-width: 2px;
}

#yvhjtijksz .gt_row_group_first th {
  border-top-width: 2px;
}

#yvhjtijksz .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yvhjtijksz .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yvhjtijksz .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#yvhjtijksz .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;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yvhjtijksz .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;
}

#yvhjtijksz .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yvhjtijksz .gt_left {
  text-align: left;
}

#yvhjtijksz .gt_center {
  text-align: center;
}

#yvhjtijksz .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yvhjtijksz .gt_font_normal {
  font-weight: normal;
}

#yvhjtijksz .gt_font_bold {
  font-weight: bold;
}

#yvhjtijksz .gt_font_italic {
  font-style: italic;
}

#yvhjtijksz .gt_super {
  font-size: 65%;
}

#yvhjtijksz .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yvhjtijksz .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yvhjtijksz .gt_indent_1 {
  text-indent: 5px;
}

#yvhjtijksz .gt_indent_2 {
  text-indent: 10px;
}

#yvhjtijksz .gt_indent_3 {
  text-indent: 15px;
}

#yvhjtijksz .gt_indent_4 {
  text-indent: 20px;
}

#yvhjtijksz .gt_indent_5 {
  text-indent: 25px;
}

#yvhjtijksz .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yvhjtijksz 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.2500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.25\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.25 - (10 + 1)}{10}
    = \frac{14.5 - 11}{10}
    = \frac{3.5}{10}
    = 0.35\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.35}{0.9} = 0.389}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R30 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Florian hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(2, 3, 1, 10, 1, 1, 1, 1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.543:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 1, 1, 1, 2, 3, 10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="ttxlulkoqt" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ttxlulkoqt 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;
}

#ttxlulkoqt thead, #ttxlulkoqt tbody, #ttxlulkoqt tfoot, #ttxlulkoqt tr, #ttxlulkoqt td, #ttxlulkoqt th {
  border-style: none;
}

#ttxlulkoqt p {
  margin: 0;
  padding: 0;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ttxlulkoqt .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ttxlulkoqt .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%;
}

#ttxlulkoqt .gt_spanner_row {
  border-bottom-style: hidden;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_from_md > :first-child {
  margin-top: 0;
}

#ttxlulkoqt .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ttxlulkoqt .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_row_group_first td {
  border-top-width: 2px;
}

#ttxlulkoqt .gt_row_group_first th {
  border-top-width: 2px;
}

#ttxlulkoqt .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ttxlulkoqt .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ttxlulkoqt .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ttxlulkoqt .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;
}

#ttxlulkoqt .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ttxlulkoqt .gt_left {
  text-align: left;
}

#ttxlulkoqt .gt_center {
  text-align: center;
}

#ttxlulkoqt .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ttxlulkoqt .gt_font_normal {
  font-weight: normal;
}

#ttxlulkoqt .gt_font_bold {
  font-weight: bold;
}

#ttxlulkoqt .gt_font_italic {
  font-style: italic;
}

#ttxlulkoqt .gt_super {
  font-size: 65%;
}

#ttxlulkoqt .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ttxlulkoqt .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ttxlulkoqt .gt_indent_1 {
  text-indent: 5px;
}

#ttxlulkoqt .gt_indent_2 {
  text-indent: 10px;
}

#ttxlulkoqt .gt_indent_3 {
  text-indent: 15px;
}

#ttxlulkoqt .gt_indent_4 {
  text-indent: 20px;
}

#ttxlulkoqt .gt_indent_5 {
  text-indent: 25px;
}

#ttxlulkoqt .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ttxlulkoqt 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">3</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.4000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.4 - (8 + 1)}{8}
    = \frac{12.8 - 9}{8}
    = \frac{3.8}{8}
    = 0.475\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.475}{0.875} = 0.543}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R31 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Heinrich hat den Jahresumsatz (in Mio. €) von 5 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(4 000, 4 000, 1 000, 1 000, 10 000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.525:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1 000, 1 000, 4 000, 4 000, 10 000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="crzlffwxfm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#crzlffwxfm 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;
}

#crzlffwxfm thead, #crzlffwxfm tbody, #crzlffwxfm tfoot, #crzlffwxfm tr, #crzlffwxfm td, #crzlffwxfm th {
  border-style: none;
}

#crzlffwxfm p {
  margin: 0;
  padding: 0;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#crzlffwxfm .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#crzlffwxfm .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%;
}

#crzlffwxfm .gt_spanner_row {
  border-bottom-style: hidden;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_from_md > :first-child {
  margin-top: 0;
}

#crzlffwxfm .gt_from_md > :last-child {
  margin-bottom: 0;
}

#crzlffwxfm .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_row_group_first td {
  border-top-width: 2px;
}

#crzlffwxfm .gt_row_group_first th {
  border-top-width: 2px;
}

#crzlffwxfm .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#crzlffwxfm .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#crzlffwxfm .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#crzlffwxfm .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;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#crzlffwxfm .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;
}

#crzlffwxfm .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#crzlffwxfm .gt_left {
  text-align: left;
}

#crzlffwxfm .gt_center {
  text-align: center;
}

#crzlffwxfm .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#crzlffwxfm .gt_font_normal {
  font-weight: normal;
}

#crzlffwxfm .gt_font_bold {
  font-weight: bold;
}

#crzlffwxfm .gt_font_italic {
  font-style: italic;
}

#crzlffwxfm .gt_super {
  font-size: 65%;
}

#crzlffwxfm .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#crzlffwxfm .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#crzlffwxfm .gt_indent_1 {
  text-indent: 5px;
}

#crzlffwxfm .gt_indent_2 {
  text-indent: 10px;
}

#crzlffwxfm .gt_indent_3 {
  text-indent: 15px;
}

#crzlffwxfm .gt_indent_4 {
  text-indent: 20px;
}

#crzlffwxfm .gt_indent_5 {
  text-indent: 25px;
}

#crzlffwxfm .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#crzlffwxfm 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">4 000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">4 000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10 000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20 000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.0500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.05\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.05 - (5 + 1)}{5}
    = \frac{8.1 - 6}{5}
    = \frac{2.1}{5}
    = 0.42\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.42}{0.8} = 0.525}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R32 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Georg hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(0.4, 0.1, 0.1, 0.1, 0.8, 0.2, 0.2, 0.1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.486:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.2, 0.2, 0.4, 0.8)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="wwhbzdtogj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#wwhbzdtogj 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;
}

#wwhbzdtogj thead, #wwhbzdtogj tbody, #wwhbzdtogj tfoot, #wwhbzdtogj tr, #wwhbzdtogj td, #wwhbzdtogj th {
  border-style: none;
}

#wwhbzdtogj p {
  margin: 0;
  padding: 0;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#wwhbzdtogj .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#wwhbzdtogj .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%;
}

#wwhbzdtogj .gt_spanner_row {
  border-bottom-style: hidden;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_from_md > :first-child {
  margin-top: 0;
}

#wwhbzdtogj .gt_from_md > :last-child {
  margin-bottom: 0;
}

#wwhbzdtogj .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_row_group_first td {
  border-top-width: 2px;
}

#wwhbzdtogj .gt_row_group_first th {
  border-top-width: 2px;
}

#wwhbzdtogj .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wwhbzdtogj .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#wwhbzdtogj .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wwhbzdtogj .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;
}

#wwhbzdtogj .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#wwhbzdtogj .gt_left {
  text-align: left;
}

#wwhbzdtogj .gt_center {
  text-align: center;
}

#wwhbzdtogj .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#wwhbzdtogj .gt_font_normal {
  font-weight: normal;
}

#wwhbzdtogj .gt_font_bold {
  font-weight: bold;
}

#wwhbzdtogj .gt_font_italic {
  font-style: italic;
}

#wwhbzdtogj .gt_super {
  font-size: 65%;
}

#wwhbzdtogj .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#wwhbzdtogj .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#wwhbzdtogj .gt_indent_1 {
  text-indent: 5px;
}

#wwhbzdtogj .gt_indent_2 {
  text-indent: 10px;
}

#wwhbzdtogj .gt_indent_3 {
  text-indent: 15px;
}

#wwhbzdtogj .gt_indent_4 {
  text-indent: 20px;
}

#wwhbzdtogj .gt_indent_5 {
  text-indent: 25px;
}

#wwhbzdtogj .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#wwhbzdtogj 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.8</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">3.2000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.2000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.2\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.2 - (8 + 1)}{8}
    = \frac{12.4 - 9}{8}
    = \frac{3.4}{8}
    = 0.425\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.425}{0.875} = 0.486}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R33 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Franz hat den Jahresumsatz (in Mio. €) von 10 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(1, 10, 2, 1, 1, 1, 1, 1, 1, 1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 1, 1, 1, 1, 1, 1, 2, 10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="gamgcknzab" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#gamgcknzab 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;
}

#gamgcknzab thead, #gamgcknzab tbody, #gamgcknzab tfoot, #gamgcknzab tr, #gamgcknzab td, #gamgcknzab th {
  border-style: none;
}

#gamgcknzab p {
  margin: 0;
  padding: 0;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#gamgcknzab .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#gamgcknzab .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%;
}

#gamgcknzab .gt_spanner_row {
  border-bottom-style: hidden;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_from_md > :first-child {
  margin-top: 0;
}

#gamgcknzab .gt_from_md > :last-child {
  margin-bottom: 0;
}

#gamgcknzab .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_row_group_first td {
  border-top-width: 2px;
}

#gamgcknzab .gt_row_group_first th {
  border-top-width: 2px;
}

#gamgcknzab .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#gamgcknzab .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#gamgcknzab .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#gamgcknzab .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;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#gamgcknzab .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;
}

#gamgcknzab .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#gamgcknzab .gt_left {
  text-align: left;
}

#gamgcknzab .gt_center {
  text-align: center;
}

#gamgcknzab .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#gamgcknzab .gt_font_normal {
  font-weight: normal;
}

#gamgcknzab .gt_font_bold {
  font-weight: bold;
}

#gamgcknzab .gt_font_italic {
  font-style: italic;
}

#gamgcknzab .gt_super {
  font-size: 65%;
}

#gamgcknzab .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#gamgcknzab .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#gamgcknzab .gt_indent_1 {
  text-indent: 5px;
}

#gamgcknzab .gt_indent_2 {
  text-indent: 10px;
}

#gamgcknzab .gt_indent_3 {
  text-indent: 15px;
}

#gamgcknzab .gt_indent_4 {
  text-indent: 20px;
}

#gamgcknzab .gt_indent_5 {
  text-indent: 25px;
}

#gamgcknzab .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#gamgcknzab 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R34 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(10, 40, 20, 50, 10, 30, 10, 10, 10, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.389:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 10, 20, 30, 40, 50)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="dxfgjgvdgq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#dxfgjgvdgq 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;
}

#dxfgjgvdgq thead, #dxfgjgvdgq tbody, #dxfgjgvdgq tfoot, #dxfgjgvdgq tr, #dxfgjgvdgq td, #dxfgjgvdgq th {
  border-style: none;
}

#dxfgjgvdgq p {
  margin: 0;
  padding: 0;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#dxfgjgvdgq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#dxfgjgvdgq .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%;
}

#dxfgjgvdgq .gt_spanner_row {
  border-bottom-style: hidden;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_from_md > :first-child {
  margin-top: 0;
}

#dxfgjgvdgq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#dxfgjgvdgq .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_row_group_first td {
  border-top-width: 2px;
}

#dxfgjgvdgq .gt_row_group_first th {
  border-top-width: 2px;
}

#dxfgjgvdgq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#dxfgjgvdgq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#dxfgjgvdgq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#dxfgjgvdgq .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;
}

#dxfgjgvdgq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#dxfgjgvdgq .gt_left {
  text-align: left;
}

#dxfgjgvdgq .gt_center {
  text-align: center;
}

#dxfgjgvdgq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#dxfgjgvdgq .gt_font_normal {
  font-weight: normal;
}

#dxfgjgvdgq .gt_font_bold {
  font-weight: bold;
}

#dxfgjgvdgq .gt_font_italic {
  font-style: italic;
}

#dxfgjgvdgq .gt_super {
  font-size: 65%;
}

#dxfgjgvdgq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#dxfgjgvdgq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#dxfgjgvdgq .gt_indent_1 {
  text-indent: 5px;
}

#dxfgjgvdgq .gt_indent_2 {
  text-indent: 10px;
}

#dxfgjgvdgq .gt_indent_3 {
  text-indent: 15px;
}

#dxfgjgvdgq .gt_indent_4 {
  text-indent: 20px;
}

#dxfgjgvdgq .gt_indent_5 {
  text-indent: 25px;
}

#dxfgjgvdgq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#dxfgjgvdgq 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.2500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.25\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.25 - (10 + 1)}{10}
    = \frac{14.5 - 11}{10}
    = \frac{3.5}{10}
    = 0.35\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.35}{0.9} = 0.389}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R35 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Peter hat das Jahreseinkommen (in T€) von 8 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(800, 100, 100, 400, 100, 200, 200, 100\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.486:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 100, 100, 200, 200, 400, 800)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="bhdssitfrl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#bhdssitfrl 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;
}

#bhdssitfrl thead, #bhdssitfrl tbody, #bhdssitfrl tfoot, #bhdssitfrl tr, #bhdssitfrl td, #bhdssitfrl th {
  border-style: none;
}

#bhdssitfrl p {
  margin: 0;
  padding: 0;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#bhdssitfrl .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#bhdssitfrl .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%;
}

#bhdssitfrl .gt_spanner_row {
  border-bottom-style: hidden;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_from_md > :first-child {
  margin-top: 0;
}

#bhdssitfrl .gt_from_md > :last-child {
  margin-bottom: 0;
}

#bhdssitfrl .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_row_group_first td {
  border-top-width: 2px;
}

#bhdssitfrl .gt_row_group_first th {
  border-top-width: 2px;
}

#bhdssitfrl .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#bhdssitfrl .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#bhdssitfrl .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#bhdssitfrl .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;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#bhdssitfrl .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;
}

#bhdssitfrl .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#bhdssitfrl .gt_left {
  text-align: left;
}

#bhdssitfrl .gt_center {
  text-align: center;
}

#bhdssitfrl .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#bhdssitfrl .gt_font_normal {
  font-weight: normal;
}

#bhdssitfrl .gt_font_bold {
  font-weight: bold;
}

#bhdssitfrl .gt_font_italic {
  font-style: italic;
}

#bhdssitfrl .gt_super {
  font-size: 65%;
}

#bhdssitfrl .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#bhdssitfrl .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#bhdssitfrl .gt_indent_1 {
  text-indent: 5px;
}

#bhdssitfrl .gt_indent_2 {
  text-indent: 10px;
}

#bhdssitfrl .gt_indent_3 {
  text-indent: 15px;
}

#bhdssitfrl .gt_indent_4 {
  text-indent: 20px;
}

#bhdssitfrl .gt_indent_5 {
  text-indent: 25px;
}

#bhdssitfrl .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#bhdssitfrl 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">200</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">400</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">800</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">3.2000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.2000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.2\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.2 - (8 + 1)}{8}
    = \frac{12.4 - 9}{8}
    = \frac{3.4}{8}
    = 0.425\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.425}{0.875} = 0.486}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R36 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Matthias hat das Jahreseinkommen (in T€) von 8 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(20, 10, 10, 10, 100, 10, 30, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.543:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 20, 30, 100)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="sbatropsmg" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#sbatropsmg 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;
}

#sbatropsmg thead, #sbatropsmg tbody, #sbatropsmg tfoot, #sbatropsmg tr, #sbatropsmg td, #sbatropsmg th {
  border-style: none;
}

#sbatropsmg p {
  margin: 0;
  padding: 0;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#sbatropsmg .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#sbatropsmg .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%;
}

#sbatropsmg .gt_spanner_row {
  border-bottom-style: hidden;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_from_md > :first-child {
  margin-top: 0;
}

#sbatropsmg .gt_from_md > :last-child {
  margin-bottom: 0;
}

#sbatropsmg .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_row_group_first td {
  border-top-width: 2px;
}

#sbatropsmg .gt_row_group_first th {
  border-top-width: 2px;
}

#sbatropsmg .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#sbatropsmg .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#sbatropsmg .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#sbatropsmg .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;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#sbatropsmg .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;
}

#sbatropsmg .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#sbatropsmg .gt_left {
  text-align: left;
}

#sbatropsmg .gt_center {
  text-align: center;
}

#sbatropsmg .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#sbatropsmg .gt_font_normal {
  font-weight: normal;
}

#sbatropsmg .gt_font_bold {
  font-weight: bold;
}

#sbatropsmg .gt_font_italic {
  font-style: italic;
}

#sbatropsmg .gt_super {
  font-size: 65%;
}

#sbatropsmg .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#sbatropsmg .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#sbatropsmg .gt_indent_1 {
  text-indent: 5px;
}

#sbatropsmg .gt_indent_2 {
  text-indent: 10px;
}

#sbatropsmg .gt_indent_3 {
  text-indent: 15px;
}

#sbatropsmg .gt_indent_4 {
  text-indent: 20px;
}

#sbatropsmg .gt_indent_5 {
  text-indent: 25px;
}

#sbatropsmg .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#sbatropsmg 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.0500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">4.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.4000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.4 - (8 + 1)}{8}
    = \frac{12.8 - 9}{8}
    = \frac{3.8}{8}
    = 0.475\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.475}{0.875} = 0.543}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R37 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(40, 40, 30, 10, 20, 20, 30, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 20, 20, 30, 30, 40, 40)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="kqatwbbfzk" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#kqatwbbfzk 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;
}

#kqatwbbfzk thead, #kqatwbbfzk tbody, #kqatwbbfzk tfoot, #kqatwbbfzk tr, #kqatwbbfzk td, #kqatwbbfzk th {
  border-style: none;
}

#kqatwbbfzk p {
  margin: 0;
  padding: 0;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#kqatwbbfzk .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#kqatwbbfzk .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%;
}

#kqatwbbfzk .gt_spanner_row {
  border-bottom-style: hidden;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_from_md > :first-child {
  margin-top: 0;
}

#kqatwbbfzk .gt_from_md > :last-child {
  margin-bottom: 0;
}

#kqatwbbfzk .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_row_group_first td {
  border-top-width: 2px;
}

#kqatwbbfzk .gt_row_group_first th {
  border-top-width: 2px;
}

#kqatwbbfzk .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kqatwbbfzk .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#kqatwbbfzk .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kqatwbbfzk .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;
}

#kqatwbbfzk .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kqatwbbfzk .gt_left {
  text-align: left;
}

#kqatwbbfzk .gt_center {
  text-align: center;
}

#kqatwbbfzk .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#kqatwbbfzk .gt_font_normal {
  font-weight: normal;
}

#kqatwbbfzk .gt_font_bold {
  font-weight: bold;
}

#kqatwbbfzk .gt_font_italic {
  font-style: italic;
}

#kqatwbbfzk .gt_super {
  font-size: 65%;
}

#kqatwbbfzk .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#kqatwbbfzk .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#kqatwbbfzk .gt_indent_1 {
  text-indent: 5px;
}

#kqatwbbfzk .gt_indent_2 {
  text-indent: 10px;
}

#kqatwbbfzk .gt_indent_3 {
  text-indent: 15px;
}

#kqatwbbfzk .gt_indent_4 {
  text-indent: 20px;
}

#kqatwbbfzk .gt_indent_5 {
  text-indent: 25px;
}

#kqatwbbfzk .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#kqatwbbfzk 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R38 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alois hat den Jahresumsatz (in Mio. €) von 8 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(2, 8, 1, 4, 2, 1, 1, 1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.486:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 1, 1, 2, 2, 4, 8)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="oxezfwpjpr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#oxezfwpjpr 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;
}

#oxezfwpjpr thead, #oxezfwpjpr tbody, #oxezfwpjpr tfoot, #oxezfwpjpr tr, #oxezfwpjpr td, #oxezfwpjpr th {
  border-style: none;
}

#oxezfwpjpr p {
  margin: 0;
  padding: 0;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#oxezfwpjpr .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#oxezfwpjpr .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%;
}

#oxezfwpjpr .gt_spanner_row {
  border-bottom-style: hidden;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_from_md > :first-child {
  margin-top: 0;
}

#oxezfwpjpr .gt_from_md > :last-child {
  margin-bottom: 0;
}

#oxezfwpjpr .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_row_group_first td {
  border-top-width: 2px;
}

#oxezfwpjpr .gt_row_group_first th {
  border-top-width: 2px;
}

#oxezfwpjpr .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#oxezfwpjpr .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#oxezfwpjpr .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#oxezfwpjpr .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;
}

#oxezfwpjpr .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#oxezfwpjpr .gt_left {
  text-align: left;
}

#oxezfwpjpr .gt_center {
  text-align: center;
}

#oxezfwpjpr .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#oxezfwpjpr .gt_font_normal {
  font-weight: normal;
}

#oxezfwpjpr .gt_font_bold {
  font-weight: bold;
}

#oxezfwpjpr .gt_font_italic {
  font-style: italic;
}

#oxezfwpjpr .gt_super {
  font-size: 65%;
}

#oxezfwpjpr .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#oxezfwpjpr .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#oxezfwpjpr .gt_indent_1 {
  text-indent: 5px;
}

#oxezfwpjpr .gt_indent_2 {
  text-indent: 10px;
}

#oxezfwpjpr .gt_indent_3 {
  text-indent: 15px;
}

#oxezfwpjpr .gt_indent_4 {
  text-indent: 20px;
}

#oxezfwpjpr .gt_indent_5 {
  text-indent: 25px;
}

#oxezfwpjpr .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#oxezfwpjpr 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDIgLyA1JA=="><span class='gt_from_md'>\(2 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.4000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">3.2000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.2000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 6.2\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.2 - (8 + 1)}{8}
    = \frac{12.4 - 9}{8}
    = \frac{3.4}{8}
    = 0.425\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.425}{0.875} = 0.486}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R39 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Korbinian hat das Nettovermögen (in k€) von 10 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(100, 100, 100, 500, 100, 500, 100, 100, 100, 300\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.411:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 100, 100, 100, 100, 100, 300, 500, 500)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="fzvgeeusck" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#fzvgeeusck 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;
}

#fzvgeeusck thead, #fzvgeeusck tbody, #fzvgeeusck tfoot, #fzvgeeusck tr, #fzvgeeusck td, #fzvgeeusck th {
  border-style: none;
}

#fzvgeeusck p {
  margin: 0;
  padding: 0;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#fzvgeeusck .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#fzvgeeusck .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%;
}

#fzvgeeusck .gt_spanner_row {
  border-bottom-style: hidden;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_from_md > :first-child {
  margin-top: 0;
}

#fzvgeeusck .gt_from_md > :last-child {
  margin-bottom: 0;
}

#fzvgeeusck .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_row_group_first td {
  border-top-width: 2px;
}

#fzvgeeusck .gt_row_group_first th {
  border-top-width: 2px;
}

#fzvgeeusck .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fzvgeeusck .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#fzvgeeusck .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#fzvgeeusck .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;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fzvgeeusck .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;
}

#fzvgeeusck .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#fzvgeeusck .gt_left {
  text-align: left;
}

#fzvgeeusck .gt_center {
  text-align: center;
}

#fzvgeeusck .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#fzvgeeusck .gt_font_normal {
  font-weight: normal;
}

#fzvgeeusck .gt_font_bold {
  font-weight: bold;
}

#fzvgeeusck .gt_font_italic {
  font-style: italic;
}

#fzvgeeusck .gt_super {
  font-size: 65%;
}

#fzvgeeusck .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#fzvgeeusck .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#fzvgeeusck .gt_indent_1 {
  text-indent: 5px;
}

#fzvgeeusck .gt_indent_2 {
  text-indent: 10px;
}

#fzvgeeusck .gt_indent_3 {
  text-indent: 15px;
}

#fzvgeeusck .gt_indent_4 {
  text-indent: 20px;
}

#fzvgeeusck .gt_indent_5 {
  text-indent: 25px;
}

#fzvgeeusck .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#fzvgeeusck 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">2.2500</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.3500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.35\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.35 - (10 + 1)}{10}
    = \frac{14.7 - 11}{10}
    = \frac{3.7}{10}
    = 0.37\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.37}{0.9} = 0.411}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R40 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Bernhard hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(10, 3, 1, 1, 5\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.55:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 3, 5, 10)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="ngwtoabxto" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ngwtoabxto 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;
}

#ngwtoabxto thead, #ngwtoabxto tbody, #ngwtoabxto tfoot, #ngwtoabxto tr, #ngwtoabxto td, #ngwtoabxto th {
  border-style: none;
}

#ngwtoabxto p {
  margin: 0;
  padding: 0;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ngwtoabxto .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ngwtoabxto .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%;
}

#ngwtoabxto .gt_spanner_row {
  border-bottom-style: hidden;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_from_md > :first-child {
  margin-top: 0;
}

#ngwtoabxto .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ngwtoabxto .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_row_group_first td {
  border-top-width: 2px;
}

#ngwtoabxto .gt_row_group_first th {
  border-top-width: 2px;
}

#ngwtoabxto .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ngwtoabxto .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ngwtoabxto .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ngwtoabxto .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;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ngwtoabxto .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;
}

#ngwtoabxto .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#ngwtoabxto .gt_left {
  text-align: left;
}

#ngwtoabxto .gt_center {
  text-align: center;
}

#ngwtoabxto .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ngwtoabxto .gt_font_normal {
  font-weight: normal;
}

#ngwtoabxto .gt_font_bold {
  font-weight: bold;
}

#ngwtoabxto .gt_font_italic {
  font-style: italic;
}

#ngwtoabxto .gt_super {
  font-size: 65%;
}

#ngwtoabxto .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ngwtoabxto .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ngwtoabxto .gt_indent_1 {
  text-indent: 5px;
}

#ngwtoabxto .gt_indent_2 {
  text-indent: 10px;
}

#ngwtoabxto .gt_indent_3 {
  text-indent: 15px;
}

#ngwtoabxto .gt_indent_4 {
  text-indent: 20px;
}

#ngwtoabxto .gt_indent_5 {
  text-indent: 25px;
}

#ngwtoabxto .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ngwtoabxto 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.4500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">5</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">1.0000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.1000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4.1\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4.1 - (5 + 1)}{5}
    = \frac{8.2 - 6}{5}
    = \frac{2.2}{5}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.8} = 0.55}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R41 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Anton hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(1 000, 1 000, 1 000, 2 000, 10 000, 1 000, 1 000, 1 000, 1 000, 1 000\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 1 000, 2 000, 10 000)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20 000\)</span>)</p>
<div id="yrpzfheaex" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yrpzfheaex 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;
}

#yrpzfheaex thead, #yrpzfheaex tbody, #yrpzfheaex tfoot, #yrpzfheaex tr, #yrpzfheaex td, #yrpzfheaex th {
  border-style: none;
}

#yrpzfheaex p {
  margin: 0;
  padding: 0;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yrpzfheaex .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yrpzfheaex .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%;
}

#yrpzfheaex .gt_spanner_row {
  border-bottom-style: hidden;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_from_md > :first-child {
  margin-top: 0;
}

#yrpzfheaex .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yrpzfheaex .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_row_group_first td {
  border-top-width: 2px;
}

#yrpzfheaex .gt_row_group_first th {
  border-top-width: 2px;
}

#yrpzfheaex .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yrpzfheaex .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yrpzfheaex .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#yrpzfheaex .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;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yrpzfheaex .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;
}

#yrpzfheaex .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yrpzfheaex .gt_left {
  text-align: left;
}

#yrpzfheaex .gt_center {
  text-align: center;
}

#yrpzfheaex .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yrpzfheaex .gt_font_normal {
  font-weight: normal;
}

#yrpzfheaex .gt_font_bold {
  font-weight: bold;
}

#yrpzfheaex .gt_font_italic {
  font-style: italic;
}

#yrpzfheaex .gt_super {
  font-size: 65%;
}

#yrpzfheaex .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yrpzfheaex .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yrpzfheaex .gt_indent_1 {
  text-indent: 5px;
}

#yrpzfheaex .gt_indent_2 {
  text-indent: 10px;
}

#yrpzfheaex .gt_indent_3 {
  text-indent: 15px;
}

#yrpzfheaex .gt_indent_4 {
  text-indent: 20px;
}

#yrpzfheaex .gt_indent_5 {
  text-indent: 25px;
}

#yrpzfheaex .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yrpzfheaex 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">1 000</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">2 000</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">10 000</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20 000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R42 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alois hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(20, 20, 20, 100, 40\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.45:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(20, 20, 20, 40, 100)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="yljyjzyhpu" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yljyjzyhpu 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;
}

#yljyjzyhpu thead, #yljyjzyhpu tbody, #yljyjzyhpu tfoot, #yljyjzyhpu tr, #yljyjzyhpu td, #yljyjzyhpu th {
  border-style: none;
}

#yljyjzyhpu p {
  margin: 0;
  padding: 0;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yljyjzyhpu .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yljyjzyhpu .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%;
}

#yljyjzyhpu .gt_spanner_row {
  border-bottom-style: hidden;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_from_md > :first-child {
  margin-top: 0;
}

#yljyjzyhpu .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yljyjzyhpu .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_row_group_first td {
  border-top-width: 2px;
}

#yljyjzyhpu .gt_row_group_first th {
  border-top-width: 2px;
}

#yljyjzyhpu .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yljyjzyhpu .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yljyjzyhpu .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yljyjzyhpu .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;
}

#yljyjzyhpu .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yljyjzyhpu .gt_left {
  text-align: left;
}

#yljyjzyhpu .gt_center {
  text-align: center;
}

#yljyjzyhpu .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yljyjzyhpu .gt_font_normal {
  font-weight: normal;
}

#yljyjzyhpu .gt_font_bold {
  font-weight: bold;
}

#yljyjzyhpu .gt_font_italic {
  font-style: italic;
}

#yljyjzyhpu .gt_super {
  font-size: 65%;
}

#yljyjzyhpu .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yljyjzyhpu .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yljyjzyhpu .gt_indent_1 {
  text-indent: 5px;
}

#yljyjzyhpu .gt_indent_2 {
  text-indent: 10px;
}

#yljyjzyhpu .gt_indent_3 {
  text-indent: 15px;
}

#yljyjzyhpu .gt_indent_4 {
  text-indent: 20px;
}

#yljyjzyhpu .gt_indent_5 {
  text-indent: 25px;
}

#yljyjzyhpu .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yljyjzyhpu 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">3.9000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 3.9\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 3.9 - (5 + 1)}{5}
    = \frac{7.8 - 6}{5}
    = \frac{1.8}{5}
    = 0.36\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.36}{0.8} = 0.45}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R43 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alois hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(40, 10, 50, 20, 10, 10, 10, 30, 10, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.389:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 10, 20, 30, 40, 50)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="qxcjsykgag" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#qxcjsykgag 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;
}

#qxcjsykgag thead, #qxcjsykgag tbody, #qxcjsykgag tfoot, #qxcjsykgag tr, #qxcjsykgag td, #qxcjsykgag th {
  border-style: none;
}

#qxcjsykgag p {
  margin: 0;
  padding: 0;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#qxcjsykgag .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#qxcjsykgag .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%;
}

#qxcjsykgag .gt_spanner_row {
  border-bottom-style: hidden;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_from_md > :first-child {
  margin-top: 0;
}

#qxcjsykgag .gt_from_md > :last-child {
  margin-bottom: 0;
}

#qxcjsykgag .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_row_group_first td {
  border-top-width: 2px;
}

#qxcjsykgag .gt_row_group_first th {
  border-top-width: 2px;
}

#qxcjsykgag .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qxcjsykgag .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#qxcjsykgag .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#qxcjsykgag .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;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qxcjsykgag .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;
}

#qxcjsykgag .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qxcjsykgag .gt_left {
  text-align: left;
}

#qxcjsykgag .gt_center {
  text-align: center;
}

#qxcjsykgag .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#qxcjsykgag .gt_font_normal {
  font-weight: normal;
}

#qxcjsykgag .gt_font_bold {
  font-weight: bold;
}

#qxcjsykgag .gt_font_italic {
  font-style: italic;
}

#qxcjsykgag .gt_super {
  font-size: 65%;
}

#qxcjsykgag .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#qxcjsykgag .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#qxcjsykgag .gt_indent_1 {
  text-indent: 5px;
}

#qxcjsykgag .gt_indent_2 {
  text-indent: 10px;
}

#qxcjsykgag .gt_indent_3 {
  text-indent: 15px;
}

#qxcjsykgag .gt_indent_4 {
  text-indent: 20px;
}

#qxcjsykgag .gt_indent_5 {
  text-indent: 25px;
}

#qxcjsykgag .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#qxcjsykgag 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">40</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.2500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.25\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.25 - (10 + 1)}{10}
    = \frac{14.5 - 11}{10}
    = \frac{3.5}{10}
    = 0.35\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.35}{0.9} = 0.389}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R44 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Sebastian hat das Nettovermögen (in k€) von 8 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.4, 0.2, 0.2, 0.1, 0.3, 0.4, 0.3\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.286:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2\)</span>)</p>
<div id="vtlzzgurnc" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#vtlzzgurnc 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;
}

#vtlzzgurnc thead, #vtlzzgurnc tbody, #vtlzzgurnc tfoot, #vtlzzgurnc tr, #vtlzzgurnc td, #vtlzzgurnc th {
  border-style: none;
}

#vtlzzgurnc p {
  margin: 0;
  padding: 0;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#vtlzzgurnc .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#vtlzzgurnc .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%;
}

#vtlzzgurnc .gt_spanner_row {
  border-bottom-style: hidden;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_from_md > :first-child {
  margin-top: 0;
}

#vtlzzgurnc .gt_from_md > :last-child {
  margin-bottom: 0;
}

#vtlzzgurnc .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_row_group_first td {
  border-top-width: 2px;
}

#vtlzzgurnc .gt_row_group_first th {
  border-top-width: 2px;
}

#vtlzzgurnc .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#vtlzzgurnc .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#vtlzzgurnc .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#vtlzzgurnc .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;
}

#vtlzzgurnc .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#vtlzzgurnc .gt_left {
  text-align: left;
}

#vtlzzgurnc .gt_center {
  text-align: center;
}

#vtlzzgurnc .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#vtlzzgurnc .gt_font_normal {
  font-weight: normal;
}

#vtlzzgurnc .gt_font_bold {
  font-weight: bold;
}

#vtlzzgurnc .gt_font_italic {
  font-style: italic;
}

#vtlzzgurnc .gt_super {
  font-size: 65%;
}

#vtlzzgurnc .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#vtlzzgurnc .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#vtlzzgurnc .gt_indent_1 {
  text-indent: 5px;
}

#vtlzzgurnc .gt_indent_2 {
  text-indent: 10px;
}

#vtlzzgurnc .gt_indent_3 {
  text-indent: 15px;
}

#vtlzzgurnc .gt_indent_4 {
  text-indent: 20px;
}

#vtlzzgurnc .gt_indent_5 {
  text-indent: 25px;
}

#vtlzzgurnc .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#vtlzzgurnc 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.2</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.7500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">0.3</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">1.4000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">0.4</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.6000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">5.5000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{8} i \cdot p_i \;=\; 5.5\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 5.5 - (8 + 1)}{8}
    = \frac{11 - 9}{8}
    = \frac{2}{8}
    = 0.25\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{7}{8} = 0.875\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.25}{0.875} = 0.286}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R45 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Alfons hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(10, 10, 10, 10, 10, 10, 50, 30, 10, 50\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.411:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 10, 10, 30, 50, 50)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="cdwowroqmw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#cdwowroqmw 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;
}

#cdwowroqmw thead, #cdwowroqmw tbody, #cdwowroqmw tfoot, #cdwowroqmw tr, #cdwowroqmw td, #cdwowroqmw th {
  border-style: none;
}

#cdwowroqmw p {
  margin: 0;
  padding: 0;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#cdwowroqmw .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#cdwowroqmw .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%;
}

#cdwowroqmw .gt_spanner_row {
  border-bottom-style: hidden;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_from_md > :first-child {
  margin-top: 0;
}

#cdwowroqmw .gt_from_md > :last-child {
  margin-bottom: 0;
}

#cdwowroqmw .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_row_group_first td {
  border-top-width: 2px;
}

#cdwowroqmw .gt_row_group_first th {
  border-top-width: 2px;
}

#cdwowroqmw .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#cdwowroqmw .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#cdwowroqmw .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#cdwowroqmw .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;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#cdwowroqmw .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;
}

#cdwowroqmw .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#cdwowroqmw .gt_left {
  text-align: left;
}

#cdwowroqmw .gt_center {
  text-align: center;
}

#cdwowroqmw .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#cdwowroqmw .gt_font_normal {
  font-weight: normal;
}

#cdwowroqmw .gt_font_bold {
  font-weight: bold;
}

#cdwowroqmw .gt_font_italic {
  font-style: italic;
}

#cdwowroqmw .gt_super {
  font-size: 65%;
}

#cdwowroqmw .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#cdwowroqmw .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#cdwowroqmw .gt_indent_1 {
  text-indent: 5px;
}

#cdwowroqmw .gt_indent_2 {
  text-indent: 10px;
}

#cdwowroqmw .gt_indent_3 {
  text-indent: 15px;
}

#cdwowroqmw .gt_indent_4 {
  text-indent: 20px;
}

#cdwowroqmw .gt_indent_5 {
  text-indent: 25px;
}

#cdwowroqmw .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#cdwowroqmw 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">30</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">2.2500</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">50</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.3500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.35\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.35 - (10 + 1)}{10}
    = \frac{14.7 - 11}{10}
    = \frac{3.7}{10}
    = 0.37\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.37}{0.9} = 0.411}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R46 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Korbinian hat das Jahreseinkommen (in T€) von 10 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(2, 2, 1, 4, 1, 2, 4, 1, 1, 2\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.311:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 1, 1, 2, 2, 2, 2, 4, 4)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="hsdpgsegbh" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#hsdpgsegbh 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;
}

#hsdpgsegbh thead, #hsdpgsegbh tbody, #hsdpgsegbh tfoot, #hsdpgsegbh tr, #hsdpgsegbh td, #hsdpgsegbh th {
  border-style: none;
}

#hsdpgsegbh p {
  margin: 0;
  padding: 0;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#hsdpgsegbh .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#hsdpgsegbh .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%;
}

#hsdpgsegbh .gt_spanner_row {
  border-bottom-style: hidden;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_from_md > :first-child {
  margin-top: 0;
}

#hsdpgsegbh .gt_from_md > :last-child {
  margin-bottom: 0;
}

#hsdpgsegbh .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_row_group_first td {
  border-top-width: 2px;
}

#hsdpgsegbh .gt_row_group_first th {
  border-top-width: 2px;
}

#hsdpgsegbh .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#hsdpgsegbh .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#hsdpgsegbh .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#hsdpgsegbh .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;
}

#hsdpgsegbh .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#hsdpgsegbh .gt_left {
  text-align: left;
}

#hsdpgsegbh .gt_center {
  text-align: center;
}

#hsdpgsegbh .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#hsdpgsegbh .gt_font_normal {
  font-weight: normal;
}

#hsdpgsegbh .gt_font_bold {
  font-weight: bold;
}

#hsdpgsegbh .gt_font_italic {
  font-style: italic;
}

#hsdpgsegbh .gt_super {
  font-size: 65%;
}

#hsdpgsegbh .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#hsdpgsegbh .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#hsdpgsegbh .gt_indent_1 {
  text-indent: 5px;
}

#hsdpgsegbh .gt_indent_2 {
  text-indent: 10px;
}

#hsdpgsegbh .gt_indent_3 {
  text-indent: 15px;
}

#hsdpgsegbh .gt_indent_4 {
  text-indent: 20px;
}

#hsdpgsegbh .gt_indent_5 {
  text-indent: 25px;
}

#hsdpgsegbh .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#hsdpgsegbh 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.5000</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">4</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">4</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">6.9000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 6.9\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 6.9 - (10 + 1)}{10}
    = \frac{13.8 - 11}{10}
    = \frac{2.8}{10}
    = 0.28\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.28}{0.9} = 0.311}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R47 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Andreas hat den Jahresumsatz (in Mio. €) von 10 Unternehmen erfasst:</p>
<p><span class="math display">\[x = \bigl(100, 500, 100, 300, 100, 100, 100, 100, 100, 500\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.411:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(100, 100, 100, 100, 100, 100, 100, 300, 500, 500)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 2000\)</span>)</p>
<div id="yepinhxpye" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#yepinhxpye 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;
}

#yepinhxpye thead, #yepinhxpye tbody, #yepinhxpye tfoot, #yepinhxpye tr, #yepinhxpye td, #yepinhxpye th {
  border-style: none;
}

#yepinhxpye p {
  margin: 0;
  padding: 0;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#yepinhxpye .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#yepinhxpye .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%;
}

#yepinhxpye .gt_spanner_row {
  border-bottom-style: hidden;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_from_md > :first-child {
  margin-top: 0;
}

#yepinhxpye .gt_from_md > :last-child {
  margin-bottom: 0;
}

#yepinhxpye .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_row_group_first td {
  border-top-width: 2px;
}

#yepinhxpye .gt_row_group_first th {
  border-top-width: 2px;
}

#yepinhxpye .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yepinhxpye .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#yepinhxpye .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#yepinhxpye .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;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yepinhxpye .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;
}

#yepinhxpye .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#yepinhxpye .gt_left {
  text-align: left;
}

#yepinhxpye .gt_center {
  text-align: center;
}

#yepinhxpye .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#yepinhxpye .gt_font_normal {
  font-weight: normal;
}

#yepinhxpye .gt_font_bold {
  font-weight: bold;
}

#yepinhxpye .gt_font_italic {
  font-style: italic;
}

#yepinhxpye .gt_super {
  font-size: 65%;
}

#yepinhxpye .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#yepinhxpye .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#yepinhxpye .gt_indent_1 {
  text-indent: 5px;
}

#yepinhxpye .gt_indent_2 {
  text-indent: 10px;
}

#yepinhxpye .gt_indent_3 {
  text-indent: 15px;
}

#yepinhxpye .gt_indent_4 {
  text-indent: 20px;
}

#yepinhxpye .gt_indent_5 {
  text-indent: 25px;
}

#yepinhxpye .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#yepinhxpye 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">300</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyAyMCQ="><span class='gt_from_md'>\(3 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">1.2000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">2.2500</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">500</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">2000</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.3500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.35\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.35 - (10 + 1)}{10}
    = \frac{14.7 - 11}{10}
    = \frac{3.7}{10}
    = 0.37\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.37}{0.9} = 0.411}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R48 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Peter hat das Jahreseinkommen (in T€) von 5 Personen erhoben:</p>
<p><span class="math display">\[x = \bigl(0.1, 0.1, 0.1, 0.1, 0.6\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.5:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(0.1, 0.1, 0.1, 0.1, 0.6)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 1\)</span>)</p>
<div id="kyiycvojrr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#kyiycvojrr 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;
}

#kyiycvojrr thead, #kyiycvojrr tbody, #kyiycvojrr tfoot, #kyiycvojrr tr, #kyiycvojrr td, #kyiycvojrr th {
  border-style: none;
}

#kyiycvojrr p {
  margin: 0;
  padding: 0;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#kyiycvojrr .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#kyiycvojrr .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%;
}

#kyiycvojrr .gt_spanner_row {
  border-bottom-style: hidden;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_from_md > :first-child {
  margin-top: 0;
}

#kyiycvojrr .gt_from_md > :last-child {
  margin-bottom: 0;
}

#kyiycvojrr .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_row_group_first td {
  border-top-width: 2px;
}

#kyiycvojrr .gt_row_group_first th {
  border-top-width: 2px;
}

#kyiycvojrr .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kyiycvojrr .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#kyiycvojrr .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#kyiycvojrr .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;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kyiycvojrr .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;
}

#kyiycvojrr .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#kyiycvojrr .gt_left {
  text-align: left;
}

#kyiycvojrr .gt_center {
  text-align: center;
}

#kyiycvojrr .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#kyiycvojrr .gt_font_normal {
  font-weight: normal;
}

#kyiycvojrr .gt_font_bold {
  font-weight: bold;
}

#kyiycvojrr .gt_font_italic {
  font-style: italic;
}

#kyiycvojrr .gt_super {
  font-size: 65%;
}

#kyiycvojrr .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#kyiycvojrr .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#kyiycvojrr .gt_indent_1 {
  text-indent: 5px;
}

#kyiycvojrr .gt_indent_2 {
  text-indent: 10px;
}

#kyiycvojrr .gt_indent_3 {
  text-indent: 15px;
}

#kyiycvojrr .gt_indent_4 {
  text-indent: 20px;
}

#kyiycvojrr .gt_indent_5 {
  text-indent: 25px;
}

#kyiycvojrr .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#kyiycvojrr 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">0.1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">0.6</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDMgLyA1JA=="><span class='gt_from_md'>\(3 / 5\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.6000</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">3.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">1.0</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">4.0000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{5} i \cdot p_i \;=\; 4\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 4 - (5 + 1)}{5}
    = \frac{8 - 6}{5}
    = \frac{2}{5}
    = 0.4\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{4}{5} = 0.8\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.4}{0.8} = 0.5}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R49 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Josef hat das Nettovermögen (in k€) von 10 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(4, 1, 2, 5, 2, 1, 1, 2, 1, 1\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.367:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(1, 1, 1, 1, 1, 2, 2, 2, 4, 5)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 20\)</span>)</p>
<div id="tjqpjlqcnl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tjqpjlqcnl 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;
}

#tjqpjlqcnl thead, #tjqpjlqcnl tbody, #tjqpjlqcnl tfoot, #tjqpjlqcnl tr, #tjqpjlqcnl td, #tjqpjlqcnl th {
  border-style: none;
}

#tjqpjlqcnl p {
  margin: 0;
  padding: 0;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#tjqpjlqcnl .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#tjqpjlqcnl .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%;
}

#tjqpjlqcnl .gt_spanner_row {
  border-bottom-style: hidden;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_from_md > :first-child {
  margin-top: 0;
}

#tjqpjlqcnl .gt_from_md > :last-child {
  margin-bottom: 0;
}

#tjqpjlqcnl .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_row_group_first td {
  border-top-width: 2px;
}

#tjqpjlqcnl .gt_row_group_first th {
  border-top-width: 2px;
}

#tjqpjlqcnl .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjqpjlqcnl .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#tjqpjlqcnl .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjqpjlqcnl .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;
}

#tjqpjlqcnl .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#tjqpjlqcnl .gt_left {
  text-align: left;
}

#tjqpjlqcnl .gt_center {
  text-align: center;
}

#tjqpjlqcnl .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#tjqpjlqcnl .gt_font_normal {
  font-weight: normal;
}

#tjqpjlqcnl .gt_font_bold {
  font-weight: bold;
}

#tjqpjlqcnl .gt_font_italic {
  font-style: italic;
}

#tjqpjlqcnl .gt_super {
  font-size: 65%;
}

#tjqpjlqcnl .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#tjqpjlqcnl .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#tjqpjlqcnl .gt_indent_1 {
  text-indent: 5px;
}

#tjqpjlqcnl .gt_indent_2 {
  text-indent: 10px;
}

#tjqpjlqcnl .gt_indent_3 {
  text-indent: 15px;
}

#tjqpjlqcnl .gt_indent_4 {
  text-indent: 20px;
}

#tjqpjlqcnl .gt_indent_5 {
  text-indent: 25px;
}

#tjqpjlqcnl .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#tjqpjlqcnl 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">1</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.6000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.7000</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">2</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.8000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">4</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA1JA=="><span class='gt_from_md'>\(1 / 5\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.2000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">1.8000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">5</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyA0JA=="><span class='gt_from_md'>\(1 / 4\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.2500</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">2.5000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">20</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.1500</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.15\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.15 - (10 + 1)}{10}
    = \frac{14.3 - 11}{10}
    = \frac{3.3}{10}
    = 0.33\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.33}{0.9} = 0.367}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>


<question type="cloze">
<name>
<text> R50 Q1 : _home_rstudio_spiegel_quizzes_e2f_stat_deskr_gini_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>Anton hat das Nettovermögen (in k€) von 10 Haushalten ermittelt:</p>
<p><span class="math display">\[x = \bigl(10, 10, 10, 20, 10, 100, 10, 10, 10, 10\bigr)\]</span></p>
<p>Berechnen Sie den <strong>normierten Gini-Koeffizienten</strong> <span class="math inline">\(G_*\)</span> mit</p>
<p><span class="math display">\[G = \frac{2\displaystyle\sum_{i=1}^{n} i\,p_i - (n+1)}{n},
\quad p_i = \frac{x_i}{\displaystyle\sum_{i=1}^{n} x_i},
\qquad G_* = \frac{n}{n-1}\cdot G\]</span></p>
<p>Die Lösung ist <span class="math inline">\(G_* =\)</span>  {1:NUMERICAL:=0.489:0.005} (runden Sie den Wert auf <em>drei Dezimalstellen</em>)</p>
</p>]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<p>
<p><strong>Schritt 0:</strong> Urliste sortieren</p>
<p><span class="math display">\[(10, 10, 10, 10, 10, 10, 10, 10, 20, 100)\]</span></p>
<p><strong>Schritt 1:</strong> Anteilswerte <span class="math inline">\(p_i\)</span> und <span class="math inline">\(i \cdot p_i\)</span> (Gesamtsumme: <span class="math inline">\(\sum x_i = 200\)</span>)</p>
<div id="qubjbqgser" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#qubjbqgser 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;
}

#qubjbqgser thead, #qubjbqgser tbody, #qubjbqgser tfoot, #qubjbqgser tr, #qubjbqgser td, #qubjbqgser th {
  border-style: none;
}

#qubjbqgser p {
  margin: 0;
  padding: 0;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#qubjbqgser .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#qubjbqgser .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%;
}

#qubjbqgser .gt_spanner_row {
  border-bottom-style: hidden;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_from_md > :first-child {
  margin-top: 0;
}

#qubjbqgser .gt_from_md > :last-child {
  margin-bottom: 0;
}

#qubjbqgser .gt_row {
  padding-top: 3px;
  padding-bottom: 3px;
  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;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_row_group_first td {
  border-top-width: 2px;
}

#qubjbqgser .gt_row_group_first th {
  border-top-width: 2px;
}

#qubjbqgser .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qubjbqgser .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#qubjbqgser .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#qubjbqgser .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;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qubjbqgser .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;
}

#qubjbqgser .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

#qubjbqgser .gt_left {
  text-align: left;
}

#qubjbqgser .gt_center {
  text-align: center;
}

#qubjbqgser .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#qubjbqgser .gt_font_normal {
  font-weight: normal;
}

#qubjbqgser .gt_font_bold {
  font-weight: bold;
}

#qubjbqgser .gt_font_italic {
  font-style: italic;
}

#qubjbqgser .gt_super {
  font-size: 65%;
}

#qubjbqgser .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#qubjbqgser .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#qubjbqgser .gt_indent_1 {
  text-indent: 5px;
}

#qubjbqgser .gt_indent_2 {
  text-indent: 10px;
}

#qubjbqgser .gt_indent_3 {
  text-indent: 15px;
}

#qubjbqgser .gt_indent_4 {
  text-indent: 20px;
}

#qubjbqgser .gt_indent_5 {
  text-indent: 25px;
}

#qubjbqgser .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#qubjbqgser 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_left" rowspan="1" colspan="1" scope="col" id="a::stub"></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="i"><span data-qmd-base64="JGkk"><span class='gt_from_md'>\(i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="x_i"><span data-qmd-base64="JHhfaSQ="><span class='gt_from_md'>\(x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_frc"><span data-qmd-base64="JHBfaSA9IHhfaSAvIFxzdW0geF9pJA=="><span class='gt_from_md'>\(p_i = x_i / \sum x_i\)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="p_dez"><span data-qmd-base64="JHBfaSQgKGRlemltYWwp"><span class='gt_from_md'>\(p_i\) (dezimal)</span></span></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="ip_i"><span data-qmd-base64="JGkgXGNkb3QgcF9pJA=="><span class='gt_from_md'>\(i \cdot p_i\)</span></span></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><th id="stub_1_1" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_1 i" class="gt_row gt_center">1</td>
<td headers="stub_1_1 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_1 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_1 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_1 ip_i" class="gt_row gt_center">0.0500</td></tr>
    <tr><th id="stub_1_2" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_2 i" class="gt_row gt_center">2</td>
<td headers="stub_1_2 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_2 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_2 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_2 ip_i" class="gt_row gt_center">0.1000</td></tr>
    <tr><th id="stub_1_3" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_3 i" class="gt_row gt_center">3</td>
<td headers="stub_1_3 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_3 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_3 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_3 ip_i" class="gt_row gt_center">0.1500</td></tr>
    <tr><th id="stub_1_4" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_4 i" class="gt_row gt_center">4</td>
<td headers="stub_1_4 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_4 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_4 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_4 ip_i" class="gt_row gt_center">0.2000</td></tr>
    <tr><th id="stub_1_5" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_5 i" class="gt_row gt_center">5</td>
<td headers="stub_1_5 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_5 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_5 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_5 ip_i" class="gt_row gt_center">0.2500</td></tr>
    <tr><th id="stub_1_6" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_6 i" class="gt_row gt_center">6</td>
<td headers="stub_1_6 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_6 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_6 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_6 ip_i" class="gt_row gt_center">0.3000</td></tr>
    <tr><th id="stub_1_7" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_7 i" class="gt_row gt_center">7</td>
<td headers="stub_1_7 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_7 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_7 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_7 ip_i" class="gt_row gt_center">0.3500</td></tr>
    <tr><th id="stub_1_8" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_8 i" class="gt_row gt_center">8</td>
<td headers="stub_1_8 x_i" class="gt_row gt_center">10</td>
<td headers="stub_1_8 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyMCQ="><span class='gt_from_md'>\(1 / 20\)</span></span></td>
<td headers="stub_1_8 p_dez" class="gt_row gt_center">0.0500</td>
<td headers="stub_1_8 ip_i" class="gt_row gt_center">0.4000</td></tr>
    <tr><th id="stub_1_9" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_9 i" class="gt_row gt_center">9</td>
<td headers="stub_1_9 x_i" class="gt_row gt_center">20</td>
<td headers="stub_1_9 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAxMCQ="><span class='gt_from_md'>\(1 / 10\)</span></span></td>
<td headers="stub_1_9 p_dez" class="gt_row gt_center">0.1000</td>
<td headers="stub_1_9 ip_i" class="gt_row gt_center">0.9000</td></tr>
    <tr><th id="stub_1_10" scope="row" class="gt_row gt_center gt_stub"></th>
<td headers="stub_1_10 i" class="gt_row gt_center">10</td>
<td headers="stub_1_10 x_i" class="gt_row gt_center">100</td>
<td headers="stub_1_10 p_frc" class="gt_row gt_center"><span data-qmd-base64="JDEgLyAyJA=="><span class='gt_from_md'>\(1 / 2\)</span></span></td>
<td headers="stub_1_10 p_dez" class="gt_row gt_center">0.5000</td>
<td headers="stub_1_10 ip_i" class="gt_row gt_center">5.0000</td></tr>
    <tr><th id="grand_summary_stub_1" scope="row" class="gt_row gt_left gt_stub gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row">Summe</th>
<td headers="grand_summary_stub_1 i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 x_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">200</td>
<td headers="grand_summary_stub_1 p_frc" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 p_dez" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;"><br /></td>
<td headers="grand_summary_stub_1 ip_i" class="gt_row gt_center gt_grand_summary_row gt_first_grand_summary_row gt_last_summary_row" style="background-color: #FFF9C4; border-top-width: 1px; border-top-style: solid; border-top-color: black;">7.7000</td></tr>
  </tbody>
  
</table>
</div>
<p><strong>Schritt 2: Gini-Koeffizient <span class="math inline">\(G\)</span></strong></p>
<p><span class="math display">\[\sum_{i=1}^{10} i \cdot p_i \;=\; 7.7\]</span></p>
<p><span class="math display">\[G = \frac{2 \cdot 7.7 - (10 + 1)}{10}
    = \frac{15.4 - 11}{10}
    = \frac{4.4}{10}
    = 0.44\]</span></p>
<p><strong>Schritt 3: Normierter Gini-Koeffizient <span class="math inline">\(G_*\)</span></strong></p>
<p><span class="math display">\[G_{\max} = \frac{n-1}{n} = \frac{9}{10} = 0.9\]</span></p>
<p><span class="math display">\[\boxed{G_* = \frac{G}{G_{\max}} = \frac{0.44}{0.9} = 0.489}\]</span></p>
</p>]]></text>
</generalfeedback>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
</question>

</quiz>
