Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

College students are usually interested in their scores on exams. The following are the scores on a statistics exam: 27, 23, 28, 38, 26, 28, 42, 50, 27, 33, 42, 44, 29, 46, 18, 28, 27, 41. We represent these as a vector x in R by making the following assignmemt:

x <- c(27, 23, 28, 38, 26, 28, 42, 50, 27, 33, 42, 44, 29, 46, 18, 28, 27, 41)

Define the vector y using the assignment y <- cumsum(x)
Define the vector w using the assignment w <- y + 2
Define z by the assignment z <- c(x,y,w)
x, y, w and z are vectors. Answer the following using R code.


a) Calculate is the maximum 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 6th element of y? (value of y[6]) 

g) Calculate the sample variance of x. 

h) Calculate the sample variance of 2*x 

i) What is the length(# of elements) of z? 

j) How many unique(different) values are in z? 

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education