[Date Index] [Thread Index] [Author Index]
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?