Lösungen / Statistik 1/04

Remove["Global`*"]

1.

Selbststudium nach Uebungen.

2.

n = 50; d = 6; a = 3; b = 2; ab = 1; a1 = a + ab; 
    b1 = b + ab;
aUb = a1 + b1 - ab

cc = ab/n

p[ab] // N

p[aUb] = aUb/n

p[aUb] // N

3.

P(A|B)=P(AnB)/P(A)

p = 471/(471 + 148)

p // N

4.

v[k_, n_] := n!/(n - k)!;
vRep[k_, n_] := n^k;

p = v[3, 6]/vRep[3, 6]

N[p]

5.

P_tot=P(1.o.k.)*P(2.o.k.)*P(3.o.k.)*P(4.o.k.)*P(5.o.k.)*

tot = 50; d = tot 20/100;  oK = tot - d;

p = 
      oK/tot *(oK - 1)/(tot - 1)*(oK - 2)/(tot - 2)*(oK - 
              3)/(tot - 3)*(oK - 4)/(tot - 4)*(oK - 
              5)/(tot - 5)

N[p]

6.

a

tot = vRep[4, 2]

res2and2 = 4!/(2! * 2!)

p1 = res2and2/tot

N[p1]

b

pKorF = 1/2;  pZorP = 1/2;

p2 = pKorF  pZorP pKorF  pZorP

N[p2]