[Solved] COMP1007 Lab 9-Fundamental Statistics with Python
5.0
1 customer review
Digital download
Digital download
$25.00
Upload assignment
| d = {x:3, a:89, k:5, d:10} L = sorted(d.items())print(L) # [(a, 89), (d, 10), (k, 5), (x, 3)] |
| import numpy as np from scipy import stats import pandas as pdfrom matplotlib import pyplot as plt |
| Interval | Count |
| below 10 | 3 |
| 10 to 19 | 2 |
| 20 to 29 | 15 |
| 30 to 39 | 26 |
| 40 to 49 | 51 |
| 50 to 59 | 42 |
| 60 to 69 | 39 |
| 70 to 79 | 23 |
| 80 to 89 | 11 |
| 90 or above | 8 |
| edges[1:] | + | edges[:1] | temp | x 0.5 | bin_centers | |
| 10 | 0 | 10 | 5 | |||
| 20 | 10 | 30 | 15 | |||
| 30 | 20 | 50 | 25 | |||
| 90 | 100 | 190 | 95 |
| q2 = median q3 = median + iqr/2 plt.axvline(x=q1, color=lightgrey, linestyle=) plt.axvline(x=q2, color=red, linestyle=:) plt.axvline(x=q3, color=lightgrey, linestyle=) |
| Label | Description |
| Below 15K | The salary is less than $15,000 |
| 15K <= $ < 20K | The salary is larger than or equal to $20,000 but less than $15,000. |
| 20K <= $ < 25K | The salary is larger than or equal to $25,000 but less than $20,000. |
| $95K or above | The salary is larger than or equal to $95,000 |