You are on page 1of 2

II year 1st semester Mid -2 – Question Bank

Statistics with R programming

Unit-4

Part A
1) Explain Box plots with example.
2) Explain “pch” parameter of plot() function.
3) Give examples for saving graphs to files.
4) How can the type of plot changed using plot() function?
5) What is the use of legend() function?
6) What is the use of par() function?

Part B
1) Discuss in detail
a) Bar plots b) histograms c) pie charts
2) Explain the following along with code in R:
a) Multiple line graphs in same plot b) Arranging multiple plots in rows and columns.
3) Explain customizing the features of the graphs with examples.
4) a)Explain the differences between stacked bar plot and bar plot.
b) Write the differences between histogram and bar graph.

Unit-5

Part-A
1) Explain mode and quartile using R.
2) Explain Covariance Coefficient with example.
3) Explain ANOVA with example.
4) What is correlation analysis?

Part B
1) Explain the following probability distributions:
a) binomial Distribution b) Poisson distribution
2) Explain in detail about 3 types of T-Tests
3) Explain measures of Basic statistics in detail.
4) a) Write about R-functions in Normal distribution?
b) Tabulate R- functions for other probability distributions.
Unit-6

Part-A
1) What is survival analysis?
2) Explain about models used in regression analysis?
3) Define Decision trees and Random forests.

Part B
1) Explain the following linear models:
a) Simple Linear Regression b) Multiple Regression
2) a) Discuss Logistic regression with example.
b) Explain how Random forests are more accurate than Decision trees.

Programs:
1) Write R program to create pie chart for the following data
Housing -------600
Food --------300
Clothes ---------150
Entertainment---100
Others ---------200
2) Write R program to plot the function f(x)= sin(x) in the interval (-3,3) in the steps of 0.1.

3) 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

4) The maximum temperature in celcius in a week is given as (35,42,38,25,28,36,40). Draw the bar plot
for the given data. Also use legend function to describe hists.

5) 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.

6) Assume there are twenty multiple choice questions in a class quiz. Each question 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.

You might also like