How to make a Gaussian Fit?

X

Xcal

Anyone knows how to make a Gaussian fit to a histogram data using Python, or
where I can find a library that helps me in this task?

Tks everyone...

Paxcal
 
T

Terry Reedy

Xcal said:
Anyone knows how to make a Gaussian fit to a histogram data using Python, or
where I can find a library that helps me in this task?

The standard way to fit Guassian distributions to data is to match mean and
standard deviation. Take a look in some statistics texts.

TJR
 
C

Carl

Xcal said:
Anyone knows how to make a Gaussian fit to a histogram data using Python,
or where I can find a library that helps me in this task?

Tks everyone...

Paxcal

Install the Numeric module, then
3.0276503540974917

Carl
 
W

Will Henney

Xcal said:
Anyone knows how to make a Gaussian fit to a histogram data using Python, or
where I can find a library that helps me in this task?

This is a special case of non-linear fitting, which you can do with
the modules in ScientificPython. See
http://starship.python.net/~hinsen/ScientificPython/

Here is an extract from the relevant docs...

-----------------------------------------------------------------------
Module Scientific.Functions.LeastSquares
Functions

* leastSquaresFit()

General non-linear least-squares fit using the
Levenberg-Marquardt algorithm and automatic derivatives.
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top