+ Reply to Thread
Results 1 to 23 of 23

Poisson distribution - simulation

Hybrid View

Hjahren Poisson distribution -... 03-09-2010, 10:19 AM
JeanRage Re: Poisson distribution -... 03-09-2010, 10:24 AM
shg Re: Poisson distribution -... 03-09-2010, 11:58 AM
Hjahren Re: Poisson distribution -... 03-10-2010, 05:54 AM
Hjahren Re: Poisson distribution -... 03-10-2010, 05:58 AM
shg Re: Poisson distribution -... 03-10-2010, 11:40 AM
jane657 Re: Poisson distribution -... 08-14-2021, 09:09 AM
Hjahren Re: Poisson distribution -... 03-11-2010, 05:35 AM
Hjahren Re: Poisson distribution -... 03-11-2010, 06:43 AM
Hjahren Re: Poisson distribution -... 03-11-2010, 09:39 AM
shg Re: Poisson distribution -... 03-11-2010, 11:05 AM
Hjahren Re: Poisson distribution -... 03-12-2010, 08:31 AM
Hjahren Re: Poisson distribution -... 03-15-2010, 01:38 PM
shg Re: Poisson distribution -... 03-15-2010, 01:42 PM
Hjahren Re: Poisson distribution -... 03-16-2010, 06:23 AM
shg Re: Poisson distribution -... 03-16-2010, 10:59 AM
npc008 Re: Poisson distribution -... 08-14-2013, 06:12 AM
Hjahren Re: Poisson distribution -... 03-16-2010, 06:50 PM
shg Re: Poisson distribution -... 03-16-2010, 07:00 PM
Hjahren Re: Poisson distribution -... 03-16-2010, 07:23 PM
Hjahren Re: Poisson distribution -... 04-12-2010, 09:00 AM
  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Poisson distribution - simulation

    Welcome to the forum.

    You want a function that generates random variates with Poisson distribution?
    Last edited by shg; 03-09-2010 at 12:01 PM.
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    173

    Re: Poisson distribution - simulation

    I am trying to model a stock price simulation with jumps (jump diffusion process). I want the variable to show "1" if the jump occurs. The jump is poisson distributed and can occur more than once in my interval (250 days), I would like to have the ability to adjust the frequency (lambda) of the jumps.

  3. #3
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    173

    Re: Poisson distribution - simulation

    yes, I want a function which generate variates with poisson distribution.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Poisson distribution - simulation

    Function RandPois(Lambda As Single, _
                      Optional bVolatile As Boolean = False) As Long
        ' shg 2007
        
        ' UDF or VBA
    
        ' Returns a random Poisson variate with variance Lambda
        ' Knuth, Seminumerical Algorithms, p 132
    
        Dim L           As Single
        Dim k           As Long
        Dim p           As Single
    
        If bVolatile Then Application.Volatile
    
        L = Exp(-Lambda)
        p = 1
        Do
            k = k + 1
            p = p * Rnd
        Loop Until p <= L
    
        RandPois = k - 1
    End Function

  5. #5
    Registered User
    Join Date
    04-25-2009
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Poisson distribution - simulation

    ignore this reply.
    Last edited by jane657; 08-14-2021 at 09:42 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1