Problem 4 - X = Y ~ U(0,1) Figure 2 : The region where U...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
% Problem 4.8 Matlab Script clear all , close all , N = 1000000; X = rand([N,2]); figure(1) plot(X(:,1),X(:,2), 'r.' ); U = X(:,1); V = X(:,2)-X(:,1); figure(2) plot(U,V, 'r.' ); meanU = sum(U)/N meanV = sum(V)/N sigmaU = sum(U.^2)/N- meanU.^2; varU = sqrt(sigmaU) sigmaV = sum(V.^2)/N; varV = sqrt(sigmaV) corrUV = sum(U.*V)/N corrCoff = (corrUV - (meanU*meanV))/(varU*varV)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Output Plots of the attached MATLAB script: Figure 1 : The region where X and Y are uniformly distributed
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: X = Y ~ U(0,1) Figure 2 : The region where U and V are uniformly distributed, where U and V are obtained by following transformation U = X ; V = Y-X ; The output obtained by running the given MATLAB script: meanU = 0.5001 meanV = 1.6535e-004 varU = 0.2886 varV = 0.4085 corrUV = -0.0834 corrCoff = -0.7078...
View Full Document

Page1 / 3

Problem 4 - X = Y ~ U(0,1) Figure 2 : The region where U...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online