+ Reply to Thread
Results 1 to 4 of 4

Statistics Problem - Generate Trial Data

  1. #1
    Registered User
    Join Date
    08-21-2010
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2003
    Posts
    45

    Statistics Problem - Generate Trial Data

    Hello,

    I have a data set with a time series containing mean values, and values that are 1 standard deviation likely to occur on either side of the mean value (i.e. 34.1% likely). Figuring an answer for just one year's data is sufficient, since I will be able to extend the solution to the other years. I'd like to use a log-normal distribution to randomly generate trial values for each year (i.e. simulation, not an expected value). Splitting the log-normal distribution into a piece-wise function around the mean is OK. I have tried a number of approaches, but none have been promising; so I won't complicate the presentation with them. I've attached a workbook.

    Any help appreciated!

    Greg
    Attached Files Attached Files

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

    Re: Statistics Problem - Generate Trial Data

    Here are two UDFs (RandLogNorm and RandLogNormMV) that generate log normal deviates, depending on your parameters.

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-21-2010
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Statistics Problem - Generate Trial Data

    Thanks for the code. Unfortunately I'm not great with VB. I tested the custom function as RandLogNormMV(0,1) and it returned a #NAME? error. Would you please upload a copy of the example with the code functioning within it? I should be able to do the application of the formula from that point.

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

    Re: Statistics Problem - Generate Trial Data

    See attached.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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