Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tujchl
    Member
    • Sep 2009
    • 74

    #1

    simple question about Z score and P value in R

    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?
  • blancha
    Senior Member
    • May 2013
    • 367

    #2
    I think that by doing the reciprocal transformation, you are drastically changing the distribution shape, hence the drastically different Z scores and p-values.

    The reciprocal transformation preserves the order of the values, but drastically alters the distribution of the values.

    Comment

    • tujchl
      Member
      • Sep 2009
      • 74

      #3
      Hi blancha
      thank you for your replying. your replying helps me a lot.
      just three further questions
      1. I check mean and sd of my data before and after reciprocal transformation. I found that the sd is the same and mean is reciprocal before and after reciprocal transformation. are they evidence to prove your hypothese?
      2. do I have chance to get the same pvalue after some kinds of handling? here I want both of them are 1.5e-05
      3. can I use 1.5e-05 here to prove my value is significant against the distribution?

      Comment

      • blancha
        Senior Member
        • May 2013
        • 367

        #4
        Sorry, I made a small mistake in my previous answer. I wish I could edit it.
        The reciprocal transformation obviously reverses the order of the values.

        1. The standard deviation of the distribution of a set of random numbers after the reciprocal transformation is different. Nor is the mean after transformation the reciprocal of the mean before distribution.

        2. There are transformations that will not affect the shape of the distribution, such as multiplying each value by a constant or adding or subtracting a constant from each value. There are transformations that will affect the shape of the distributions, such as the logarithmic or the square root transformation, but to a much lesser extent than the reciprocal transformation. The logarithmic transformation is commonly used to make highly skewed distributions less skewed.

        3. The reciprocal transformation is the least commonly used. I don't know what your rationale is for picking this transformation, so I can't comment on whether it is appropriate in your case.

        I'm not a statistician. I just use statistics in my work so you may get better answers from a statistician.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        38 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        41 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Working...