+ Reply to Thread
Results 1 to 3 of 3

My Distributions are Not Correlated Correctly

  1. #1
    Registered User
    Join Date
    01-20-2016
    Location
    Chicago, Illinois
    MS-Off Ver
    2013
    Posts
    1

    Post My Distributions are Not Correlated Correctly

    My problem is that I have been given two distributions of around 5,000 variables that have a correlation of 0 because they are randomly generated numbers. However, I cannot figure out how to alter one of the distributions so that the two distributions have a specific, and changeable correlation.

    One option I have found online so far was Cholesky's Decomposition, but I'm not sure how to set this up in excel.

    Thanks,

    illiniIPA
    Last edited by illiniIPA; 01-21-2016 at 12:23 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,925

    Re: Apply a Certain Correlation to Two Distributions

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,357

    Re: My Distributions are Not Correlated Correctly

    I will assume that your amended title is acceptable.

    I think you will need to help us understand the math behind what you want to do before we can help you. From what I have gathered in some quick internet searches:

    Wikipedia's article talks mostly about using the Cholesky decomposition in solving systems of equations. I cannot readily see how your problem reduces to a "solve a system of equations" kind of problem. If this is how Cholesky's decomposition would apply to your problem, I would probably suggest that you set up your system of equations and then use Excel's built in MINVERSE() function (which uses QR decomposition rather than Cholesky's decomposition) to help solve the system of equations.

    If it does not reduce to a system of equations, but the Cholesky decomposition fits into the problem in a different way, generating the Cholesky decomposition should be as "simple" as working through the Gaussian elimination steps to generate the decomposition matrices. These steps can be accomplished in Excel using the MMULT() function.

    If the Cholesky decomposition is not an integral part of the solution, I could see using Solver for this sort of thing. Given two data sets, and using the CORREL() function (or whatever function represents your "correlation" score), you could call Solver and tell it to set the CORREL() function cell to a value of -0.05 by changing one or more of the values in the 2nd data set. I expect there are multiple possible solutions to most of these problems. If any solution is acceptable (and you don't need to find a specific solution), this might be the easiest to implement in Excel.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Using RAND() with Different Distributions!?
    By bj in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] Using RAND() with Different Distributions!?
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2005, 02:05 PM
  3. [SOLVED] Using RAND() with Different Distributions!?
    By bj in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 AM

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