Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to find the maximum, minimum, mean, mode, median and
standard deviation for the following vector.
Num : (110,20,330,40,150,660,370,980,190,100)
(10)
Q2 . Monthly sales of 10 small shops are as given below :
100, 190, 210, 160, 150, 160, 190, 200, 170, 152
Calculate arithmetic mean, geometric mean, harmonic mean, mode, median, lower
quartile, third decile and 42nd percentile.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to find percentage of males that are taller than 74” in a
population with mean is equal to 70 and standard deviation is 2.
(10)
Q2 . The number of mistakes in a page recorded for 20 pages are as follows
2,5,9,7,11,6,5,2,7,9,3,2,8,12,14,6,3,9,8,7
Find range, coefficient of range, quartile deviation and coefficient of quartile
deviation, mean deviation about mean and coefficient of variation.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to draw a Box Plot for the following data :
Marks Obtained 20 students in a class test are :
68,44,55,47,65,50,72,54,75,60,42,60,56,65,45,55,65,44
(10)
Q2 . Draw the relationship between [Link] and [Link] of for iris dataset
using scatter plot.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to extract first 10 English letter in lower case and last 10 letters
in upper case and extracts letters between 22nd to 24th letters in upper case.
(10)
Q2 . Draw a Box Plot for visualizing mtcar dataset and identify outliers.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to calculate skewness and kurtosis for the given data.
Data : 2,3,5,6,8,9,12,18,21
(10)
Q2 . Marks obtained by 10 students in 2 subjects are as :
Subject A : 54, 56,78,21, 45, 32, 78, 53, 65, 54
Subject B : 32, 46, 62, 27, 49, 59, 90 76, 43, 65
Draw scatter diagram and find correlation between Subject A and Subject B.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to create simple bar plot of marks of 5 subjects.
Marks : (45,70,90,.66,89)
Subjects : (M-I ,S-I, C-I, C-II, IKS)
(10)
Q2 . Given
Study Hours : 5,7,3,8,6,9
Exam Score : 80,85,60,90,75,95
Find correlations of study hours and exam score and visualize the data using scatter
plot of exam score against study hours.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to create data frame which contains details of 5 employees
and display the details in ascending order of their names.
Empdetails : (Name, Gender, Age, Desgination)
(10)
Q2 . Data on demand and supply is as follows :
Demand : 20,32,45,21,19,23,47,67,34
Supply : 16,38,54,25,20,20,42,66,40
Find correlation of demand and supply and plot scatter plot.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to create data frame using two given user defined vectors and
display the duplicate elements and unique row of the data frame.
(10)
Q2 . In an agricultural experiment on the study of effect of depth of water in soil(x) in
feet on the yield of crop in kg per plot(y). The following data were obtained :
X : 1.8, 1.9, 2.5, 1.4, 1.3, 2.1, 2.3
Y: 200, 270, 450, 160, 90, 440, 380
Find equation of line of regression on y on x. Estimate y when value of x is 2.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to change the first level of a factor with another level of a given
factor.
(10)
Q2 . Find the following probabilities
1) Find probability 10 successes during 12 trials where the probability of
success on each trail is 0.6
2) Find probability of 4 or fewer successes during 10 trials where the probability
of success on each trail is 0.3
3) Find 10th quantile of binomial distribution with 10 trials and probability of
success on each trial is 0.4
4) Generate a vector that shows the number of success of 10 binomial
experiments with 100 trials where the probability of success on each trial is
0.3
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R to accept to following operation on two user defined data frames.
Union, Intersection, Set Difference, and Check Set equality.
(10)
Q2 . Generate 100 random number sample in range of 0 to 100. Find the count of
number in range of 0 to 10, 11 to 20 and so on up to 90 to 100. Display the data table
and draw the simple bar plot.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program Script to create two vectors of different length and for given
these vectors as input to array and print second row of second matrix of the array.
(10)
Q2 . Following is the data showing run scored by 5 players in IPL for 10 matches
M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
Surya 55 23 40 77 3 19 43 53 69 17
Hardik 45 40 39 44 58 68 39 48 54 55
Shivam 71 50 50 58 48 46 71 63 34 57
Sanju 79 79 83 89 56 78 48 59 64 49
Abhishek 50 13 59 45 79 80 4 0 24 56
Find average score of each player.
Find highest score of players in each match.
Apply Fivenum() function all matches to get summary statistics
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to concatenate two given vectors in a single vector and display
it in descending order.
(10)
Q2 . Following is the data obtained from police stations of 5 major cities in
Maharashtra
City [Link] FIRs [Link] Solved Cases
Nashik 180 90
Pune 299 57
Mumbai 635 220
Nagpur 340 200
Jalgoan 220 144
Draw a stack bar plot for the given data.
Draw a pie chart for citywise FIRs
Find the city with highest number of FIRs and highest number of Solved Cases.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to convert given decimal number to binary.
(10)
Q2 . For the following data draw more than ogive curve
Length(cm) : 5-10 10-15 15-20 20-25 25-30 30-35 35-40
No of Screw : 2 7 16 34 13 6 2
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to find the factorial of given number.
(10)
Q2 . A certain website makes 10 sales per hour in a given hour find the following
probabilities
1) Site makes exactly 8 sales
2) Site makes 8 sales or less
3) Site makes more than 8 sales
4) How many sales the site need to make to be at the 90th percentile for sales
in an hour
5) Generate a list of 15 random variables that follow a Poisson distribution
with a rate of success is 10
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to print number from 1 to 100 with “[Link].” after every 3
numbers.
(10)
Q2 . For the class of [Link]. Computer Science of size 30 students following is the data
available for their performance in various areas (Marks out of 30 in each)
Group1 (Rno 1 to 10) Open Book Test : 25,27,22,20,23,22,26,25,29,20
Group2 (Rno 11 to 20) Paper Presentation : 18,21,23,21,19,20,21,23,27,29
Group3 (Rno 21 to 30) Group Discussion : 23,25,28,23,29,27,29,30,30,27
Test if the performance of Group1 is significantly different from 27 (Hypothesized
Mean)
Test if the mean scores are significantly different between Group1 and Group3
Test if the mean scores of Group3 shows a significant improvement than Group2
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program script to create two vectors of different length and given these
vectors as input to array and print multiplication of those matrices.
(10)
Q2 . A researcher wants to investigate if there is a significant association between a
person’s smoking habits and their exercise levels. The survey dataset available in
MASS package in R contains information on students. Create a frequency table of
smoking habits and exercise level. Perform a Chi-Square test for independence to
determine if there is a statistical significant relationship between the two variables at
a 0.05 significance level. State the null and alternative hypothesis for the test.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to plot histogram for the list of marks which are in a range of
14 to 35. Give the vector of at least 25 marks.
(10)
Q2 . Load the iris dataset using appropriate package and retrieve the following :
1. Print the structure of the dataset.
2. Print the summary statistics of the dataset.
3. Retrieve the column names of the dataset.
4. Find unique species from the dataset.
5. Create a scatter plot to show relationship between [Link] and
[Link].
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Write R program to represent the following data by simple bar plot.
Year : (2000, 2001, 2002, 2004, 2005)
No. of Students : (3500,4100, 4300, 5000, 4900)
(10)
Q2 . Following is the data obtained from police stations of 5 major cities in
Maharashtra
City [Link] FIRs [Link] Solved Cases
Nashik 180 90
Pune 299 57
Mumbai 635 220
Nagpur 340 200
Jalgoan 220 144
Draw a stack bar plot for the given data.
Draw a pie chart for citywise FIRs
Find the city with highest number of FIRs and highest number of Solved Cases.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Following data shows percentage subsidiary under different heads. Represent
the data by suitable diagram.
Item Percentage of Subsidiary
Food 203
Fertilizer 38
Exports 27
Others 18
(10)
Q2 . Following is the data showing run scored by 5 players in IPL for 10 matches
M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
Surya 55 23 40 77 3 19 43 53 69 17
Hardik 45 40 39 44 58 68 39 48 54 55
Shivam 71 50 50 58 48 46 71 63 34 57
Sanju 79 79 83 89 56 78 48 59 64 49
Abhishek 50 13 59 45 79 80 4 0 24 56
Find average score of each player.
Find highest score of players in each match.
Apply Fivenum() function on all matches to get summary statistics
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Monthly sales of 10 small shops are as given below :
100, 190, 210, 160, 150, 160, 190, 200, 170, 152
Display the summary statistics for this data.
(10)
Q2 . A certain website makes 10 sales per hour in a given hour find the following
probabilities
1) Site makes exactly 8 sales
2) Site makes 8 sales or less
3) Site makes more than 8 sales
4) How many sales the site need to make to be at the 90th percentile for sales
in an hour
Generate a list of 15 random variables that follow a Poisson distribution with a rate of
success is 10
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Compute arithmetic mean, geometric mean, harmonic mean, mode, median for
the following data on number of books read by 20 students in a month.
4,12,7,24,32,18,9,19,21,14,27,16,8,20,12,15,7,2,6,11
(10)
Q2 . For the class of [Link]. Computer Science of size 30 students following is the data
available for their performance in various areas (Marks out of 30 in each)
Group1 (Rno 1 to 10) Open Book Test : 25,27,22,20,23,22,26,25,29,20
Group2 (Rno 11 to 20) Paper Presentation : 18,21,23,21,19,20,21,23,27,29
Group3 (Rno 21 to 30) Group Discussion : 23,25,28,23,29,27,29,30,30,27
Test if the performance of Group1 is significantly different from 27 (Hypothesized
Mean)
Test if the mean scores are significantly different between Group1 and Group3
Test if the mean scores of Group3 shows a significant improvement than Group2
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . A die is tossed 120 times and the following results are obtained
Number turned up: 1 2 3 4 5 6
Frequency: 30 25 18 10 22 15
Test the hypothesis that the die is unbiased.
(10)
Q2 . Load the iris dataset using appropriate package and retrieve the following :
6. Print the structure of the dataset.
7. Print the summary statistics of the dataset.
8. Retrieve the column names of the dataset.
9. Find unique species from the dataset.
10. Create a scatter plot to show relationship between [Link] and
[Link].
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Load the iris dataset using appropriate package and retrieve the following :
Plot a histogram to visualize the distribution of [Link]
(10)
Q2 . Use the following data to test whether the attributes condition of home and
condition of child are independent.
Condition of Clean Dirty
homeCondition of child
clean 70 50
Fairly clean 80 20
Dirty 35 45
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Draw a random sample od size 5 from a Poisson distribution with a mean=0.8 .
find the mean of your sample.
(10)
Q2 . Load the mtcars dataset using appropriate package and print the following :
1) Print first 6 rows of the dataset.
2) Draw histogram for aesthetics age using ggplot.
3) Draw boxplot for mpg by model using ggplot.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Draw a random sample of size 5 from a binomial distribution with mean=3.2 and
variance=1.92 find mean of sample.
(10)
Q2 . Fit a Poisson distribution to the following data and find expected frequencies.
Plot observed and expected frequencies and comment on adequacy of model.
No. of misprints: 0 1 2 3 4 5
No. of pages: 139 76 28 4 2 1
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . A box contains 5 red and 7 blue marbles. A sample of 4 is drawn at random.
What is the probability of selecting at least 2 blue marbles?
(10)
Q2 . The frequency distribution of number of heads obtained in an experiment of
tossing 5 coins 110 times is given below.
No. of heads: 0 1 2 3 4 5
Frequency: 6 15 25 42 18 4
Fit a binomial distribution to the above data and find the expected frequencies. Plot
observed and expected frequencies and comment on the adequacy of model.
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Represent the following data by a pie diagram
Commodity: Food Rent Clothes Education Savings Miscellaneous
Expenditure: 300 200 125 110 90 75
(10)
Q2 . Two batsman A and B scored the following runs in ten innings:
A: 101 27 0 36 82 45 7 13 65 14
B: 97 12 40 96 13 8 85 8 56 15
Who is the more consistent batsman?
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Draw less than and more than Ogive curves for the following data and find the
median values.
No. of Children: 0 1 2 3 4 5
No. of Families: 50 172 119 32 8 1
(10)
Q2 . Find
1. Quartile deviation and coefficient of quartile deviation.
2. Mean deviation about mean.
3. Coefficient of variation for the following data.
No. of Goals Scored in Match: 0 1 2 3 4
No. of Matches: 25 9 8 5 4
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Present the following data by a simple bar diagram
Country: Cuba Australia Japan Nepal Egypt India
Production of Sugar: 320 300 50 10 9 200
(In lakh quintals)
(10)
Q2 . Calculate mean, mode, median for the following data:
Daily 70-80 80-90 90-100 100-110 110-120 120-130 130-140 140-150
Earnings
[Link] 3 8 14 35 28 16 10 5
Workers
(20)
Q3 . Viva
(5)
Savitribai Phule Pune University
[Link].(CS) – NEP-2020 Practical Examination
Lab Course : SEC-252-CS-P Statistical Analysis Using R Software
Duration : 3 Hours Maximum Marks : 35
Q1 . Present the following data by a simple bar diagram
Country: Cuba Australia Japan Nepal Egypt India
Production of Sugar: 320 300 50 10 9 200
(In lakh quintals)
(10)
Q2 . The population of all verbal GRE scores are known to have a standard deviation
of 8.5. The UW Psychology department hopes to receive applicants with a verbal GRE
scores over 210. This year, the mean verbal GRE scores for the 42 applicants was
212.79. Using a value of α = 0.05 is this new mean significantly greater than the
desired mean of 210? (Hint: Use Z test)
(20)
Q3 . Viva
(5)