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

Visualizing multiple explanatory variables

Plotting has similar issues as with the linear regression case: it quickly becomes difficult to include more numeric variables in the plot. Here you'll look at the case of two numeric explanatory variables, and the solution is basically the same as before: use color to denote the response.

Here there are only two possible values of response (zero and one), both in the actual dataset and the predicted dataset.

churn and prediction_data are available.

Bu egzersiz, kursun bir parçasıdır

Intermediate Regression with statsmodels in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Using churn, plot recency vs. length of relationship, colored by churn status
____

# Show the plot
plt.show()
Kodu Düzenle ve Çalıştır