+ Reply to Thread
Results 1 to 5 of 5

exponentially correlated random variables

  1. #1
    Registered User
    Join Date
    03-22-2021
    Location
    Great Lakes area, USA
    MS-Off Ver
    Office 365
    Posts
    2

    exponentially correlated random variables

    Hi!

    Can anyone please help me in generating exponentially correlated random variables?
    I'm currently using this function that works well to generate linearly correlated random variables:

    If Z1 and Z2 are each independent standard normal random variables,
    i.e., each is NORMINV(RAND(),0,1), then to get X and Y with correlation
    rho, use

    X = MeanX + StDevX*Z1

    Y = MeanY + StDevY*(Z1*rho + Z2*(1-rho^2)^0.5)

    Rho is any value from -1 to +1 (-ve to +ve correlation).

    This is what the above looks like on a scatter plot:
    image1.png

    What I need to simulate is something that has this kind of exponential component to it:
    image2.png

    Thanks
    -Lisa

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: exponentially correlated random variables

    Not sure what it is doing, but to set up randomize value from -1 to 1

    rho:
    =RAND()*2-1
    Quang PT

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: exponentially correlated random variables

    Can you provide a more worked example? What does "exponentially correlated" mean in your case?

    When I think of an exponential correlation, I think of y=b*exp(mx) which translates into log(y)=log(b)+mx when you take the logarithm of both sides. It should be evident that log(y) is a straight line function of x. By taking the logarithm of your y values, you can then use the same techniques you are using for your linear correlation. Is that the kind of problem you are trying to work out, or are you doing something different?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    03-22-2021
    Location
    Great Lakes area, USA
    MS-Off Ver
    Office 365
    Posts
    2

    Re: exponentially correlated random variables

    Thanks MrShorty for the idea of applying the log to the Y values, I'll play with that and see if it does the trick.

    Hope the images that I attached made it through as they show the 2 cases of correlated values, one linear correlation and the second exponentially correlated. The latter means in my case that as the x-values increase, the y-values will increase (simple correlation), but as X grows, Y should grow faster and faster. This is for research involving pressure (x-axis) and heat generated under volatile conditions (y -axis), thus the need to randomize (or de-correlate) the y-values, but within defined parameters (Rho, but you can call it whatever) in excel function-wise it's =pearson(x,y) except in this case the result of this function is used as one of the inputs to generate Y such that when =pearson(x,y) is run on the generated random correlated variables, it will yield a number close to the correlation coefficient that was requested.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: exponentially correlated random variables

    Maybe formulas like the following would produce the type graph you want:
    X values: =ROUNDUP(ROWS(A$1:A1)/5,0)
    Y values: =RANDBETWEEN(SUM(A2,-A2/5),PRODUCT(A2,2))
    Note that the values will change when the F9 key is pressed.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating unique scores based on two correlated variables' trend
    By alabama55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2016, 07:06 AM
  2. [SOLVED] Increasing percentage exponentially
    By PMI_PROJECTS in forum Excel General
    Replies: 6
    Last Post: 11-25-2014, 11:23 AM
  3. Random formula for two variables
    By jstoler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2014, 11:29 AM
  4. Exponentially Weighted Moving Averages
    By controlfreak in forum Excel General
    Replies: 0
    Last Post: 01-09-2014, 12:12 PM
  5. [SOLVED] Shared Excel file with vlookup's expanding exponentially.
    By jkoch1 in forum Excel General
    Replies: 7
    Last Post: 01-17-2013, 01:06 PM
  6. Generating correlated random uniform numbers
    By huntp1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2012, 08:31 PM
  7. [SOLVED] Generating Correlated Random Values in Excel
    By Randy in forum Excel General
    Replies: 2
    Last Post: 01-16-2005, 06:06 PM

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