LoslegenKostenlos loslegen

Explore HDL and BMI results

In this exercise, you'll explore simulation results for two variables: bmi and hdl. The simulated results for differences in predicted y values for people in the fourth quantile compared to the first quantile for each predictor (one at a time) have been generated and loaded as df_diffs for you.

The following libraries have been imported: pandas as pd, numpy as np, scipy.stats as st, matplotlib.pyplot as plt, and seaborn as sns. The diabetes dataset, dia, is also loaded.

Diese Übung ist Teil des Kurses

Monte Carlo Simulations in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Create a pairplot of bmi and hdl
sns.____
plt.show()
Code bearbeiten und ausführen