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
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
Get step-by-step solutions from verified subject matter experts
