Givens_MatPlotLib_Challenge

View the Project on GitHub heyannag/Givens_MatPlotLib_Challenge

Matplotlib Homework - The Power of Plots

Bar Charts

Pandas_Bar_Chart

Pyplot_Bar_Chart

Pie Charts (Sean’s favorite!)

Pandas_Pie_Chart

Pyplot_Pie_Chart

IQR

Capomulin data: IQR: 7.78 Lower quartile: 32.38 Upper quartile: 40.16 Median: 38.12 Potential outliers for Capomulin are any values below 20.71 and above 51.83.

Ramicane data: IQR: 9.1 Lower quartile: 31.56 Upper quartile: 40.66 Median: 36.56 Potential outliers for Ramicane are any values below 17.91 and above 54.31.

Infubinol data: IQR: 11.48 Lower quartile: 54.05 Upper quartile: 65.53 Median: 60.16 Potential outliers for Infubinol are any values below 36.83 and above 82.75.

Ceftamin data: IQR: 15.58 Lower quartile: 48.72 Upper quartile: 64.3 Median: 59.85 Potential outliers for Ceftamin are any values below 25.35 and above 87.67.

Box and Whisker Plot

Box_and_Whisker_Plot

Line Plot

Line_Chart

Scatter Plot

Scatter_Plot

Linear Regression

Scatter_Regression

Observations

1 - The sex of the test subjects was distrubted fairly even with 50.6% male and 49.4% female.

2 - Treatment drugs Capomulin and Ramicane had the best reduction, therefore showing the most promising results.

3 - The correlation between Mouse Weight and Average Tumor Volume is 0.84, which is quite high. This means they both have a strong relationship with each other (i.e. as weight increases the tumor growth is higher). This is also evident from the linear regression (y=0.95x+21.55). This shows that tumor volume increases by more that 21.