WWW - Manaresults.Co - In: Statistics With R Programming (CSE) II B. Tech I Semester Model Question Paper Sept - 2017
WWW - Manaresults.Co - In: Statistics With R Programming (CSE) II B. Tech I Semester Model Question Paper Sept - 2017
6. a) Write R program to create pie chart for the following data (7M)
Housing -------600
Food --------300
Clothes ---------150
Entertainment---100
Others ---------200
b) Calculate the coefficient of correlation to the following data (7M)
x 10 12 18 24 23 27
y 13 18 12 25 30 10
x 0 1 2 3
y 1.05 2.1 3.85 8.3
WWW.MANARESULTS.CO.IN
b) Explain function for reading and writing files.
*****
(7M)
Code No: R1621051 R16 SET - 2
(7M)
3. a) Explain the functioning of apply() sapply() in R program with one example (7M)
each.
b) A random sample of size 100 is taken from an infinite population having
mean 76 and variance 256 .What is the probability that x will be between (7M)
75 and 78
5. a) Write R program to plot the function f(x)= sin(x) in the interval (-3,3) in (7M)
the steps of 0.1 the point character of the plot is to be triangle joined with
the lines. (7M)
b) A random sample of 100 teachers from a large metropolitan area revealed a
mean weekly salary of Rs. 487 with a standard deviation of Rs. 48 . With
what degree of confidence can we assert the average weekly salary of teachers
is between 472 to 502.
6. a) Write R code to generate the probability distribution table for number of (7M)
successes from a binomial distribution where n=5 and probability of success in
each trial is 0.25
WWW.MANARESULTS.CO.IN
Code No: R1621051 R16 SET - 2
b) Given
Treatment Fabric
1 2 3 4
1 17.6 19.6 18.4 19.8
2 19.2 20.4 19.8 20.7
3 17.2 19.0 17.1 17.3
4 17.0 20.1 17.1 17.7
5 17.4 18.8 17.8 16.5
Perform ANONA to test whether there is any significant difference between treatments and
fabrics. (7M)
*****
WWW.MANARESULTS.CO.IN
Code No:R1621051 R16 SET - 3
Fit a regression line predict the height of son given the height of father.
WWW.MANARESULTS.CO.IN
Code No: R1621051 R16 SET - 4
3. a) Explain the functioning of lapply() and tapply() in a R program with one example. (7M)
b) Write R code to the function by using if else command
f(x) = x if x<1/2
= (1-x) if 1/2<x<1
=0 otherwise (7M)
4. a) Given 3 linear equations 5x1-x2+3x3=7
3x1+2x2+4x3=10
7x1-4x2+8x3=-14 Solve the linear equations and find
x1,x2,x3 values using appropriate R function.
b) For the discrete probability distribution Find k, mean, variance.
X 0 1 2 3 4 5 6 (7M)
2 2 2
F 0 2K 2K 3K K 2K 7K +K
5. a) Write R program to plot the function f(x)= sin(x) in the interval (-3,3) in steps of 0.1.
The point character of the plot 1's to be triangle joined with the lines. (7M)
b) Write R code to generate the probability distribution table for number of successes
from a binomial distribution where n=5 and probability of success in each trial is 0.25.
WWW.MANARESULTS.CO.IN
Code No: R1621051 R16 SET - 4
b) Assume there are twenty multiple choice questions in a class quiz. Each question (7M)
has four possible answers and only one of them is correct. Find the probability of
having six or less correct answers if a student attempts to answer every question
at random using appropriate R function.
Fit a regression line predict the height of son given the height of father. (7M)
Father(X) 150 152 155 157 160 161 164 165
Son(Y) 154 156 158 159 160 162 161 164
WWW.MANARESULTS.CO.IN