Solved by Expert Tutors
Solved by Expert Tutors
Question

This is about a statistical computing problem. Can some solve this? Coding in R is preferred.

1.png
7) Given a probability distribution F and a point x 6 Rd, at depth Mam“ D measures . ‘ _ d
how close x is to the center of the distribution and defines a rank order on pomt-S m R with respect to F. Observations which are far from the center of the data are given low ranks, whereas observations close to the center receive higher ranks. The Mahalano‘ois
depth MD“; F) of a vector is with respect to a distribution function F with mean vector
piF and dispersion matrix 2;: is defined to be MD(t; F) = [1 + it — #F)’231(t — “tell—1- The sample version is computed by plugging in estimated ftp and $1.1. 0 5.. Write a program to generate a sample of size n from a bivariate normal distribution
(F) with mean up = (O, 0), unit variances and Correlation 0.5. If you code in R1 see the function mahalanobis(x, center, cov). Let n = 10. Print the observations, their
mean and covariance, and the depth of each data point. Find and print the bivariate median; i.e. the bivariate vector that maximizes the depth function. e b. Generate n = 1000 bivariate observations from F. Plot all observations and identify the lowest 5 percent of the data in red.

Step-by-step answer

usce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsumat, ulxlec fac0ec fac0ec facec facottec factec fac0txec facec facec fac0txec factec facec fac,tat, ulicitur laoreet.


ultrices ac magna. Fusce dui lectus, congue v

acinia pulvi

nec facilisi


ctum vitae odio. Donec aliquet. L


ongue ve

amet, consectetur adipiscing elit

risus ante, dapibu

l

Donec aliquet. Lo

ctum vitae odio.


iscing elit. Nam lacinia pulvi

risus ante, dapibus


icitur laoreet. Nam risus ante, d


entesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, u

l

ongue vel lao

usce dui


depth.PNG


ur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, di


ctum vitae od

or nec facilisis. Pelllestie consequaiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pell


ac, dictum vitae odio. Donec aliqueec aliquellentesque dapibus ef


Fusce dui lectus, congue velrisus ante, dapibux


tesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congu


onec aliquet. Lorem ipl


dictum vitae odio. Donec aliquet. Lorem ipsum d


ur laoreet. Nam risus ante, dapibus a molestie consequat,


sque dapi


depth2.PNG

depth.PNG
r

Subscribe to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question