TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2019W/8.7

Aus VoWi
Zur Navigation springen Zur Suche springen
7) Simulation of test-power

Simulate the test-power in the two-sample t-test: Let be independent random variables with and for all . Simulate the test-power (relative frequency of rejections) for in 1000 simulations each. Use the parameters

(a) n = 10 and σ = 3
(b) n = 20 and σ = 3
(c) n = 20 and σ = 1

for each of which you plot the testpower against d. Comment on your graphic.

Hint: You can access the p-value with t.test()$p.value.

Dieses Beispiel hat noch keinen Lösungsvorschlag. Um einen zu erstellen, kopiere folgende Zeilen, bearbeite die Seite und aktualisiere den status=unsolved Mögliche status=... Werte stehen hier: Vorlage:Beispiel

== Lösungsvorschlag von ~~~ ==
--~~~~

Siehe auch Hilfe:Formeln und Hilfe:Beispielseiten.