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

Visualize the response

In the video you learned the main characteristics of the Poisson random variable and how its distribution changes as the parameter \(\lambda\) changes. In this exercise, you will examine the response variable visually to assess the parameter value, spread of the distribution or its skewness.

You will use the crab dataset which you used in previous chapter exercises, but now you will analyze the number of satellite crabs sat, instead of whether there is at least one, near the nesting place.

The crab dataset has been preloaded in the workspace.

Bu egzersiz

Generalized Linear Models in Python

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

Egzersiz talimatları

  • Import seaborn library as sns.
  • Import matplotlib library as plt
  • Using the distplot() function plot satvariable.
  • Display the plot using show() function.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import libraries
import ____ as sns
import ____.pyplot as plt

# Plot sat variable
sns.____(____[____])

# Display the plot
plt.____
Kodu Düzenle ve Çalıştır