r Programming Cat Questions
r Programming Cat Questions
-~·--~
I
-[ Reg.
No.
t!! I
1AI RAM ENI GINto EERING COLLEGE 6J
(1 An AutonomOUS lnstltutfon Amllated Anna Unive(Sity
Acc:redied by NBA 11C1#AAC 'A+'I BIS£OMS ISO 21001
Sal Leo Nagar, West Tambaram, Chennal • 600114
: 2018 n ~I
&Approved by AJCTE, New Dell/ ............... ..
4. www.salram.edu.ln il l
:2015 Cet1flJd 8fld NIRFtried ilstMxl
• I
'~
CONTINUOUS ASSESSMENT TEST - I
I Question Paper Code I 24NUS1F204
(Or)
b) i) Consider A=matrix(c(2, 0, 1,3 ), nco1=2) and B=matrix(c(S,2,4,-1), s K2 COl ~
ncol==2). 'l
a) Find A+ B
b) Find A-B
ii) Find the transpose of A and B using R 5 K2 COI
COl Reiterate a11 the basic programming constructs available in R programming (K2)
.Demonstrate the basics of probability, distributions and graphical representations such
CO2 as \
Histograms, Q-Plots and Box plots (K3)
I
I
/ COJ I Solve problems using the Group Statistics and Sample Tests(K.3)
Interpret various regression and correlation techniques for data analytics(K3)-
\
C04
cos Illustrate different graphical representation and variance tests in data analytics.(YJ)
C06 I Demonstrate Polynomial Regression and Two-Way ANOVA With Replication (K3)
1
CONo. COl CO2 C03 C04 cos \ C06 I
I
! % 50 50 - -- -- \ - \
~
I ~e:.- I I I I I I I I I I I I J
~~_!~i!~!!t~!Sb~L!~
trild
•
kad8d byMBA nl M4C 'A+ 'I &OMS ISO Pf001 :2018 n1 ~: 2015 Cdtd n, MRf irslllaln 61
Sal Leo Hagar, Wtst Tambaram, Chtnnal - 600 044. www.ulram.edu.ln ~;...._.=.;.J
Page 1 of 4
Kl - Remember; K2- Unders~nd; K3 -Apply; K4 -Analyze; K5 - Evaluate; K6 - Create
- .-
-- ----
'
i
indicate?
A) A strong negative linear relationship. B) No linear relationship.
C) A weak negative linear relationship. D) A strong positive linear relation
ship.
7 What does the slope coefficient in a simple linear regression indicate? Kl C04
A) The predicted value when (x = 0).
B) The rate of change in (y) for a one-unit change in (x).
C) The total variance explained by the model.
D) The correlation between (x) and (y).
8 Which of the following is a key assumption of Pearson correlation? '-
ll
Kl 'CO4
A) The variables are nominal. B) The relationship between variables is linear.
C) There are outliers in the data. D) The sample size is small.
9 Wh~ch of the following is a purpose of a prediction interval in linear regress
I
ion? Kl CO4
/
.A) To estimate the slope of the regression line.
/ B) To provide a range where a new observation is likely to fall.
, C) To measure the correlation between two variables.
'., D) To
determine the significance of the intercept.
l O What is the difference between prediction intervals and confidence
intervals in Kl C04
regression?
A) Prediction intervals are wider because they account for individual variatio
n.
B) Confidence intervals are narrower because they ignore individual data
points.
C) Prediction intervals are always more accurate than confidence interva
ls.
D) Confidence intervals provide a range for individual observations.
13 Which test is used for comparing two treatments which falls in normal
distribution Kl CO3
14 Define Quartiles
Kl CO3
15 Define Wilcoxon signed rank test?
16 What is Correlation and How can it be used in Statistical Analysis?
Kl CO3
~
Kl C04
17 Give the Mathematical Formula for Kendall Tau with brief explana
tion about Kl CO4
Concordance and Discordance pairs I
Kl _ Remember; K2 - Understand; K3 - Apply; K4 - A n a l ~ : • Page 2 of 4
; K6- Create
.,
18 What is Spearman rho used for? Kl CO4
I .
examples?
(Or) r~
·)
b) The table below shows the hours of relief provided by two analgesic 10 K3 CO3
drugs in 12 patients suffering from arthritis. Is there any evidence that
one drug provides longer relief than the other?
I
22. a) Implement a Linear Regression for GDP vs
..
4wheeler_passenger_vehicle_sale. Also predict the
4wheelff..J,assenger_vehicle_sale in the year 2023 if GDP is 7.5
...
year GDP 4wheeler_passenger_vehicle_sale
(in lakhs)
2017 6.2 26.3
2018 6.5 26.65
2019 5.48 25.03
2020 6.54 26.01
2021 7.18 27.9
2022 7.93 30.47 10 K3 CO4
Course Outcomes
Reiterate all the basic programming constructs available in R progra
cot mming (K.2)
Demonstrate the basics of probability, distnoutions and graphical representations such
as
CO2 Histograms, Q-Plots and Box plots (K3) ..
CO3 Solve problems using the Group Statistics and Sample Tests(K3)
Course Code - Name 20ITPW501- - Statistical Analysis using R Programming with Laboratory
Page f of 4___.,.,.,..,-,
Kl - Remember; K2 - Understand; K3 -Apply; K4 - Analyze; KS - Evaluate; K6 - Create
l~ 'C U- ~' '1A- ·
I
I
Mark
PART - C (2 x 10 = 20 Marks ) K- co
Split Level
up
to 10 K3 C05
I 21. a) To analyze whether or not three different exam prep programs lead
are
different mean scores on a certain exam. To analyze this, 30 students
recruited to participate in a study and split them into three groups .
The students in each group are randomly assigned to use one of the three
At
exam prep programs for the next three weeks to prepare for an exam.
the end of the three weeks, all of the studen ts take the same exam.
The exam scores for each group are shown below:
: Group_l_ --G;o ~2
. 91
r
j
Gro~p
79
3~
8S
86
88
92
93
I 78
88
7':, 85 94
78 87 92
94 84 85
98 82 83
79 88 8S
71 95 82
80 96 81
is
Perform a one-way ANOV A determine if the mean exam score
different between the three groups: Write R program for implan ting one-
way ANOV A
(Or)
in median 10 KJ cos
b) A researcher wants to investigate whether there is a difference
monthly sales performance among three sales teams (A, B, and C) within
a company. The data on monthly sales (in thousands) collected from each
team over six months is as follows:
Team Month ly Sales (in thousa nds)
J
OVEN TEMPERATURE
325 350 400
TYPE OF WHITE SUGAR 10.75 8.75 4.00
SUGAR 9.50 8.25 5.50
10.00 9.00 4.75
10.00 8.00 4.00
9.25 8.25 5.00
WHITE ANO BROWN 12.00 10.25 7.00
SUGAR 10.00 9.00 7.25
10.50 8.50 6.50
11.25 10.50 5.00
11.00 9.75 8.00
(Or)
b) Fit polynomial regression for the below data set using R Write R code l 0 K3 C06
for data Visualization, Regression Fit and Draw the graphical
representation
Position -: : ~
Level Salary
• •- -- . -• , •- - • ~ - 1I
Business Analyst I ·-· _4500:> I
\ 1
I . --2 j
Junior Consultant 50000 I
-----,------
Senior Consultant 3 60000
-------·- - - - - ------
Manager 4 60000
Country Manager 5 11000:>
- - - - - - --·-- ----- - - - -
Region Manager 6 150000
Partner 7 200000
- - · - - - , ------ -- - - --
Senior Partner 8 300000
·~-~leve; \ 9 500000
----- ··-- -- - - -- ----- ·-- -,--- --- ---
CEO I 10 1
1000000
Course Outcomes
Upon the completion of this course the students will be able to
CO I Reiterate all the basic programming constructs available in R programming (K2)
CO2 Demonstrate the basics of probability, distributions and graphical representations such as Histograms, Q-
Plots and Box plots (K3)
CO3 Solve problems using the Group Statistics and Sample Tests(K3)
CO4 interpret various regression and correlation techniques for data analytics(K3)
~
cos Illustrate different graphical representation and variance tests in data analytics.(K3)
CO6 Demonstrate Polynomial Regression and Two-Way ANOVA With Replication (K3)