| Download
Jupyter notebook OS3307_Lab5_Group1.ipynb
Project: 05_MonteCarloLab_Group1
Path: OS3307_Lab5_Group1.ipynb
Views: 25Kernel: Python 2 (SageMath)
In [1]:
In [2]:
7960
2040
In [3]:
Avg amount of people who show: 90
flights with people bumped: 7664
proportion of flights with at least one person bumped: 0.766400
Total profit: $125106458.689245
Avg profit: $12510.645869
Mean number of bumped passengers: 5
Median number of bumped passengers: 5
('Minor: ', 169)
('Major: ', 1)
In [4]:
In [5]:
0 | |
---|---|
count | 10000.000000 |
mean | 12510.645869 |
std | 1264.216672 |
min | 7473.379200 |
25% | 11664.940479 |
50% | 12750.000000 |
75% | 13097.768792 |
max | 15000.000000 |
In [6]:
In [7]:
In [8]:
profit if never overbooked: $127500000
avg profit per flight: $12750
In [9]:
flights with people bumped: 4031
proportion of flights with at least one person bumped: 0.403100
Total profit: $136540559.097811
Avg profit: $13654.055910
Mean number of bumped passengers: 0.590900
Median number of bumped passengers: 0.000000
Optimal number of tickets: 93
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]: