Exercise

# Statistical significance

In the video we analyzed the horseshoe crab model by predicting `y`

with `weight`

. In this exercise you will assess the significance of the estimated coefficients but with `width`

as explanatory variable instead.

Recall that coefficients help us determine the significance of the relationship that we are trying to model, where a positive sign increases the probability of an event as the predictor increases and vice versa.

The dataset `crab`

is loaded in the workspace.

Instructions 1/2

**undefined XP**

- Import
`statsmodels`

library and`glm`

function from`statsmodels.formula`

api. - Fit a logistic regression model with
`y`

as the response and`width`

as an explanatory variable. - Print model summary using
`.summary()`

to view model results.