emplike.rst 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
.. currentmodule:: statsmodels.emplike


.. _emplike:


Empirical Likelihood :mod:`emplike`
====================================


Introduction
------------

Empirical likelihood is a method of nonparametric inference and estimation that lifts the
obligation of having to specify a family of underlying distributions.  Moreover, empirical
likelihood methods do not require re-sampling but still
uniquely determine confidence regions whose shape mirrors the shape of the data.
In essence, empirical likelihood attempts to combine the benefits of parametric
and nonparametric methods while limiting their shortcomings.  The main difficulties  of
empirical likelihood is the computationally intensive methods required to conduct inference.
:mod:`statsmodels.emplike` attempts to provide a user-friendly interface that allows the
end user to effectively conduct empirical likelihood analysis without having to concern
themselves with the computational burdens.

Currently, :mod:`emplike` provides methods to conduct hypothesis tests and form confidence
intervals for descriptive statistics.  Empirical likelihood estimation and inference
in a regression, accelerated failure time and instrumental variable model are
currently under development.

References
^^^^^^^^^^

The main reference for empirical likelihood is::

    Owen, A.B. "Empirical Likelihood." Chapman and Hall, 2001.



Examples
--------

.. ipython:: python

  import numpy as np
  import statsmodels.api as sm

  # Generate Data
  x = np.random.standard_normal(50)

  # initiate EL
  el = sm.emplike.DescStat(x)

  # confidence interval for the mean
  el.ci_mean()

  # test variance is 1
  el.test_var(1)


Module Reference
----------------

.. module:: statsmodels.emplike
   :synopsis: Empirical likelihood tools

.. autosummary::
   :toctree: generated/

   descriptive.DescStat
   descriptive.DescStatUV
   descriptive.DescStatMV