Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96143
License: OTHER
1
"""This file contains code used in "Think Stats",
2
by Allen B. Downey, available from greenteapress.com
3
4
Copyright 2010 Allen B. Downey
5
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
6
"""
7
8
"""This program generates a normal probability plot for the distribution
9
of running speeds in a road race.
10
11
The results suggest that the distribution is bimodal, with a small
12
number of fast runners who seem to belong to a different normal
13
distribution.
14
15
I conjecture that these are people who have trained at a competitive
16
level. Among them, the distribution is normal, but there is a gap
17
between them and the rest of the population.
18
19
"""
20
21
import relay
22
import rankit
23
24
25
def main():
26
results = relay.ReadResults()
27
speeds = relay.GetSpeeds(results)
28
rankit.MakeNormalPlot(speeds,
29
root='relay_normal',
30
ylabel='Speed (MPH)')
31
32
33
if __name__ == '__main__':
34
main()
35
36