Question: we have to use R studio to do this exercise Problem 5. (1) Write a function to compute the variance and skewness of a numeric

 we have to use R studio to do this exercise Problem
we have to use R studio to do this exercise

Problem 5. (1) Write a function to compute the variance and skewness of a numeric vector. Variance is defined as 1 var(x) (X; 7)2 ) n 1 where x is the sample mean. Skewness is defined as skew(x) 1-2 =(x; 7) var(x)3/2 (2) Write a loop to apply the your function to columns of the iris dataset whose data type is numeric, and print the results in the loop

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!