MathGroup Archive 1999

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

Search the Archive

Simulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19353] Simulation
  • From: "Roberto Diego" <r-diego at develnet.es>
  • Date: Fri, 20 Aug 1999 23:09:34 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

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