BaşlayınÜcretsiz Başlayın

Examining y, tc, and cdl

Now, you'll focus on tc, hdl, and y, to understand the relationship between a few independent variables and the dependent one, disease progression. The diabetes dataset has been loaded as the DataFrame dia.

Later in the course, you'll use a simulation to measure the impact of predictors on responses, so having an initial understanding of relationships between variables will help you understand your simulation results later on!

The following libraries have been imported for you: pandas as pd, numpy as np, matplotlib.pyplot as plt, and seaborn as sns.

Bu egzersiz

Monte Carlo Simulations in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Use .pairplot() to visually examine tc, hdl, and y in dia.
  • Measure the correlation coefficients between tc, hdl, and y in dia.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a pairplot of tc, hdl, and y
____
plt.show()

# Calculate correlation coefficients
print(____)
Kodu Düzenle ve Çalıştır