# Tag Info

## Hot answers tagged variance

### var() is not equal to sd()^2 in R

Please, check 0.4^2 == 0.16 0.4 == 0.16^0.5 It's not a statistical issue. It's a rounding issue in floating point arithmetics in the language. The same applies to ...
• 714

### var() is not equal to sd()^2 in R

Recommended read for you is Goldberg, D. (1991). What every computer scientist should know about floating-point arithmetic. ACM computing surveys (CSUR), 23(1), 5-48. TL;DR you should never use <...
• 121k

### Aren't ALL Parameters Eventually "Nuisance Parameters"?

The concept of nuisance parameters is somewhat controversial, and some argue it should not be used (I do not understand that argument). It might be better to focus on the opposite concept of interest ...
• 67.6k

### var() is not equal to sd()^2 in R

Correct to 14 decimal points, it's a floating point number issue: options(digits = 20) > var(data) [1] 27.476190476190474499 sd(data)^2 [1] 27.476190476190470946 ...
• 14.6k

### var() is not equal to sd()^2 in R

Check the differences between those quantities. They are likely to be small. Computers are funky about how they store long decimals.
• 35.8k