Different maximum values.....

Use this forum to post Vensim related questions.
Post Reply
lorenzo.cioni
Senior Member
Posts: 102
Joined: Wed Jul 30, 2014 7:09 am
Vensim version: PLE

Different maximum values.....

Post by lorenzo.cioni »

Hi everybody
pliiiisss look at the attached model... I need to understand why the two gaussian curves (one obtained with a mathematical formula the other with a Vensim model) show such different values at their maximum (one is correctly at 1 the other at 0.008).
Best regards 8) 8)
Lorenzo
Attachments
TEST_gaussiandestribution2mod.mdl
(4.25 KiB) Downloaded 263 times
tomfid
Administrator
Posts: 3877
Joined: Wed May 24, 2006 4:54 am

Re: Different maximum values.....

Post by tomfid »

The expression for the Gaussian is incomplete. The full pdf is:

1/SQRT(2*pi)/sigma*EXP( (x-mu)^2/2/sigma^2 )

That partially reconciles the two. They still differ, but I don't understand the rationale for the DIFF version, so I can't really comment on that, except to point out that it doesn't work for sigma=1.
lorenzo.cioni
Senior Member
Posts: 102
Joined: Wed Jul 30, 2014 7:09 am
Vensim version: PLE

Re: Different maximum values.....

Post by lorenzo.cioni »

tomfid wrote:The expression for the Gaussian is incomplete. The full pdf is:

1/SQRT(2*pi)/sigma*EXP( (x-mu)^2/2/sigma^2 )

That partially reconciles the two. They still differ, but I don't understand the rationale for the DIFF version, so I can't really comment on that, except to point out that it doesn't work for sigma=1.
Hi
thank you a lot.... a really stupid mistake.... the rationale of the Vensim model is to generate the Gaussian dynamically and non through a formula....
Lorenzo
tomfid
Administrator
Posts: 3877
Joined: Wed May 24, 2006 4:54 am

Re: Different maximum values.....

Post by tomfid »

What's the real world explanation of what you're trying to accomplish here?
lorenzo.cioni
Senior Member
Posts: 102
Joined: Wed Jul 30, 2014 7:09 am
Vensim version: PLE

Re: Different maximum values.....

Post by lorenzo.cioni »

tomfid wrote:What's the real world explanation of what you're trying to accomplish here?
Hi
I really don't know... it is included in a bigger model from one of my students as his final project so he is still working on it...
Regards
LC
tomfid
Administrator
Posts: 3877
Joined: Wed May 24, 2006 4:54 am

Re: Different maximum values.....

Post by tomfid »

One way to generate an approximate Gaussian dynamically is to use a delay chain with a lot of levels. The SMOOTHN or DELAYN functions are convenient for this. A single level of a smooth or 1st order delay is an Exponential or Erlang(1) distribution. As you reach a large number, it converges to Gaussian. The output of a SMOOTH3 already looks pretty close if you feed it a PULSE input.
lorenzo.cioni
Senior Member
Posts: 102
Joined: Wed Jul 30, 2014 7:09 am
Vensim version: PLE

Re: Different maximum values.....

Post by lorenzo.cioni »

tomfid wrote:One way to generate an approximate Gaussian dynamically is to use a delay chain with a lot of levels. The SMOOTHN or DELAYN functions are convenient for this. A single level of a smooth or 1st order delay is an Exponential or Erlang(1) distribution. As you reach a large number, it converges to Gaussian. The output of a SMOOTH3 already looks pretty close if you feed it a PULSE input.
Hi
thank you a lot for this precious suggestion...
Best regards
Lorrenzo
Post Reply