Question: Using R 3. One can measure how far a data point is from the sample mean in terms of standard deviation units. Consider for instance

Using RUsing R 3. One can measure how far a data point is

3. One can measure how far a data point is from the sample mean in terms of standard deviation units. Consider for instance v= [ -2 3 5 6]. We have that mean(v) = 3 and sd(v) = 3.559026. The the first observation, for example, differs from the mean by -2-3 = -1.4049 3.559026 standard deviation units since 3 - 1.4049 (3.559026) = -2 Write a function named dist sd which computes the standard deviation distances for all elements in a data vector. Apply this function to vector v. Hint: The return function will be useful here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!