TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Levajkovic)/Übungen 2023W/HW10.2

Aus VoWi
Zur Navigation springen Zur Suche springen
Elections

Anna is one of the candidates in the upcoming elections for the student representative at the TU Wien. Her team wants to determine whether or not more than of all students would vote for her. In a random poll sampling of students, the responses were collected (each is 1 or 0, if they would vore for her or not). Among them, there were observed

131 ”yes” responses, i.e. . Perform a hypothesis test with the level of significance and state your conclusion based on the information given.

Dieses Beispiel ist als solved markiert. Ist dies falsch oder ungenau? Aktualisiere den Lösungsstatus (Details: Vorlage:Beispiel)


Lösungsvorschlag von Lessi[Bearbeiten | Quelltext bearbeiten]

--Lessi 2024-02-07T13:04:11Z

Let be i.i.d RV with and . The significance level is and the hypothesis

p0 <- 3 / 4
n <- 137
alpha <- 0.01
h <- 131 / n
se <- sqrt(h * (1 - h) / n)
z <- (h - p0) / se

h
se
z

We will perform a left-sided test

p <- pnorm(z)
p

, so we do not reject the null hypothesis

Check again with prop.test

prop.test(131, 137, p = 3 / 4, alternative = "less")