1. Learn
  2. /
  3. Courses
  4. /
  5. Experimental Design in Python

Connected

Exercise

Visual normality in an agricultural experiment

You have been contracted by an agricultural firm conducting an experiment on 50 chickens, divided into four groups, each fed a different diet. Weight measurements were taken every second day for 20 days.

You'll analyze chicken_data to assess normality, which will determine the suitability of parametric statistical tests, beginning with a visual examination of the data distribution. The necessary packages for analysis have been imported for you:

import seaborn as sns
import pandas as pd
from statsmodels.graphics.gofplots import qqplot

Instructions 1/3

undefined XP
  • 1
    • Plot the distribution of the chickens' weight using the kernel density estimation (KDE) to visualize normality.
  • 2
    • Create a qq plot with a standard line of the chickens' weight to assess normality visually.
  • 3
    • Subset chicken_data for a 'Time' of 2, and plot the KDE of 'weight' from subset_data to check if data is normal across time.