 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] Re: rgeom mistake?
| [mathcad] Re: rgeom mistake? |
|
Author: Andy Spragg
Posted: Wed, 11 Jan 2006 17:55:01 +0000
|
To add further confusion, there is the do-you-count-from-1 or
do-you-count-from-0 issue. It might be interesting to change the array
base in the options and seeing if this changes the results you get ...
Andy
Chris Whitford "chw"
11/01/2006 17:25
Please respond to
"mathcad"
To
Mathcad Discussion List "mathcad"
cc
Subject
[mathcad] Re: rgeom mistake?
According to http://en.wikipedia.org/wiki/Geometric_distribution there are
2 alternative definitions: the number of trials until the first success,
or the number of trials before the first success.
Chris
At 16:25 11/01/2006 +0100, you wrote:
When using rgeom to simulate the geometric random variable G I have
values of 0 - which isn't possible for the "trial number
on which the first success occurs". The Help file (and my 2001i manual)
have p(1-p)^k for the probability
of G=k. An exponent k explains why G can indeed by 0 - however every
probability textbook I check
tells me the exponent is k-1, not k, with a smallest possible value of G
equal to 1 and not 0.
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH, UK
+ Tel: +44 (0)116 252 3496, Fax: +44 (0)116 252 2464
+ email: "chw" http://www.star.le.ac.uk/
****************************************************************
Any opinions expressed in this email are those of the individual and not necessarily of RHM plc and/or any of its subsidiaries.
This email and any files transmitted with it are private, may be confidential and are for the intended recipient only. If you are not the intended recipient, be advised that you have received them in error. Please notify the sender of the error, delete all copies of them from your system and destroy any printed copies.
If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this email and any files transmitted with it.
Please rely on your own anti-virus system. No responsibility is taken by RHM plc and/or any of its subsidiaries for any damage arising out of any bug or virus infection.
****************************************************************
|
[View Complete Thread]
Previous by date: [mathcad] RE: Mathcad 13 and C_Dilla, Slezak, Lloyd
Next by date: [mathcad] Re: DSP method, Chris Whitford
Previous thread: [mathcad] DSP method, Mark Smith
Next thread: [mathcad] Re: DSP method, David Burton
|
|
|