GitHub

@@ -35,7 +35,7 @@ involves specifying a class of distributions, indexed by unknown parameters, and

35353636

The benefit relative to linear regression is that it allows more flexibility in the probabilistic relationships between variables.

373738-

Here we illustrate maximum likelihood by replicating Daniel Treisman's (2016) paper, [Russia's Billionaires](http://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.p20161068), which connects the number of billionaires in a country to its economic characteristics.

38+

Here we illustrate maximum likelihood by replicating Daniel Treisman's (2016) paper, [Russia's Billionaires](https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.p20161068), which connects the number of billionaires in a country to its economic characteristics.

39394040

The paper concludes that Russia has a higher number of billionaires than

4141

economic factors such as market size and tax rate predict.

@@ -636,7 +636,7 @@ print(stats_poisson.summary())

636636

```

637637638638

Now let's replicate results from Daniel Treisman's paper, [Russia's

639-

Billionaires](http://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.p20161068),

639+

Billionaires](https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.p20161068),

640640

mentioned earlier in the lecture.

641641642642

Treisman starts by estimating equation {eq}`poissonreg`, where:

@@ -766,14 +766,14 @@ In this lecture, we used Maximum Likelihood Estimation to estimate the

766766

parameters of a Poisson model.

767767768768

`statsmodels` contains other built-in likelihood models such as

769-

[Probit](http://www.statsmodels.org/dev/generated/statsmodels.discrete.discrete_model.Probit.html)

769+

[Probit](https://www.statsmodels.org/dev/generated/statsmodels.discrete.discrete_model.Probit.html)

770770

and

771-

[Logit](http://www.statsmodels.org/dev/generated/statsmodels.discrete.discrete_model.Logit.html).

771+

[Logit](https://www.statsmodels.org/dev/generated/statsmodels.discrete.discrete_model.Logit.html).

772772773773

For further flexibility, `statsmodels` provides a way to specify the

774774

distribution manually using the `GenericLikelihoodModel` class - an

775775

example notebook can be found

776-

[here](http://www.statsmodels.org/dev/examples/notebooks/generated/generic_mle.html).

776+

[here](https://www.statsmodels.org/dev/examples/notebooks/generated/generic_mle.html).

777777778778

## Exercises

779779

Read the original on github.com ↗