The number of named Atlantic storms for 9 consecutive years is: 7, 8, 14, 11, 12, 7, 6, 11, 13., We represent these as a vector x in R by making the assignment: x


4


Need the R script for the whole problem (do not copy from another post)


The number of named Atlantic storms for 9 consecutive years is: 7, 8, 14, 11, 12, 7, 6, 11, 13., We represent these as a vector x in R by making the assignment:<br>x <- c(7, 8, 14, 11, 12, 7, 6, 11, 13)<br>Define the variable w using the assignment<br>w <- 2*x<br>Define y by the assignment<br>y <- cumsum(x)<br>Define z with the assignment<br>z <- c(x,y,w)<br>x, y, w and z are vectors. Answer the following using R code.<br>a) What is the minimum value in the z vector?<br>b) Calculate the sample mean of x.<br>c) Calculate the sum of the squares of the elements in z.<br>d) Calculate the sample variance of x<br>e) Calculate the sample standard deviation of x<br>f) Calculate the length (# of elements) of z?<br>g) Calculate the sample variance of z<br>h) Calculate the sample variance of 2*z<br>i) Calculate the length (# of elements) of 2*z?<br>j) How many unique(different) values are in z?<br>k) In the following paste your R script for this problem<br>

Extracted text: The number of named Atlantic storms for 9 consecutive years is: 7, 8, 14, 11, 12, 7, 6, 11, 13., We represent these as a vector x in R by making the assignment: x <- c(7,="" 8,="" 14,="" 11,="" 12,="" 7,="" 6,="" 11,="" 13)="" define="" the="" variable="" w="" using="" the="" assignment="" w=""><- 2*x="" define="" y="" by="" the="" assignment="" y=""><- cumsum(x)="" define="" z="" with="" the="" assignment="" z=""><- c(x,y,w)="" x,="" y,="" w="" and="" z="" are="" vectors.="" answer="" the="" following="" using="" r="" code.="" a)="" what="" is="" the="" minimum="" value="" in="" the="" z="" vector?="" b)="" calculate="" the="" sample="" mean="" of="" x.="" c)="" calculate="" the="" sum="" of="" the="" squares="" of="" the="" elements="" in="" z.="" d)="" calculate="" the="" sample="" variance="" of="" x="" e)="" calculate="" the="" sample="" standard="" deviation="" of="" x="" f)="" calculate="" the="" length="" (#="" of="" elements)="" of="" z?="" g)="" calculate="" the="" sample="" variance="" of="" z="" h)="" calculate="" the="" sample="" variance="" of="" 2*z="" i)="" calculate="" the="" length="" (#="" of="" elements)="" of="" 2*z?="" j)="" how="" many="" unique(different)="" values="" are="" in="" z?="" k)="" in="" the="" following="" paste="" your="" r="" script="" for="" this="">

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here