Get startedGet started for free

Plotting fitted values

Using the previously fitted Poisson regression model of horseshoe crab data with sat as the response and width as the explanatory variable you will visually assess the model fit and compare to the previously visualized linear model.

The crab data and Poisson regression model saved as model are loaded in the workspace.

This exercise is part of the course

Generalized Linear Models in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Add fitted values to the fit_values column of crab dataframe
crab[____] = ____.____
Edit and Run Code