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


Groups > comp.graphics.apps.gnuplot > #828

Re: Gaussian function

From Ron Shepard <ron-shepard@NOSPAM.comcast.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Gaussian function
Organization little, if any
References <aef563b2-f1c4-454d-b20b-6cd369a976a6@l24g2000yqm.googlegroups.com>
Message-ID <ron-shepard-65D9E2.00432607012012@news60.forteinc.com> (permalink)
Date 2012-01-07 00:43 -0600

Show all headers | View raw


In article 
<aef563b2-f1c4-454d-b20b-6cd369a976a6@l24g2000yqm.googlegroups.com>,
 AndreLTR <andreltramos@gmail.com> wrote:

> Hello,
> 
> Would anyone know how to plot a Gaussian function (normal
> distribution), please?  I'm using the function below,
> 
> normal(x, mu, sd) = (1/(sd*sqrt(2*pi)))*exp(-(x-mu)**2/(2*sd**2))
> 
> The plot I'd like to make has these parameters,
> 
> plot normal(x,70,5) title ""
> 
> I set the yrange from zero to one.  The issue at hand is that the
> function should have its maximum at 1 but it does not thus I suppose
> it is wrong.  However i can't figure it out where the error is.
> Therefore, I'd appreciate very much help or a proper function.
> 
> Thanks in advance,
> 
> Andre Luiz

No, the maximum value (which occurs at x==mu) is not 1, as you can 
see just by making that substitution.  What is 1 for a normal 
distribution is the total area under the curve.  Here is some more 
information:

http://en.wikipedia.org/wiki/Normal_distribution

$.02 -Ron Shepard

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-06 20:48 -0800
  Re: Gaussian function sfeam <sfeam@users.sourceforge.net> - 2012-01-06 22:36 -0800
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 02:48 -0800
  Re: Gaussian function Ron Shepard <ron-shepard@NOSPAM.comcast.net> - 2012-01-07 00:43 -0600
  Re: Gaussian function Ingo Thies <ingo.thies@gmx.de> - 2012-01-07 10:44 +0100
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 03:27 -0800
      Re: Gaussian function Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-01-08 16:57 +0100
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 03:29 -0800
      Re: Gaussian function brendan.halpin@ul.ie (Brendan Halpin) - 2012-01-07 12:00 +0000
  Re: Gaussian function "Alex van der Spek" <zdoor@xs4all.nl> - 2012-01-08 09:46 -0500

csiph-web