Skip to content

What good is data without a good plot to tell the story? Python Matplotlib analyzing prescription drugs efficacy in mice.

Notifications You must be signed in to change notification settings

wjriebel/Matplotlib-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Matplotlib Homework - The Power of Plots

Background

What good is data without a good plot to tell the story?

So, let's take what you've learned about Python Matplotlib and apply it to a real-world situation and dataset:

Laboratory

While your data companions rushed off to jobs in finance and government, you remained adamant that science was the way for you. Staying true to your mission, you've joined Pymaceuticals Inc., a burgeoning pharmaceutical company based out of San Diego. Pymaceuticals specializes in anti-cancer pharmaceuticals. In its most recent efforts, it began screening for potential treatments for squamous cell carcinoma (SCC), a commonly occurring form of skin cancer.

As a senior data analyst at the company, you've been given access to the complete data from their most recent animal study. In this study, 249 mice identified with SCC tumor growth were treated through a variety of drug regimens. Over the course of 45 days, tumor development was observed and measured. The purpose of this study was to compare the performance of Pymaceuticals' drug of interest, Capomulin, versus the other treatment regimens. You have been tasked by the executive team to generate all of the tables and figures needed for the technical report of the study. The executive team also has asked for a top-level summary of the study results.

Instructions

Your tasks are to do the following:

  • Before beginning the analysis, check the data for any mouse ID with duplicate time points and remove any data associated with that mouse ID.

  • Use the cleaned data for the remaining steps.

  • Generate a summary statistics table consisting of the mean, median, variance, standard deviation, and SEM of the tumor volume for each drug regimen.

  • Generate a bar plot using both Pandas's DataFrame.plot() and Matplotlib's pyplot that shows the total number of measurements taken for each treatment regimen throughout the course of the study.

    • NOTE: These plots should look identical.
  • Generate a pie plot using both Pandas's DataFrame.plot() and Matplotlib's pyplot that shows the distribution of female or male mice in the study.

    • NOTE: These plots should look identical.
  • Calculate the final tumor volume of each mouse across four of the most promising treatment regimens: Capomulin, Ramicane, Infubinol, and Ceftamin. Calculate the quartiles and IQR and quantitatively determine if there are any potential outliers across all four treatment regimens.

  • Using Matplotlib, generate a box and whisker plot of the final tumor volume for all four treatment regimens and highlight any potential outliers in the plot by changing their color and style.

Conclusion

Matplotlib homework for Data Analytics Bootcamp

Matplotlib_Challenge We can see that there is a good correlation between the weight of the mouse and the volume of the tumor. The correlation coeffienct was 0.84, which backs this up. We also found that the most effective drugs of the 4 we dove into were Ramicane and Capomulin. These two drugs produced similar results and both mostly resulted in the shrining of the tumors in these trials. The Gender split between the mice proved to be even, giving a good slice of what a larger population trial would look like. The variables in this study were not as consitient as they should be. The 8 drugs for 248 mice is not a larger enough sample size to prove anything outright. The amount of time varied for each mouse as well. While 63 of our 100 mice had full 45 day studies completed, some mice did not even have a timepoint past 0 days. This could be because of side effects that killed these participants or poor scientific research.

Copyright

Trilogy Education Services © 2020. All Rights Reserved.

About

What good is data without a good plot to tell the story? Python Matplotlib analyzing prescription drugs efficacy in mice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published