Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. from numpy import corrcoef
  2.  
  3. data = [
  4. (0, 53),
  5. (0, 64),
  6. (10, 90),
  7. (20, 78),
  8. (20, 85),
  9. (30, 27),
  10. (30, 46),
  11. (30, 53),
  12. (40, 40),
  13. (40, 52),
  14. (40, 60),
  15. (40, 67),
  16. (40, 71),
  17. (50, 75),
  18. (50, 77),
  19. (60, 40),
  20. (60, 64),
  21. (60, 82),
  22. (60, 90),
  23. (60, 93),
  24. (60, 96),
  25. (80, 53),
  26. (80, 86), # ayy intel
  27. (90, 80),
  28. (90, 83),
  29. (90, 87),
  30. (90, 93),
  31. (90, 95),
  32. (100, 62),
  33. (100, 78),
  34. (100, 95)
  35. ]
  36.  
  37. attendance, marks = zip(*data)
  38.  
  39. print(corrcoef(attendance, marks))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement