You are on page 1of 4
BP This question paper contains 6 printed pages, Your Roll No. xe. 7 Sl. No. of Ques. Paper: 6825 A HC Paper Code + 42353503 of Paper 2 Statistical Software R Name of Course : Mathematics : Skill Enhancement Course Semester : : Vv Duration : 2 hours ) Maximum Marks : 38 Write your Roll No. on the top Immediately on receipt of this question paper.) Attempt all questions. ‘All commands should be written in software R. wo ‘ iE any four of the following: Ix4 State whether the following statements are true or false: (a) savehistory(file=" .Rhistory’) is same as history( ) command. ¢- (b) Is.str( ) is used to find the structure of all the defined objects. (c) c(3 5 7 9) gives a vector. (d) The commands mean( ) and colMeans( ) for a data frame give the same output. S- (e) Pie chart cannot be formed of the data given in matrix & (C3, 04 form. © PTO. / io any ix ofthe flowin: 1x6 Fain the blank command 19 fd in used to make scatter plot (splai0 / plow) the variance of data, (vant WF varag yy (4) hist command is used £0" -~ (@) sample() command selects elements from data, (random, beginning), (1) rep() command is used for repeat items one. ‘command to rearrange the items in ¢ vector (6) to be in a onder. (sort, order) 3. Answer phe following questions: 2x8 16 (ay Af Weite 2 command to list all the variables defined eéding with‘ ite “Jan”, "Feb", "Mar", "Ap", “Mayas factor. @ Can we use scan( ) command for the text Ajay. Anil —P. Raju. Ravi, Sanjay? Justify your answer. gaa the differences between save( ) and load( ) commands for files? ‘Differentiate between seq(3) and 129 alongts): cmap (e)/hesrange the data in nerasing orders des em and leaf plot, where data is: = X= 35753268569 (07a datafile is given with mare Bid. a 8 € DE x 12 4 18 40 10 o 07 8 y 08 zw wm 2% 1 35 (Extract third columns. I! VA (tf Find max and ain Hers. “(oy Mfake histogram of X. : (gy Mie 2 score data file: < 6 81 % 3 8 B 2 9 2 2 86 7 7 n” a @ Draw a stem leaf plot. ‘Consider the data? = 0,7,3:5,6.6 joned items of data? and os PTO. also write a sequence havin 18 the Last foyp items of data2, pos Do any four of the following: (@) Write conn Sag O Create 2 sequence of 25 number, which an incremented by 1, (0 Crt te ini etbain 025 mutes vi probability 0. Find the probability of getting 15 or les heads from 1088 ofa coin. (using binomial distribution) 6 How many beads will have a probability of .2 wit come out when w coin is tossed 51 times (©) Find 8 random valucs from a sample of 150 with Probability of 0.4. (using binomial distribution) Consider the following data frame object cl ec RI 4 > R23 i R22 3 Reg ‘ Re 4 ; RS 6 3 ‘Write commands for the following statements: ec enn and emaximarn value ofthe data in ind S jum sums of ; ed ue column means and coms § find (rand the row mean OF mont aces ( Tine chant plot of vector cl. ree 8 Spent . ¥ 8 8 B o 37 ® o « ® » @ OMA crencennninon mh sedan ve ing amd (a) Generate 501 a nto egative-binomial distribution towing jes of sider the following course grad f randomly £ selected students: _ oe oR Write commands for: ao w25 A o “Putting data into a variable x. © (i) Creating a bax plot of x (8 Creating 1 scatter plot of x (G+) Creating a stem and leaf plot of x 7 4 6825 4 ‘ “(w) Creating a normal probability plot of x. 700

You might also like