Hi

I have a list and I calculate Z score and P value in R as below

Z.score=(0.52-mean(data))/sd(data)

P.value=2*pnorm(-abs(Z.score))

and P.value is 0.028 (0.52 is in my list "data")

but I reverse data and do it in R as below again:

Z.score=(1/0.52-mean(1/data))/sd(1/data)

P.value=2*pnorm(-abs(Z.score))

and P.value is 1.5e-05

My question is that in my understanding the outcome of these two methods is the same. but now it seems different.

can you tell me the reason?

I have a list and I calculate Z score and P value in R as below

Z.score=(0.52-mean(data))/sd(data)

P.value=2*pnorm(-abs(Z.score))

and P.value is 0.028 (0.52 is in my list "data")

but I reverse data and do it in R as below again:

Z.score=(1/0.52-mean(1/data))/sd(1/data)

P.value=2*pnorm(-abs(Z.score))

and P.value is 1.5e-05

My question is that in my understanding the outcome of these two methods is the same. but now it seems different.

can you tell me the reason?

## Comment