Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: help in generating a gaussian random variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35502] Re: [mg35488] help in generating a gaussian random variable
  • From: BobHanlon at aol.com
  • Date: Wed, 17 Jul 2002 02:08:46 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 7/16/02 5:50:43 AM, dsalman at itee.uq.edu.au writes:

>I need to generate a Gaussian random variable y having mean =0 and variance
>=x.
>
>The variance x is itself a gaussian random variable having a known mean
>and
>variance.
>e.g. mean of x =5;
>variance of x = 10;
>
>Can anyone suggest how to use this information to generate y ?
>

Needs["Statistics`NormalDistribution`"];

data=RandomArray[
      NormalDistribution[0, Random[
          NormalDistribution[5, Sqrt[ 10]]]], {100}];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: Traveling Salesman
  • Next by Date: Re: Factoring problem
  • Previous by thread: Re: help in generating a gaussian random variable
  • Next by thread: RE: help in generating a gaussian random variable