Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from numpy import corrcoef
- data = [
- (0, 53),
- (0, 64),
- (10, 90),
- (20, 78),
- (20, 85),
- (30, 27),
- (30, 46),
- (30, 53),
- (40, 40),
- (40, 52),
- (40, 60),
- (40, 67),
- (40, 71),
- (50, 75),
- (50, 77),
- (60, 40),
- (60, 64),
- (60, 82),
- (60, 90),
- (60, 93),
- (60, 96),
- (80, 53),
- (80, 86), # ayy intel
- (90, 80),
- (90, 83),
- (90, 87),
- (90, 93),
- (90, 95),
- (100, 62),
- (100, 78),
- (100, 95)
- ]
- attendance, marks = zip(*data)
- print(corrcoef(attendance, marks))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement