Standard Deviation of Discrete Random Variable

302 views
Skip to first unread message

Luke Setzer

unread,
Oct 15, 2008, 9:50:52 AM10/15/08
to tinspire
Does the TI-Nspire have a way to compute the standard deviation of a
discrete random variable?

Given a list x and P(x) I can compute mean(x, px) but not any standard
deviation even though the functions have the same syntax.

Nelson Sousa

unread,
Oct 15, 2008, 10:07:46 AM10/15/08
to tins...@googlegroups.com

The standard deviation can be computed the same way as the mean, using the functions stDevSamp (sample standard deviation) and stDevPop (population standard deviation).

Nelson

Luke Setzer

unread,
Oct 15, 2008, 10:51:02 AM10/15/08
to tinspire
x:={0,1,2,3}
px:=(.25,.25,.25,.25}
mean(x,px) 1.5
stDevSamp(x,px) "Error:Domain error"

Nelson Sousa

unread,
Oct 15, 2008, 11:10:55 AM10/15/08
to tins...@googlegroups.com

px is the list of frequencie. If the variable is discret the frequencies should be integers.
Both stdevsamp and stdevpop only accept integer frequencies.

Just use integer frequencies (25 each in this case) and it will give you the expected result for stdevpop (stdevsamp depends on the size of the sample).

However, if data is inserted onto the Spreadsheet and you calculate the 1-var stats you get the correct stdev, even with non-integer frequencies. Only on the calculator page you have that extra limitation.


Nelson

Luke Setzer

unread,
Oct 15, 2008, 11:49:33 AM10/15/08
to tinspire
On Oct 15, 11:10 am, "Nelson Sousa" <nso...@gmail.com> wrote:

> Just use integer frequencies (25 each in this case) and it will give you the
> expected result for stdevpop (stdevsamp depends on the size of the sample).

This method worked.

> However, if data is inserted onto the Spreadsheet and you calculate the
> 1-var stats you get the correct stdev, even with non-integer frequencies.

It took me a while to figure that I had to use the one list version of
this function with px as the frequency list, but, by heck and by gosh,
it worked!

Thanks!
Reply all
Reply to author
Forward
0 new messages