Apl (Lab) Sub Code - CS-215: B.Tech (CSE) 4 TH Semester

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

APL (LAB)

Sub code – CS- 215


B.Tech (CSE) 4 th Semester

Submitted By:-

Ritu Raj Chanda (Scholar I’d – 2012157)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


NATIONAL INSTITUTE OF TECHNOLOGY SILCHAR
ASSAM, PIN-788010

(January-June 2022)
ASSIGNMENT-07
1. Calculate and visualize the Quartiles of the following set of
data using R programming.
a. 56,34,74,92,47,73,85,68,96,72,94

b. 22,55,43,51,83,97,74,44,67,78,75
2. How to calculate the percentiles of set of student marks at a
given probabilities and visualize them through bar-chart using R
programming.
First, we need to store the marks of the students in a vector to
combine the list of marks of the students. To calculate the
percentiles of set of student marks at a given probabilities , we
use quantile function i.e.,
quantile( ) -the quantile function, associated with a
probability distribution of a random variable, specifies the value
of the random variable such that the probability of the variable
being less than or equal to that value equals the given
probability.
Now, we need to store the quantile so calculated in a varaible.
To visualize the percentiles of the set of student marks so
obtained using the quantile function, we should use the barplot()
function.
R uses the function barplot() to create bar charts
a. 67,56,68,78,45,69,74,72,76,88,95,22,25,46.
b. 34,78,88,89,56,67,65,54,64,73,84,86,82,61

You might also like