Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a vector ' y ' containing ' ( 2 , 2 , 2 , 2 , 4 , 4 , 4 , 4 ,
Create a vector containing using the rep function. You might need to check the help file for rep by typing rep' in the console to see all of the options that rep will accept. In particular, look at the optional argument 'each
a Find the mean of vector using the function 'mean
b Use google search to find the function in that computes the variance of a vector and find the variance of
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started