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


Groups > comp.soft-sys.math.mathematica > #3933 > unrolled thread

random variables

Started bypaulvonhippel at yahoo <paulvonhippel@yahoo.com>
First post2011-07-24 00:24 +0000
Last post2011-07-24 00:24 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  random variables paulvonhippel at yahoo <paulvonhippel@yahoo.com> - 2011-07-24 00:24 +0000

#3933 — random variables

Frompaulvonhippel at yahoo <paulvonhippel@yahoo.com>
Date2011-07-24 00:24 +0000
Subjectrandom variables
Message-ID<j0fona$8og$1@smc.vnet.net>
I would like to define a symbol representing a random variable, and
then use that symbol in other expressions. It's not clear to me how to
do that. For example, when I type the following input --

 U = ChiSquareDistribution[n - 1]
 V = 2*U
 W = 3*U
 Mean[V]
 Mean[W]

-- I do not get the mean of the random variables V and W. I know I can
get the desired answer by typing:

V = TransformedDistribution[2*U,
  U \[Distributed] ChiSquareDistribution[n - 1]]
W = TransformedDistribution[3*U,
  U \[Distributed] ChiSquareDistribution[n - 1]]
 Mean[V]
 Mean[W]

But that requires me to redefine the distribution of U every time I
need it.

Is there a way to define U just once?

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web