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='.
67
68
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'.
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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

Students also viewed these Databases questions

Question

Discuss global issues in employee benefits.

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago