MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

A nasty 2x2 system of equations?

  • To: mathgroup at
  • Subject: [mg54098] A nasty 2x2 system of equations?
  • From: Bruce Colletti <vze269bv at>
  • Date: Thu, 10 Feb 2005 02:47:14 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Re Mathematica 5.1.

The code below keeps running without getting an answer.  Is the code flawed or is this a really nasty system of 2-equations in 2-unknowns?

Here's background:  X and Y are independent beta-distributed random variables and Z is a convex combination of X and Y, i.e., Z = cX + (1 - c)Y.  

Although Z need not be beta-distributed, let's pretend it is and in turn, solve for its parms (a3 and b3) in terms of c and the known parms of X and Y.  




X = BetaDistribution[a1, b1]; 
Y = BetaDistribution[a2, b2]; 
Z = BetaDistribution[a3, b3]; 

Solve[{Mean[Z] == c*Mean[X] + (1 - c)*Mean[Y], 
   Variance[Z] == c^2*Variance[X] + (1 - c)^2*Variance[Y]}, {a3, b3}]

  • Prev by Date: Re: Mathematica to TeX
  • Next by Date: Re: precision of numbers
  • Previous by thread: PrimePowerQ
  • Next by thread: Re: A nasty 2x2 system of equations?