<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="1"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" bullet="none" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" bullet="none" linespacing="0.5" name="Maple Output"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input" opaque="false" size="12"/><Font background="[0,0,0]" family="Monospaced" foreground="[0,0,255]" name="Line Printed Output" opaque="false" readonly="true" size="12"/><Font background="[0,0,0]" family="Times New Roman" foreground="[0,0,255]" name="2D Output" opaque="false" readonly="true" size="12"/></Styles><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">restart:
with(LinearAlgebra):
with(stats):</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">H:=Matrix(5, 3, [[186, 38, 35], [227, 54, 45], [219, 78, 78], [355, 112, 140], [653, 285, 259]]);
Quantil:=0.99;</Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+SSJIRzYiLUknUlRBQkxFR0YlNiUiJ3cjKSoqLUknTUFUUklYR0YlNiM3JzclIiQnPSIjUSIjTjclIiRGIyIjYSIjWDclIiQ+IyIjeUY4NyUiJGIkIiQ3IiIkUyI3JSIkYCciJCZHIiRmI0knTWF0cml4RzYkSSpwcm90ZWN0ZWRHRkNJKF9zeXNsaWJHRiU=</Equation></Text-field><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+SShRdWFudGlsRzYiJCIjKiohIiM=</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font encoding="ISO8859-1">## H\344ufigkeiten Merkmalkombinationen</Font>
r, s:=Dimension(H);
HY:=Vector(r):
HZ:=Vector(s):
n:=0:
for i from 1 to r do
  for j from 1 to s do
    HY[i]:=HY[i] + H[i, j];
    HZ[j]:=HZ[j] + H[i, j];
    n:=n + H[i, j];
  od:
od:
</Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+NiRJInJHNiJJInNHRiY2JCIiJiIiJA==</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font encoding="ISO8859-1">## Wahrscheinlichkeit Sch\344tzwert</Font>
P:=Matrix(5, 3):
for i from 1 to r do
  for j from 1 to s do
    P[i, j]:=HY[i] / n * HZ[j] / n;
  od:
od:</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font encoding="ISO8859-1">## Testgr\366sse Z</Font>
Z:=0:
for i from 1 to r do
  for j from 1 to s do
    Z:=Z + (H[i, j] - n * P[i, j])^2 / (n * P[i, j]);
  od:
od:</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">Z:=evalf(Z);</Text-field></Input><Output><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+SSJaRzYiJCIrISpSQip5JSEiKQ==</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">printf("Siehe Tabelle Chi-Quadrat-Verteilung: alpha=%f, n=%d", Quantil, (r - 1) * (s - 1));
Q:=20.09;

## Tabelle von Maple verwenden
Q:=statevalf[icdf, chisquare[(r - 1) * (s - 1)]](Quantil);</Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input><Output><Text-field layout="Normal" style="Line Printed Output">Siehe Tabelle Chi-Quadrat-Verteilung: alpha=0.990000, n=8</Text-field><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+SSJRRzYiJCIlND8hIiM=</Equation></Text-field><Text-field layout="Maple Output" style="2D Output"><Equation>NiM+SSJRRzYiJCIrLk4tND8hIik=</Equation></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font encoding="ISO8859-1">printf("Hypothese: Y[i] und Z[i] sind stochastisch unabh\344ngig\134n");</Font>
if (Z &gt; Q) then
  printf("--&gt; Hypothese abgelehnt");
else
  printf("--&gt; Hypothese angenommen");
end if;</Text-field></Input><Output><Text-field layout="Normal" style="Line Printed Output"><Font encoding="ISO8859-1">Hypothese: Y[i] und Z[i] sind stochastisch unabh\344ngig</Font>
--&gt; Hypothese abgelehnt</Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Text-field/><RTable handle="998276" >TTdSMApJM1JUQUJMRV9TQVZFLzk5ODI3NlgsJSlhbnl0aGluZ0c2IjYiW2dsISIlISEhIzAiJiIkIiQnPSIkRiMiJD4jIiRiJCIkYCciI1EiI2EiCiN5IiQ3IiIkJkciI04iI1hGLiIkUyIiJGYjRiYK</RTable></Worksheet>