statistical hypothesis testing.

54 Views Asked by At

Vasya Sidorov claims that he goes to the cinema twice as often as to the gym, and to the gym twice as often as to the theater. Over the past six months, he has been to the theater 10 times, to the gym 17 times and to the cinema 39 times. At the level significance of 5% check Vasya's statement.

Seems that theoretical means would be 20 and 40. Seems that statement is true, if both substatement are true:
A) Goes to gym twice often than theatre
B) Goes to cinema 4 times often than in theater.
$n = 66$, then
answer Hypothesis test of two proportions where one proportion is k times the other one

I got that A and B are true, but I'm not doubt that my solution is right. I would be grateful for your help!

1

There are 1 best solutions below

5
On BEST ANSWER

There are several similar methods. One is implemented in R as prop.test, a test with the null hypothesis $H_0$ that the probabilities of the three activities are $1/7, 2/7, 4/7,$ respectively. The alternative is that these probabilities are not true.

The data your state are consistent with that null hypothesis. (That is, $H_0$ is not rejected.)

prop.test(c(10,17,39), c(66,66,66),  p = c(1,2,4)/7)

        3-sample test for given proportions
        without continuity correction

data:  c(10, 17, 39) out of c(66, 66, 66), null 
probabilities c(1, 2, 4)/7
X-squared = 0.39874, df = 3, p-value = 0.9405
alternative hypothesis: two.sided
null values:
   prop 1    prop 2    prop 3 
0.1428571 0.2857143 0.5714286 
sample estimates:
   prop 1    prop 2    prop 3 
0.1515152 0.2575758 0.5909091