0

I can not explain why the sum does not give zero

 > y
 -0.4300447  0.0377018  0.3923429
 > mean(y)
 3.701647e-17
 > sum(y)/3
 3.700743e-17
KACEFMA.
  • 101
  • 1
  • 3
    Related: [Why are these numbers not equal?](https://stackoverflow.com/questions/9508518/why-are-these-numbers-not-equal) – markus Sep 08 '18 at 18:56
  • 2
    floating point errors.. not specifically R-related, more computer-ralated.. – Wimpel Sep 08 '18 at 18:58

0 Answers0