You are on page 1of 2

SCHOOL OF ADVANCED SCIENCES

DEPARTMENT OF MATHEMATICS
FALL SEMESTER 2022∼2023
MAT2001 – Statistics for Engineers
Embedded Lab – R Statistical Software
L53+L54 Slot
Assessment No.:2
Instructions:
(i). Last Date for Submission of E-Record for Ass. No. – 2: 03rd November 2022.
(ii). Format the E-Record as mentioned in the prescribed format uploaded in V-Top Course

T
VI
Page Menu and mention the Register Number, Name, Slot Details, Course Code and
Course Title in the first page of the document. Also mention the Register Number and
Name in every page of the document. –
S
SA

(iii). Submit the soft copy of E-Record for all the following questions as a single PDF
document into V-Top Login properly on or before the mentioned last date.
s–

Experiment No. – 2
ic
at

Correlation and Rank Correlation


m
he

1. The following table gives the weight (x) (in 1000 lbs.) and highway fuel efficiency (y) (in
at

miles/gallon) for a sample of 13 cars. Write down the R code to compute the coefficient
M

of correlation between X and Y .Also, draw a scatar diagram for weight and highway
fuel efficiency.

Cars X Y
Chevrolet Camaro 3.545 30
Dodge Neon 2.6 32
Honda Accord 3.245 30
Lincoln Continental 3.93 24
Oldsmobile Aurora 3.995 26
Pontiac Grand Am 3.115 30
Mitsubishi Eclipse 3.235 33
BMW 3-Series 3.225 27
Honda Civic 2.44 37
Toyota Camry 3.24 32
Hyundai Accent 2.29 37
Mazda Protg 2.5 34
Cadillac DeVille 4.02 26
2. Write down the R code to find the rank correlation between the ranks of the variable X
and Y from the following data:

X: 10 15 12 17 13 16 24 14 22
Y : 30 42 45 46 33 34 40 35 39

**********

T
VI

S
SA
s–
ic
at
m
he
at
M

Page 2

You might also like