Re: Fwd: Re: OT unix math function: norm

2002-05-28 Thread Klaus-Peter Schrage
Am Dienstag, 28. Mai 2002 02:42 schrieb Joel Hammer: I ran the data both on Excel and with my own bash script. They get close results. I have attached my data.txt and a better ps file, with the labels better spaced out. Sorry, Joel, my statistics used to be quite good 25 years ago, but now

Re: OT unix math function: norm

2002-05-27 Thread Kurt Wall
Scribbling feverishly on May 25, Joel Hammer managed to emit: I am using gnuplot. I want to have bar graphs of data with a superimposed Gaussian distribution, based on the usual mean and standard deviation that the typical spreadsheet calculates from the data. There is a function called norm

Re: Fwd: Re: OT unix math function: norm

2002-05-27 Thread Joel Hammer
I'll send this one directly to you. Klaus -- Weitergeleitete Nachricht -- Subject: Re: OT unix math function: norm Date: Mon, 27 May 2002 19:06:26 +0200 From: Klaus-Peter Schrage [EMAIL PROTECTED] To: [EMAIL PROTECTED] Am Montag, 27. Mai 2002 00:07 schrieb Joel Hammer

Re: OT unix math function: norm

2002-05-27 Thread Klaus-Peter Schrage
Am Montag, 27. Mai 2002 00:07 schrieb Joel Hammer: Ok, I can see now what you want - thought about replying off list, but I have seen more devious discussions on this list -;) Although I don't have the data underlying your bar graph, one can see by mere visual inspection of your plot

Re: OT unix math function: norm

2002-05-27 Thread Alan Jackson
When I have done that I have calculated the mean and standard deviation, and then used those to create a gaussian curve. You also need to normalize the curve to fit the data, since a normal gaussian distribution is normed to 1, but that is just a scale factor. On Sun, 26 May 2002 18:07:45

Re: OT unix math function: norm

2002-05-26 Thread Klaus-Peter Schrage
Am Samstag, 25. Mai 2002 20:53 schrieb Joel Hammer: Joel, I never noticed gnuplot before, but having read your posting I took some tentative steps. As to your problem, I think it's obvious: norm(x) is, as you have said too, the CUMULATIVE distribution function ('s-shaped' curve) with

Re: OT unix math function: norm

2002-05-26 Thread Joel Hammer
Thanks for the answer. It is helpful. What I would like to do is make a Gaussian normal curve that will superimpose itself over bar graphs showing a population distribution. The idea is to give an immediate visual impression of how far from normal the population data is given the population mean

OT unix math function: norm

2002-05-25 Thread Joel Hammer
I am using gnuplot. I want to have bar graphs of data with a superimposed Gaussian distribution, based on the usual mean and standard deviation that the typical spreadsheet calculates from the data. There is a function called norm in the gnuplot program which sounds like this is what I need.

Re: OT unix math function: norm

2002-05-25 Thread Joel Hammer
Oh well. I messed around with norm. It looks like it just gives the cumulative frequency, which doesn't help. So, I programmed gnuplot to give the Gaussian frequency for any given x,u,and variance. It seems to work. If anyone cares, here it is: f(x)=exp(-((x-u)**2/(2*var)))/(sqrt(2*pi*var))