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...
-
Equation 6.5 gives the short run variable cost function for Japanese beer as VC = 0.55q1.67. If the fixed cost is 600 and the firm produces 550 units, deter-mine the C, VC, MC, AFC, and AVC. What...
-
Gear C has a mass of 5 kg and a centroidal radius of gyration of 75 mm. The uniform bar AB has a mass of 3 kg and gear D is stationary. If the system is released from rest in the position shown,...
-
The wreck of the S.S. Central America waited 130 years at the bottom of the ocean for someone to come along and claim its trove of gold. Thomas G. Thompson, funded by a multitude of investors, was...
-
Relevant-cost approach to pricing decisions. Burst, Inc., cans peaches for sale to food distributors. All costs are classified as either manufacturing or marketing. Burst prepares monthly budgets....
-
The graph below shows the number of people who consume different numbers of lollipops per year. What is the median number of lollipops consumed? Number of People 3 27 24 21 18 15 12 96 Number of...
-
For the past several years, Jolene Upton has operated a part-time consulting business from her home. As of July 1, 2019, Jolene decided to move to rented quarters and to operate the business, which...
-
Rey Salazar sold his shares of a qualified small business corporation. Rey's shares had an aggregate fair market value of $620,000 at the sale date of December 31. Rey's total adjusted cost base of...
-
Prince Aladdin bought a machine for use in his business on 1 November 2004. He gave the supplier a cheque for $11,570 and traded in an old machine. The supplier allowed him $4,430 in part exchange...
-
Calculate the bond prices and Macaulay durations of the 99-year ("century") Penn bond, the 30-year T-bond, and the 30-year Zero under three possible interest rate scenarios in August 2020?
-
The contractor uses the first-in, first-out (FIFO) inventory pricing method. The contractor's inventory contained 50 units that cost $100 each. Two weeks later, the contractor acquires another 50...
-
With sales up, Haldamne's planned sales volume for March is $64000. Their manager plans reductions of $2500. Haldamne has $190000 stock on hand at the end of February. the manager plans on EOM stock...
-
Which act requires banks to develop security policies and procedures designed to protect customer account information and financial data?
-
In order for the system to be in equilibrium, what should be the values of P. and Py? Py=? P.=? water +4 220kPa 1.2m 1.2m 1.2m 1.7m 2m mercury 2.2m mercury
-
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...
-
Assume a stock is priced at $100; calculate its intrinsic value based on the Gordon growth DDM, with the following assumptions: D0 = $3, g = 6 percent, and k = 10 percent. Indicate whether investors...
-
The simplest sequential description of the Ewens sampling formula is called the Chinese restaurant process. The first customer arrives and is seated at a table. After \(n\) customers have been...
-
Suppose Borg Corporation was operating at 88 percent of capacity. What would sales be at full capacity? What is the EFN in this case? What is the capital intensity ratio at full capacity?
Study smarter with the SolutionInn App