0% found this document useful (0 votes)
2 views3 pages

Ait362 Programming in r, January 2024

The document is an examination paper for a B.Tech Degree in Programming in R, consisting of multiple parts with questions on R programming concepts, data handling, and statistical analysis. Part A includes short answer questions, while Part B requires detailed programming tasks and explanations from various modules. The exam covers topics such as data import, functions, statistical tests, and data visualization in R.

Uploaded by

Nithin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Ait362 Programming in r, January 2024

The document is an examination paper for a B.Tech Degree in Programming in R, consisting of multiple parts with questions on R programming concepts, data handling, and statistical analysis. Part A includes short answer questions, while Part B requires detailed programming tasks and explanations from various modules. The exam covers topics such as data import, functions, statistical tests, and data visualization in R.

Uploaded by

Nithin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

D 1200Arr362052301

RegNo.: Name:

APJ ABDUL KALAY TECIINOLOGICAL UN


B.Tech Degree 56 (S, FE) Examination January 2024 (2019

Course Code: AIT362

Course Name: PROGRAMMING IN R

Max. Marks: 100 Duration:3 Hours

PART A
Answer oll questions, each carries 3 mnrks. Marks
Write an R program to add 3 to each element in a given vector. Print the (3)
original and new vector.
2 List at least three special values in R? (3)
3 How to use sort functions in R? (3)
4 Explain how to import data from external files in R? (3)
5 Write any three functions available for binning numeric data in R. (3)
6 What are Common Distribution-Type Arguments? (3)
7 How is correlation and covariance done in R? (3)
8 Write the function and arguments for implementing PCA. (3)

2 What do you mean by non-linear least squares? (3)


l0 Write details about the lm function in R. (3)
PART B
Answer one questionfrom each module, eoch carries 14 marks.
Module I
ll a) Write an R program to print the Fibonacci seqfrence. (rt
b) Write an R program to find whether the inputted string forms a palindrome or (7)
not.

OR
t2 a) Write an R program to check if a given number is prime or not. (7)
b) Write an R program to extract first two rows from a given data frame. (7)
Module II
l3 a) Write an R program to write the following data to a CSV file. (7)

Page lof3
1200AfT36205230t

Date HomeTeam Result AwavTeam


Fri Jul 20 2018 Brentfdrd 02:00 Arsenal
Fri Jul 20 2018 Brighton and Hove
Burnley 0l:02
Albion
Sat Jul 21 2018 Chelsea 03:00 Crystal Palace
Sat Jul 2l 2018 Everton 03:01 Southampton
Sat Jul 21 2018
Wolverhampton
Leicester City 0l:00
Wanderers
Manchester
Sat Jul 21 2018 05:01 Leeds United
United
Sun Jul 222018 Norwich Ciw 00:03 Liverpool
Sun Jul 222018 Watford 03:02 Aston Villa
Newcastle
Sun Jul 222018 02:04 West Ham United
United
Tottenham
Fri Jul 27 2018 0l:00 Manchester City
Hotspur
Fri Jul 27 2018 Aston Villa 02:00 Newcastle United
Brighton and
Sat Jul 28 2018 02:00 Watford
Hove
b) Explain how data cleaning is done in R. (7)
OR
14 a) Given a file "movies.csv" of movies data with the fields Film, Genre, Lead (7)
Actor, Lead Actress, Producer, Director, Studio, Audience Score, Profitability,
and Year. Write an R program to print total profitability of all movies for a
specific year. Find the maximum profitability movie in each year.
b) How is missing data handled in R? e)
Module III
15 a) Explain any two non-parametric tests in R. (7)
b) Write an R program to display the probability distribution table for number of (7)
successes from a binomial distribution where number of observations is l0 and
* probability of success in each trial is 0.5 j t

OR
16 a) Write an R program to fit a Poisson distribution with the following data: (7)
Height 3 4 5 6 7 8

Weight 30 45 50 55 65 75

b) Explain in detail about probability distributions with suitable examples. (7)


Module IV
17 a) Given the sales information of a company as CSV file with the following fields: (7)
year, no-month, grocery, crockery, detergent, shampoo, moisturizer,

Page2of3
12(XrAlT362052301

total units, totaljrofit. write R codes to calculate and visualize the total sale
data for last year for each protuct and show it using a pie chart.

b) Explain different plots in R with examples. (7)


OR
l8 a) write an R program to plot the rating of any ten movies using pie chart. (7)
b) How do you customizeLattice Graphics? (7)
Module V
l9 a) What are generalized linear models? (7)
b). Explain how to build linear models in R? (7)
OR
20 a) Write an R prograrn to illustrate the steps to predict the price of a car using (e)
arI
linear regression for the data given below.
?
Car Age 4 4 5 5 5 7 7 8 l0
(in years)
Price (in 6200 6000 s800 4800 4700 4500 4300 3600 2000
dollars)
b) Explain Poisson regression in R. (5)
,ft**

Page 3of3

You might also like