Coder Social home page Coder Social logo

cmdenys / plotting-with-pandas Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.81 MB

A study comparing the performance of a pharmaceutical versus other treatment regimens and their effects on tumor sizes in mice.

Jupyter Notebook 100.00%
matlibplot scipy correlation-coefficient scatter-plot linear-regression

plotting-with-pandas's Introduction

In this hypothetical 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 Pymaceutical's, a fictional pharmaceutical company, drug of interest, Capomulin, versus other treatment regimens. Included are tables and figures needed for the technical report of the study, as well as a top-level summary of the study results.

The first step in the study was to merge the data from multiple data sets.

Once the data sets were merged, the data was checked for any mouse ID with duplicate time points. It was found that mouse ID g989 had multiple time points listed, so data associated with that mouse ID was removed. A check for the mouse count before and after the merge was conducted to ensure the data had been removed.

Once the clean data frame was created, using the groupby method, a summary statistics table consisting of the mean, median, variance, standard deviation, and SEM of the tumor volume for each drug regimen was produced.

Matplotlib's pyplot was used to show the total number of measurements taken for each treatment regimen throughout the course of the study.

A pie plot was generated Pandas's DataFrame.plot() that shows the distribution of female or male mice in the study.

Next, the final tumor volume of each mouse across four of the most promising treatment regimens were analyzed. These were: Capomulin, Ramicane, Infubinol, and Ceftamin. To determine if there are any potential outliers across all four treatment regimens, the quartiles and IQR were quantitatively calculated.

Using Matplotlib, a box and whisker plot was created of the final tumor volume for all four treatment regimens and potential outliers were identified.

To gain further insights into the effects the Capomulin regimen had on tumor treatment, a mouse that was treated with Capomulin was selected the following visuals were created:

  • A line plot of tumor volume vs. time point for that mouse.

  • A scatter plot of mouse weight versus average tumor volume.

  • The correlation coefficient and linear regression model between mouse weight and average tumor volume for the Capomulin treatment.


From the data observed, the following can be inferred:
  1. The drug regimens with the highest measurement counts were Capomulin and Ramicane.
  2. The mice with the largest tumors and most metastic sites were those given a regimen of placebo drugs.
  3. The correlation coefficient between mouse weight and average tumor volume is 0.84, suggesting the two measurements are highly correlated.

plotting-with-pandas's People

Contributors

cmdenys avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.