Combining the two csv data sets through an inner merge, I found duplicate rows with the same Mouse ID and Timepoints:
- Each mouse should only have a single row per time point.
- The duplicates timepoints I decided to drop were most probably associated with human error or the instrument taking the same value twice.
Looking at the summary statistics, Capomulin and Ramicane are the two drugs in the study showing the most promising values.
-
The same observation can be made in the bar chart, where the number of measurements for the above-mentioned drugs is greater than the others, meaning the mice died at a later date.
-
This also can be easily observed by plotting the data using a boxplot.
-
Analyzing 4 mice data only, Catamulin seems to show a clear path of success in the drug trial: as the trial progresses, the tumor volume values significantly lower in all cases in the exam.
-
Lastly, the correlation between mouse weight and Average tumor volume is 0.84. This is a strong positive correlation, which means that weight plays a role: the volume of the tumor increases linearly with the increase of the weight of the mouse.
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.
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'spyplotthat 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'spyplotthat 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.
-
Select a mouse that was treated with Capomulin and generate a line plot of tumor volume vs. time point for that mouse.
-
Generate a scatter plot of mouse weight versus average tumor volume for the Capomulin treatment regimen.
-
Calculate the correlation coefficient and linear regression model between mouse weight and average tumor volume for the Capomulin treatment. Plot the linear regression model on top of the previous scatter plot.
-
Look across all previously generated figures and tables and write at least three observations or inferences that can be made from the data. Include these observations at the top of notebook.
Here are some final considerations:
- You must use proper labeling of your plots, to include properties such as: plot titles, axis labels, legend labels, x-axis and y-axis limits, etc.