Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi there, I've neber used R script before and need help. Instructions for R script are: For each question you will fill in some numerical

Hi there, I've neber used R script before and need help.

Instructions for R script are: "For each question you will fill in some numerical results gotten through R, plus at the question end you will copy and paste your R script into an answer box. Do not run the script and then copy and paste the results. This script, when run, should give the result you placed into the individual answer boxes. I will run the script.

Thank you!!

Your pulse rate can be a measure of your health. The following are the pulse rates of 15 teenagers: 76, 88, 78, 71, 68, 86, 70, 90, 74, 70, 69, 68, 88, 96, 68. We represent these as a vector x in R by making the following assignmemt: x <- c(76, 88, 78, 71, 68, 86, 70, 90, 74, 70, 69, 68, 88, 96, 68) Define the vector y by the assignment y <- cumsum(x) Define the variable w using the assignment w <- y+3 Define z with the assignment z <- c(x,y,w) x, y, w and z are vectors. Answer the following using R code. a) Calculate the minimum value of z. b) Calculate the sum of the squares of the elements in z. c) Calculate the sample mean of z. d) Calculate the sample variance of z. e) Calculate the sample standard deviation of z f) What is the 12th element of y? (value of y[12]) g) Calculate the sample variance of x. h) Calculate the sample variance of 2*x i) What is the length(# of elements) in 2*x j) How many unique(different) values are in z? k) In the following paste your R script for this problem

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_2

Step: 3

blur-text-image_3

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

A Survey of Mathematics with Applications

Authors: Allen R. Angel, Christine D. Abbott, Dennis Runde

10th edition

134112105, 134112342, 9780134112343, 9780134112268, 134112261, 978-0134112107

More Books

Students also viewed these Mathematics questions

Question

What is the difference between a blank and a special indorsement?

Answered: 1 week ago