Giter Site home page Giter Site logo

claude-hanfou / pymaceuticals-analysis Goto Github PK

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

Data analysis of 249 mice identified with SCC tumor growth using python and matplotlib

Jupyter Notebook 100.00%
pandas-python matplotlib python linear-regression boxplot

pymaceuticals-analysis's Introduction

Pymaceuticals-Analysis

Matplotlib - The Power of Plots

alt text

Background

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. 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.

Analysis

  • Capomulin and Ramicane had the most data points out of all the drugs present in the study and they were also the most successful drugs in reducing the size of the tumors within the mice subjects. In addition, the pie chart shows that there are more male (125) than female (124) mice in the study.
  • If we take a look at the correlation coefficient between mouse weight and tumor volume, we notice that 0.84 is a strong correlation which means that if a mouse gains weight, there is most likely going to be a increase in tumor volume for that mouse.This can be further observed on the scatter plot that compares average tumor volume and mouse weight for mice on Capomulin regimen
  • Also, if we look at the line chart, we can notice that tumor volume of mouse b742 which was treated with Capomulin considerably decreases as time (Timepoint) goes by therfore showing that the treatment is working.

Table of Contents

  • Data cleaning
  • Summary Statistics
  • Bar and Pie Charts
  • Quartiles, Outliers and Boxplots
  • Line and Scatter Plots
  • Correlation and Regression

Data cleaning

In this process, the two csvfiles were imported, combined abd duplicates were removed to have a clean Dataframe for the rest of the analysis. alt text

Summary Statistics

The summary statistics was generated using two methos, one using the groupby method and statistical funtion to generate the mean, median, variance, standard deviation, and SEM and the other usinng the aggregation method on single line. alt text

Bar and Pie Charts

Two identical bar charts were generated showing the total number of mice for each drug regimen during the study. This was done using DataFrame.plot and DataFrame.pyplot

Bar chart with DataFrame.plot alt text

Bar chart with DataFrame.pyplot alt text

Pie chart with DataFrame.pyplot alt text

Pie chart with DataFrame.pyplot alt text

Quartiles, Outliers and Boxplots

The final tumor volume of each mouse across four of the most promising treatment regimens was created: Capomulin, Ramicane, Infubinol, and Ceftamin. Afterward the quartiles, IQR, and potential outliers across all the four treatment regimens was quantitatively determined.

A Box and Whiskers Plot

A box and whisker plot of the final tumor volume for all four treatment regimens was generated. alt text

Line and Scatter Plots

The line chart was generated for a selected mouse (b742) treated with Capomulin analyzing tumor volume vs. time point.

alt text

The scatter plot scatter plot of average tumor volume vs. mouse weight for the Capomulin regimen alt text

Correlation and Regression

A correlation coefficient, and linear regression analysis was conducted between mouse weight and average tumor volume for the Capomulin treatment. A Plot of the linear regression model created on top of the previous scatter plot. alt text

Regression

alt text

pymaceuticals-analysis's People

Contributors

claude-hanfou 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.