AWE
AWE

Reputation: 4135

When is alternative hypothesis not true in r prop.test?

I did this prop.test(90,95,p=1e-34) and got this:

alternative hypothesis: true p is not equal to

and then this prop.test(500,1000,p=0.5) and got this:

alternative hypothesis: true p is not equal to

Shouldn't the output be different? Am I misunderstanding something?

Upvotes: 0

Views: 170

Answers (1)

Sven Hohenstein
Sven Hohenstein

Reputation: 81733

The output just tells you the alternative hypothesis. The alternative hypothesis is independent of the actual outcome of the test. If you want to find out, whether the null hypothesis can be rejected, have a look at the p-value of the test statistic.

In your first example, the p-value is < 2.2e-16, and therefore the null hypothesis is rejected.

In your second example, the p-value is exactly 1, and therefore you have no evidence for the rejection of the null hypothesis.

Upvotes: 1

Related Questions