I need help with this assignment. they all should have 4 places after the decimal place unless the decimal terminates beforehand. I wanted to know if I am on the right track. Course this is using the R program

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question

I need help with this assignment. they all should have 4 places after the decimal place unless the decimal terminates beforehand. I wanted to know if I am on the right track. Course this is using the R program

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? 6
b) Calculate the sample mean of x. 9.8888
c) Calculate the sum of the squares of the elements in z. 31567
Transcribed Image 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? 6 b) Calculate the sample mean of x. 9.8888 c) Calculate the sum of the squares of the elements in z. 31567
Expert Solution
Step 1

Solution:

 

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON