SHARE
TWEET

Untitled

a guest Mar 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top