TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2020W/HW13.5

Aus VoWi
Zur Navigation springen Zur Suche springen

Cigarettes - yummy (part 1)[Bearbeiten | Quelltext bearbeiten]

100 Viennese students were asked of whether they smoke. The possible answers were (1) ’yes, I do’ (2) ’no, I stopped smoking’, or (3) ’no, I never smoked’. The survey resulted in 22 smokers and 55 that never smoked. Everybody answered.

Test the null hypothesis that the proportion of Viennese students that never smoked is double of those that do smoke and also double of those that stopped smoking. Choose a 1%-significance level. Formulate a result.

Lösungsvorschlag von Friday[Bearbeiten | Quelltext bearbeiten]

--Friday Sa 30 Jan 2021 18:43:49 CET

First, lets define the probabilities for the hypothesis:

Now, we can create a table for the occupation and the expected values under the null hypothesis:

1 2 3 Σ
22 23 55 100
25 25 50 100

Perform the -test, goodness of fit:

With R we can calulate qchisq(0.99,2):

We cannot reject the null hypothesis as with .