Question 5 and correlation coefficient Here we will simulate the random variables for their covariance and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 5 and correlation coefficient Here we will simulate the random variables for their covariance and correlation coefficient. We will also learn how to generate correlated random variables for a given correlation coef- ficient. (a) Generate two standard Gaussian random variables for 100.000 samples. Make sure you generate the random variables correctly by checking their means and variances. (b) Matlab Simulations - Numerical calculation for covariance Through your simulation data, determine the covariance and the correlation coefficient between the generated data. Compare your values with Matlab's cov and corrcoef functions and observe that they agree, or the functions available from the libraries of your programming platform. We assume that Matlab or your random variable generator generates uncorrelated values. Hence, you should observe that the covariance and correlation coefficient to be close to zero. (c) One way to introduce correlation between to random variables, X₁ and X₂ is to generate a new normal random variable, X3 with zero mean and 1-p² variance, i.e. X3 (0,1-p²), and then modifying X₁ as X₁ = p.X₂ + X3 where p is the correlation coefficient. Modify X₁ according to the above formula so that the correlation coefficient between X₁ and X₂ is p. Verify this by using Matlab's corrcoef function. (d) Now generalize the above approach and introduce 0.7 correlation coefficient for two normal random variables with μ₁ = 3, o=3 and p2 = 10, 0 =5. Verify your implementation by checking the means, variances, and correlation coefficient between the random variables, X₁ and X₂. Question 5 and correlation coefficient Here we will simulate the random variables for their covariance and correlation coefficient. We will also learn how to generate correlated random variables for a given correlation coef- ficient. (a) Generate two standard Gaussian random variables for 100.000 samples. Make sure you generate the random variables correctly by checking their means and variances. (b) Matlab Simulations - Numerical calculation for covariance Through your simulation data, determine the covariance and the correlation coefficient between the generated data. Compare your values with Matlab's cov and corrcoef functions and observe that they agree, or the functions available from the libraries of your programming platform. We assume that Matlab or your random variable generator generates uncorrelated values. Hence, you should observe that the covariance and correlation coefficient to be close to zero. (c) One way to introduce correlation between to random variables, X₁ and X₂ is to generate a new normal random variable, X3 with zero mean and 1-p² variance, i.e. X3 (0,1-p²), and then modifying X₁ as X₁ = p.X₂ + X3 where p is the correlation coefficient. Modify X₁ according to the above formula so that the correlation coefficient between X₁ and X₂ is p. Verify this by using Matlab's corrcoef function. (d) Now generalize the above approach and introduce 0.7 correlation coefficient for two normal random variables with μ₁ = 3, o=3 and p2 = 10, 0 =5. Verify your implementation by checking the means, variances, and correlation coefficient between the random variables, X₁ and X₂.
Expert Answer:
Answer rating: 100% (QA)
Here are the stepbystep workings for each part of the question a 1 Generate N 100000 standard normal random variables for X1 X1 normrnd01N1 2 Generate ... View the full answer
Related Book For
Essentials Of Statistics For The Behavioral Sciences
ISBN: 9781464107771
3rd Edition
Authors: Susan A. Nolan
Posted Date:
Students also viewed these accounting questions
-
Two Gaussian random variables X and Y, with zero means and variances Ï 2 , between which there is a correlation coefficient p, have a joint probability-density function given by The marginal pdf...
-
A Gaussian random variable with zero mean and variance 2X is applied to a device that has only two possible outputs, 0 or 1. The output 0 occurs when the input is negative, and the output 1 occurs...
-
Here are two random variables that are uncorrelated but not independent. Let X and Y have the following joint probability mass function: a. Use the definition of independence on page 141 to show that...
-
A strain relaxation test and a creep test are being conducted on a mouse Achilles tendon. If a strain of \epsi 0 = 60% is applied in the strain relaxation test and a stress of \ sigma 0 = 1 MPa is...
-
Spring Waters, Inc., produces bottled drinks. The New York Division acquires the water, adds carbonation, and sells it in bulk quantities to the New Jersey Division of Spring Waters and to outside...
-
Selected data from the financial statements of Lopez Company follow. Required: Determine whether the debt-to-equity ratio is increasing or decreasing and whether Lopez should be concerned. 2011 2010...
-
\(6 \times 23\) Use clock arithmetic \((\bmod 12)\), to perform the indicated calculation.
-
Youre the manager of global opportunities for a U.S. manufacturer, who is considering expanding sales into Europe. Your market research has identified three potential market opportunities: England,...
-
you can choose to invest into a risky portfolio with an expected return of 20% and a standard deviation of 25%. The T-bill rate is 5%. In your portfolio, you invest 20%, 30%, and 50% in stock A, B,...
-
Gourmet Coffee (GC) is a specialty coffee shop that sells roasted coffee beans. It buys green beans, roasts them in its shop, and then sells them to the consumer. GC estimates that it sells about...
-
The high cost of healthcare is a major challenge we are faced with here in the US. How does pricing factor into this? What could we do to fix this chicken and egg dilemma?
-
Give two (2) examples of communication strategies when implementing a continuous-improvement initiative. Give Two (2) examples of business-related processes related to your chosen communication...
-
It carries out a synthesis on the topic of efficiency in the Walrasian balance and proposes an application case on a real-life topic. (Practical case explained step by step) Remember that it is only...
-
n people decide to elect a leader by arranging themselves in a circle and eliminating every m-th person around the circle, closing ranks as each person drops out. The problem is to find out which...
-
The matter of self-representation is a strong social issue. Many believe the cost of lawyers is to blame preventing the poor, low income and even the middle-class out of being fairly represented...
-
VR-X issued 100,000 common stocks at par value of $12 to expand its business 3 years ago specialized in interior design services. The company has just paid a dividend of $2 per share and predicts for...
-
On January 1, 2024, the Brunswick Hat Company adopted the dollar-value LIFO retail method. The following data are available for 2024: Beginning inventory Net purchases Cost $ 78,880 119,040 Retail $...
-
Define deferred revenue. Why is it a liability?
-
Why is it important to identify the independent variable and the dependent va riable before creating a visual display?
-
In order to comp ute statistics, we need to have working formulas. For the following, (i) identify the incorrect symbol, (ii) state what the correct symbol should be, and (iii) explain why the...
-
When the average height or average weight of children is plotted to create growth charts, do you think it would be appropriate to use the mean for these data? There are often outliers for height, but...
-
Which of the following is not a way to develop a standard cost? a. By using a fixed rate that is higher every period. b. By performing time and motion studies. c. By analyzing past data. d. By using...
-
The total material variance can be divided into a material _________variance and a material _________variance.
-
Which of the following statements correctly de scribes an unfavorable material price variance? a. Too much material was purchased. b. A higher price was paid for material purchased compared with the...
Study smarter with the SolutionInn App