Assignment
Assignment
Assignment
Q2) Identify the Data types, which were among the following
Nominal, Ordinal, Interval, Ratio.
Data Data Type
Gender Nominal
High School Class Ranking Ordinal
Celsius Temperature Ratio
Weight Interval
Hair Color Nominal
Socioeconomic Status Nominal
Fahrenheit Temperature Ratio
Height Interval
Type of living accommodation Ordinal
Level of Agreement Nominal
IQ(Intelligence Scale) Interval
Sales Figures Interval
Blood Group Nominal
Time Of Day Ordinal
Time on a Clock with Hands Nominal
Number of Children Nominal
Religious Preference Ordinal
Barometer Pressure Ratio
SAT Scores Interval
Years of Education Interval
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?-3/8
Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1 =0
b) Less than or equal to 4=1/6
c) Sum is divisible by 2 and 3=1/6
Q5) A bag contains 2 red, 3 green and 2 blue balls. Two balls are drawn at
random. What is the probability that none of the balls drawn is blue?
Ans-10/21
6) Calculate the Expected number of candies for a randomly selected child
Below are the probabilities of count of candies for children (ignoring the nature of
the child-Generalized view)
CHILD Candies count Probability
A 1 0.015
B 4 0.20
C 3 0.65
D 5 0.005
E 6 0.01
F 2 0.120
Child A – probability of having 1 candy = 0.015.
Child B – probability of having 4 candies = 0.20
Ans-3.09
Q7) Calculate Mean, Median, Mode, Variance, Standard Deviation, Range &
comment about the values / draw inferences, for the given dataset
- For Points,Score,Weigh>
Find Mean, Median, Mode, Variance, Standard Deviation, and Range
and also Comment about the values/ Draw some inferences.
ANS-
Points Score Weight
Mean 3.596 3.217 17.848
Median 3.695 3.325 17.71
Mode 3.891 3.54 17.43
Variance 0.285 0.957 3.19
Standard 0.534 0.978 1.786
Deviation
Range 2.76,4.93 1.513,5.424 14.5,22.9
Q8) Calculate Expected Value for the problem below
a) The weights (X) of patients at a clinic (in pounds), are
108, 110, 123, 134, 135, 145, 167, 187, 199
Assume one of the patients is chosen at random. What is the Expected
Value of the Weight of that patient?
Solution=
Q8 <- read.csv("D://data sets//csv//Q8.csv")
> mean(Q8$x)
[1] 145.3333
Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
Solution
Car speed Distance
Skewness -0.1139548 0.7824835
34,36,36,38,38,39,39,40,40,41,41,41,41,42,42,45,49,56
1) Find mean, median, variance, standard deviation.
2) What can we say about the student marks?
Solution=
Mean 41
Median 40.5
Variance 25.52
Standard deviation 5.05664
2)Mass of students marks between 38-42.
Skewness(1.52) is positive because mass of marks in left side of plot.
Q13) What is the nature of skewness when mean, median of data are equal?
Solution-Data is normalized and there is no skewness.
Q14) What is the nature of skewness when mean > median ?
Solution-Negative Skewness implies mass of the Distribution concentrated on
right side.
Q15) What is the nature of skewness when median > mean?
Solution-Positive Skewness implies mass of the Distribution concentrated on left
side.
Q16) What does positive kurtosis value indicates for a data ?
Solution- Positive kurtosis value indicates that thinner peak and wider tails.
Q17) What does negative kurtosis value indicates for a data?
Solution-Negative kurtosis value indicates that wider peak and thinner tails.
Q18) Answer the below questions using the below boxplot visualization.
b. P(MPG<40)-
pnorm(40,34.422,9.13144)= 0.7293527
c. P (20<MPG<50)-
pnorm(50,34.422,9.13144)-(1-pnorm(20,34.422,9.13144))=
0.01311818
- distributed normally
Q 24) A Government company claims that an average light bulb lasts 270
days. A researcher randomly selects 18 bulbs for testing. The sampled bulbs
last an average of 260 days, with a standard deviation of 90 days. If the
CEO's claim were true, what is the probability that 18 randomly selected
bulbs would have an average life of no more than 260 days
Solution=52.86%