Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #Eingabe untere Grenze, obere Grenze und Häufigkeiten
  2. x<-c(18.9,19.0,19.6,20.2,20.8,21.4,22.2,22.6)
  3. x
  4. y<-c(19.0,19.6,20.2,20.8,21.4,22.2,22.6,23.2)
  5. y
  6. z<-c(2,9,34,55,55,30,12,3)
  7. z
  8.  
  9. #Mittelwerte aus untere und obere Grenze
  10. a=(y-x)/2+x
  11. a
  12. b=a*z
  13. b
  14.  
  15. #arithmetrische Mittel berechen
  16. arith_Mittel=sum(b)/sum(z)
  17. arith_Mittel
  18.  
  19. #Berechnung der empirischne Standardabweichung
  20. #s=sqrt(1/(n-1) * sum((xi-xStrich)²)
  21. s=sqrt(1/(sum(z)-1)*sum(z*(a-arith_Mittel)^2))
  22. s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement