MathGroup Archive 1999

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

Search the Archive

Simulation


Hi there,

I need help on how the expression:

data=Table[NestList[#+0.01*Random[Integer,{-1,1}]&,5,1000]];

could be modified in order to get -1 with probability 1/6, 0 with p 4/6 and
1 with p 1/6 instead of 1/3,1/3,1/3

Thanks a lot

Roberto Diego
Sociedad de Bolsas




  • Prev by Date: Re: Element Extraction
  • Next by Date: Characteristic Polynomials and Eigenvalues
  • Previous by thread: InverseLaplaceTransform problems
  • Next by thread: Re: Simulation