1

Let's say you have data from two random variables $X$ and $Y$, and the two random variables are highly correlated (ex: $r=.97$). The p-value, which is testing the null hypothesis that there is no correlation, is low, which indicates that there is a correlation.

Can you test a one-sided hypothesis $H_0: r=0, H_a: r>0$ if previously you had hypothesized a positive (or negative, if that's the case) correlation? If so, would you multiply the p-value calculated above by $0.5$ to achieve the p-value for this directional, one-sided test?

amoeba
  • 93,463
  • 28
  • 275
  • 317
pocketlizard
  • 225
  • 1
  • 2
  • 10
  • 1
    Just a small comment: in one-sided case, null-hypothesis is $H_0: r\le 0$ and not $H_0:r=0$. Regarding your questions, the answers seem to be Yes and Yes. – amoeba Apr 24 '15 at 22:21
  • Your comment means $H_a: r\leq 0$, right? ($H_a$ and not $H_0$ in the first inequality) – pocketlizard Apr 24 '15 at 22:32
  • 1
    No, the null hypothesis is that correlation is negative or zero, and the alternative hypothesis is that correlation is positive. You want to claim the evidence that the correlation is positive, and for that you need to reject the null that it is negative. – amoeba Apr 24 '15 at 22:36
  • Oh I see, I think I misunderstood your comment the first time, but I understand now. That makes sense, great! – pocketlizard Apr 24 '15 at 22:41
  • 1
    @amoeba: There's nothing problematic in testing $H_0: \rho= 0$ vs $H_\mathrm{a}: \rho> 0$. For observed $r<0$ the generalized likelihood ratio comes to one, because the value of $\rho$ that maximizes the likelihood is zero under both null & alternative. – Scortchi - Reinstate Monica Jul 27 '16 at 12:28
  • @Scortchi Indeed, thanks. But the answers are still Ye and Yes, right? – amoeba Jul 27 '16 at 12:31
  • 2
    @amoeba: Oh yes! And there's little practical difference between that & testing $H_0: \rho \leq 0$ vs $H_\mathrm{a}: \rho> 0$. It's just that someone was puzzled by your comment: http://stats.stackexchange.com/q/225874/17230. – Scortchi - Reinstate Monica Jul 27 '16 at 12:35
  • 1
    @Scortchi I see, thanks for the link. Agree on little practical difference: the test statistic is the same. – amoeba Jul 27 '16 at 12:37
  • 1
    @amoeba: The same when observed $r>0$, which is all anyone's likely to care about. – Scortchi - Reinstate Monica Jul 27 '16 at 16:19

0 Answers0