We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
\
M.Sc DEGREE I SEMES'
Time:
1
TER EXAMINATION IN STATISTICS NOVEMBER 2019
19-322-0105- DATA ANALYTICS USING I
3 hours
Mas. Marks: 50
PART A
(Answer ANY PIVIE questions)
(52 = 10)
(a) What is R 2. Write about veotors in R
(b) Explain each argument used in sean(file=* °, what=O,n=-1sep=* "skip O.quiet=FALSE).
(c) Give a comparison between lapply and sapply with suitable examples
(a) What is the workspace in R ?
(e) What is
(0) What
mulation ?
seed function
(g) In a sample of 49 adolescents who served as subjects in an immunologic study, one
variable of interest: was the diameter of
skin test reaction to an antigen, The sample mean
and standard deviation were 39 and 11 mm respectively, Can it be concluded from these
data that the population mean is greater than 30mm,
PART B
(Answer ANY FIVE questions)
(5x 8-40)
(a) A city administrator is investigating the efficieney of its Fire Department, ‘The time,
in minutes, taken by the Fire Department to respond to 15 alrms, is given below:
1,1, 2, 2,6. 9, 4, 1, 7, 10, 2, 4, 5, 10 5. Using R
(i) Find the “five-number summary” and draw a boxplot for this data.
(ii) Calculate the sample mean and sample standard deviation for this data
(b) Explain different types of data structures in R
(a) With the help of an example, explain the concept of recursive programming,
(b) What are the advantages of writing an R. program using functions. Give an example
(c) Write an R program, to plot a line, quadratic and eubie on same plot for values of x
in the range (0,2). Add the plots of reciprocals and squares of reciprocals also.
Create a list'in R containing the following information:
your full name, gender, age, a list of your 3 favourite movies, the auswer to the question
“Do you support the United Nations?", and a list of the birthday and month of your
jmmediate family members including you (identified by firs name)
1Do the same for three cl
ame for three close friends, then write a program to check if there are nny stared
virthdays or names in the four li
Produce v8 i:
roduce a table of birthdays by birth month and a table of the mean number of immediate
family members by gender.
(a) Explain the basic idea of simulation.
(v) Explain the inverse transformation method with the help of an exanple,
(a) Explain Box-Muller algorithm.
(b) Write an R program to simulate random numbers from pinoraial distribution with
parameters 7 and p.
The following data gives the counts of munber of alpha particles emitted from @ source Mt
a given time interval. Write an R program to fit an appropriate distribution to the date
and test for goodness of fit
no joli|2| 314 5
Frequency | 57 | 203 | 983 | 525 | 58? 408ose
pGREB 1 SEMESTER EX 4
DEGRER I SEMESTER EXAMINATION IN STATISTICS NOVEMBER 2019
19-822.0105- DATA ANALYTICS USING 18
sme: 3 hours
T Max. Marks: 50
PART A
(Answer ANY FIVE questions)
(ox2= 0)
advantages of R programming
1. (a) What is R 7, What are the dis
mR
() Explain different methods for reading data from @ file in
(c) Write syntax of if else in R
(d) Discuss the role of dataframes in R- for statistical analysis.
(e) Define Box-Muller algorithm.
(£) Explain congruential generators,
(g) The heart weight in grams of 10 famale and 14 male rat is given below
Female: 55 5 48 58 46 62 58 68 56 65.
Male: 7.7 106 7.2 105 66.92 89 96 87 7
Write an R program to test whether the mean weights differ significantly
9 78 89 78 75
PART B
(Answer ANY FIVE questions)
(5x8 =40)
her variables are
mean by a missing data 7. How do you detect: wheth
strate it through an example.
an example.
2. (a) What do you
missing or not. Th
(0) Explain various seale of measurements with
example, discuss the role of for loop and while loop.
o find the LCM of two give
mancnee and acbugeis
mn numbers.
functions.
3, (a) With the help of an
(b) Write an B program #
(c) Explain the concept of Pe
4, (a) With the help of on example, explain the concept of recursive programming,
(b) Explain R lattice packages
vn various matrix operations in R.
(c) Write a note 0
yagh an example
method. Illustrate it thro
om an exponential distrily
mulate random numbers fr
5. (a) Explain Accept-Reject
yution
(p) Write an R program to si
with parameter 0 with two methods.ariable with pdf given by,
random
6 (a) Consider a contimons
. 2w-1P, forlx as.logical(x)
5. Show the results of the following operations
i) -657/0
ii) 3+2.1*NA-4
6. Explain each arguments used in write(x, file = "data", ncolumns = if(is.character(x))
1 else 5, append = FALSE)
7. What are pseudo-random numbers?
PART B(each question carries 8 marks)
Je) What is R? What are the advantages of using R language for statistical work?
b) How could you get help about various packages and functions in R?
9. a) Write a note on various data types in R.
b) You want to know all the values in c (7, 3, 15, 7, 50) that are not in c(15, 5, 3, 12,
14). Which in-built function in R can be used to do this? Also, how this can be
achieved without using the in-built function. a ;
C) The conversion from a temperature measurement in degrees Fahrenheit F to Celsius
C is performed using the following equation: C = 5/9 * (F — 32). Use vector-
oriented behavior in R to convert the temperatures 45, 77, 20, 19, 101, 120, and
212 in degrees Fahrenheit to degrees Celsius. Jgsing values determineg
6 of miss!
igsing data? How the position
sant by missing 42
10.a) What Is mean!
en ipset function In Re
Explain the use of Sul .
b) Expl ations IN R equent oer
arious matrix opel fl
11a) Write a note on var vent ond ze toa in
e of the most impor creation Oo pi
» ot fai Ca pals why? Explain in detail the
statistical dal si.
manipulation of data.
ns to lists lapply and sapply:
le example.
cc) Explain applying functior
12. a) Describe Newton-Raphson method
b) Write R code which implerfents the Newton:
newtonraphson.
13. a) Create a list in R containing the following information: . >
* your full name,
+ gender,
sage,
a list of your 3 favourite movies, ,
* the answer to the question ‘Do you support the United Nations?’, and
+a list of the birth day and month of your immediate family members
including you (identified by first name).
Do the same for three close friends, then write a program to check if there are
any shared birthdays or names in the four lists. Produce a table of birthdays by
birth month and a table of the mean number of immediate family members by
with the help of @ suitabl
\-Raphson algorithm in a function
gender.
b) Explain the inverse transformation method. How to jen a
p ler
exponential distribution? generate variates of =F
14. a)
Consider the continuous rand om variab i
ariable with pdf
Pdf given by
f(a ={ (x1)? forl