Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38090

Re: Maximum Likelihood Estimation

References <e7aa8874-3692-4e32-ba52-5f4719761c24@googlegroups.com> <20130202192609.0257968c157cdabdde805114@gmx.net>
Date 2013-02-02 21:41 +0000
Subject Re: Maximum Likelihood Estimation
From Oscar Benjamin <oscar.j.benjamin@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1302.1359841280.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 2 February 2013 18:26, Wolfgang Keller <feliphil@gmx.net> wrote:
>> I am looking for a Python implementation of Maximum Likelihood
>> Estimation. If any one can kindly suggest. With a google search it
>> seems scipy,numpy,statsmodels have modules, but as I am not finding
>> proper example workouts I am failing to use them.
>
> For statistics I would suggest using R (http://www.r-project.org/)
> through RPy (http://rpy.sourceforge.net/).
>
> Both have dedicated mailinglists as well as extensive documentation.

I agree with Wolfgang that R is likely to be able to do what you want
and that you may have better luck asking this kind of question on
their mailing lists (or on the scipy mailing list).

In any case, though, you will need to be more specific about what you
mean. Maximum Likelihood Estimation (MLE) is a sufficiently vague
topic that there cannot really be an "implementation" of it. What kind
of model/data are you working with? Or are you working with pure
probability distributions? What kind of parameters are you trying to
find? Are the parameters you are trying to choose discrete or
continuous? Are you trying to find one parameter or several
simultaneously? Are you able to find an analytic solution that
transforms your MLE problem into a specific kind of mathematical
problem, such as solving a system of linear equations?

Assuming that you are able to compute directly the likelihood (or
log-likelihood) of whatever it is you are interested in, then your MLE
problem is simply an optimisation problem, so you may have better luck
searching for implementations of optimisation (you will still need to
answer the questions above to be able choose an optimisation method).


Oscar

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Maximum Likelihood Estimation subhabangalore@gmail.com - 2013-02-01 09:17 -0800
  Re: Maximum Likelihood Estimation 88888 Dihedral <dihedral88888@googlemail.com> - 2013-02-01 09:37 -0800
    Re: Maximum Likelihood Estimation subhabangalore@gmail.com - 2013-02-01 10:47 -0800
      Re: Maximum Likelihood Estimation Michael Torrie <torriem@gmail.com> - 2013-02-01 11:59 -0700
      Re: Maximum Likelihood Estimation Jerry Hill <malaclypse2@gmail.com> - 2013-02-01 14:14 -0500
      RE: Maximum Likelihood Estimation tkhan10 <tkhan10@masonlive.gmu.edu> - 2013-02-01 19:01 +0000
        RE: Maximum Likelihood Estimation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-02 10:12 +1100
      Re: Maximum Likelihood Estimation 88888 Dihedral <dihedral88888@googlemail.com> - 2013-02-01 11:55 -0800
  Re: Maximum Likelihood Estimation subhabangalore@gmail.com - 2013-02-01 20:53 -0800
  Re: Maximum Likelihood Estimation Wolfgang Keller <feliphil@gmx.net> - 2013-02-02 19:26 +0100
    Re: Maximum Likelihood Estimation Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-02-02 21:41 +0000

csiph-web