TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Levajkovic)/Übungen 2023W/HW05.4
Zur Navigation springen
Zur Suche springen
- Coin throws
An unfair coin is thrown 600 times. The probability of geting a tail in each throw is .
- (a) Use a Binomial distribution to compute the probability that the number of heads obtained does not differ more than 10 from 440.
- (b) Use a Normal approximation without a continuity correction to calculate the probability in (a). How does the result change if the approimation is provided with a continuity correction?
Dieses Beispiel ist als solved markiert. Ist dies falsch oder ungenau? Aktualisiere den Lösungsstatus (Details: Vorlage:Beispiel)
Hilfreiche Tipps[Bearbeiten | Quelltext bearbeiten]
Ähnliches Beispiel: Übungen 2020W - HW 5.2
Lösungsvorschlag von Simplex[Bearbeiten | Quelltext bearbeiten]
# a)
throws <- 600
prob <- 3/4
res2a <- pbinom(450, throws, prob) - pbinom(430, throws, prob)
print(res2a)
# b)
exp <- 0
sd <- 1
a <- 430
b <- 450
res2b_without_correction <-
pnorm((b - throws * prob)/(sqrt(throws * prob * (1-prob)))) -
pnorm((a - throws * prob)/(sqrt(throws * prob * (1-prob))))
res2b_with_correction <-
pnorm((b + 1/2 - throws * prob)/(sqrt(throws * prob * (1-prob)))) -
pnorm((a - 1/2 - throws * prob)/(sqrt(throws * prob * (1-prob))))
print(res2b_without_correction)
print(res2b_with_correction)
(a)[Bearbeiten | Quelltext bearbeiten]
(b)[Bearbeiten | Quelltext bearbeiten]
Calculate with correction: fill in sigma
- Without correction: 47.03%
- With correction: 49.22%
--Simplex 14:04, 3. Feb. 2023 (CET)
Deine Lösung...