Entering edit mode

4.7 years ago

Hello,

Example:

–log10 (p-value)= 11.28

p-value???

Can anyone help?

Thanks in advance.

Best regards,

How can I convert -log10 (p-value) to p-value?

6

Entering edit mode

4.7 years ago

Hello,

Example:

–log10 (p-value)= 11.28

p-value???

Can anyone help?

Thanks in advance.

Best regards,

9

Entering edit mode

4.7 years ago

dariober
14k

Hi- The opposite of logarithm is exponentiation. So take the base of the logarithm (10 in your case) and exponentiate it to the result of the log. E.g. in R:

```
p<- 0.01
logp<- -log10(p) # = 2
# Undo log:
10^-logp # = 0.01
# And:
10^-11.28 # = 5.248075e-12
```

Similar Posts

Loading Similar Posts

Traffic: 4037 users visited in the last hour

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Thank you for your reply,

Here: logp<- -log10(p) # = 2

What does the number 2 mean?

In my own words (don't take them too seriously), the log can be interpreted as

how many timesa value is greater or smaller than the baseline of 1. So for example, a log10 of 2 means100 times more than the baselinewhile a log10 of -2 means100 times smaller than the baseline. In fact, log(1) = 0 which meanszero times greater (or smaller), i.e. no change irrespective of the base of the log. The base of the log tells you what the multiplier is. So, in base 10 a unit increase means "10 times more" while in base 2 means "2 times more".P-values are sometimes logged because they can span several orders of magnitude and the log makes them easier to plot and interpret since the difference between the log of 0.1 and 0.01 looks the same as the difference between, say, 1e-10 and 1e-11. If you had to use the raw p-values the difference 1e-10 and 1e-11 would be invisible on a plot. The minus sign is used for convenience (I think) because it makes values positive and the bigger the value the smaller is the underlying p-value (= more significant).

Another reason for logging is to make calculations feasible on computers since operations on probabilities (like the likelihood) can generate numbers small enough that computers cannot represent them with sufficient precision. If you take the log, numbers increase or decrease slowly enough that you can represent them. I think here the keyword to google is "numeric overflow" or underflow.

The comment signifies that the result of the calculation is 2. I.e.:

That’s the negative logarithm, in base 10 of 0.01

Thank you so much for your reply.

naive question https://www.nature.com/articles/s41467-019-09234-6 metascape pathway enrichment they don't mention about the logp or log2 obtained ..if i have to convert them into just p value what do i need do ? do i need to use 2 instead of 10 or any suggestion and values like here in the question where he mentioned -log10 pvalue ..in metascape output it is just LogP and the values are in negative for example this

i found the base ..used