After running the lm
regression model using R, sometime one is bound to get very small P values or values in the covariance matrix. Something of the sort: -1.861246e-04
for example in a covariance matrix. My question is how do you read this? how could I perform calculations on it manually? I needed to multiply this covariance matrix out with a vector but since I do not know how to manipulate those numbers, I am lost.
-
6@Gordon Smyth Did O.P. really get : -1.861246e-04 for p-value? That is a negative number for p-value. Is that possible? – Mark L. Stone Dec 19 '17 at 22:28
-
*minus one point eight six times ten to the [power of] minus four* – Henry Dec 20 '17 at 10:29
2 Answers
The "e" is a symbol for base-10 scientific notation. The "e" stands for $\times 10^{\rm exponent}$. So -1.861246e-04 means $-1.861246 \times 10^{-4}$. In fixed-point notation that would be -0.0001861246.
This notation is pretty standard. Even Microsoft Excel understands it, not just R.

- 8,964
- 1
- 25
- 43
-
Thank you. Just means I'm going to have a lot of decimals in my manual calculation. – dc3rd Dec 19 '17 at 22:07
-
2@dc3rd You don't need to. Scientific notation was developed because it is useful. You should perform calculations with just the numbers, and multiply the powers of ten separately. For example, 2e-5 * 8e-3 = (2*8)e(-5-3) = 16e-8 = 1.6e-7 – Ant Dec 20 '17 at 09:11
-
@Gordon As per your answer I have tried to verify if python 2.7.5 understand -> -6.53842823889031e+18 vs -6538428238890310000 are the same value when equated using '==' it doesn't think so why? >>> d -6.53842823889031e+18 >>> e -6538428238890310000 >>> d == e False Care to comment ? Am I understanding it wrong? – nitinr708 Sep 25 '20 at 05:03
I cannot yet comment so this answer will be a response to @Mark L. Stone : OP also stated that he's getting covariance matrix values in the scientific notation. Obviously the negative value must be one of the covariances.
To not be completely OT I will just add that working with scientific notation to me looks a bit clunky(especially if you are publishing the results). To supress the notation in R
use the command options(scipen=alpha)
where alpha
is the maximum number of digits for the result to be still expressed in fixed notation.

- 188
- 1
- 8
-
2Thanks. It appears that in response to my comment, the OP edited the question to add "in a covariance matrix"" to what is now "-1.861246e-04 for example in a covariance matrix" – Mark L. Stone Dec 20 '17 at 00:00