Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a vector ' y ' containing ' ( 2 , 2 , 2 , 2 , 4 , 4 , 4 , 4 ,

Create a vector 'y' containing '(2,2,2,2,4,4,4,4,8,8,8,8)' 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='.
58
a. Find the mean of vector 'y' using the function 'mean()'.
b. Use google search to find the function in 'R' that computes the variance of a vector and find the variance of 'y'.
60
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

How does nonverbal communication express cultural values?

Answered: 1 week ago

Question

3. An overview of the key behaviors is presented.

Answered: 1 week ago

Question

2. The model is credible to the trainees.

Answered: 1 week ago