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


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

random variables

From paulvonhippel at yahoo <paulvonhippel@yahoo.com>
Newsgroups comp.soft-sys.math.mathematica
Subject random variables
Date 2011-07-24 00:24 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j0fona$8og$1@smc.vnet.net> (permalink)

Show all headers | View raw


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?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web