Assignment 1
Assignment 1
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 interval
Weight ratio
Hair Color nominal
Socioeconomic Status ordinal
Fahrenheit Temperature interval
Height ratio
Type of living accommodation nominal
Level of Agreement ordinal
IQ(Intelligence Scale) interval
Sales Figures ratio
Blood Group nominal
Time Of Day ordinal
Time on a Clock with Hands interval
Number of Children ratio
Religious Preference nominal
Barometer Pressure ratio
SAT Scores interval
Years of Education ordinal
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
Ans: sample s= {H, T}, {H, T}, {H, T}
2 HEADS ans 1 TAIL E= {HHT,HTH,THH}
P(X=2) = P(HHT) +P(HTH) +P(THH)
=1/2 .1/2 .1/2 + 1/2 .1/2.1/2 +1/2. 1/2 . 1/2
=3/8
Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1
b) Less than or equal to 4
c) Sum is divisible by 2 and 3
ANS:
a) If two dices were rolled, then total possible cases =36
Total Favourable cases (Having sum =1) = 0
As minimum sum is 2 for outcome (1,1).
Hence, probability is 0.
b)possibilities of sum is less than or equal to 4 are (1,1) (1,2) (1,3) (2,2)
(2,3)
probability(<=4) = (1,1)+ (1,2)+ (1,3)+ (2,2) +(2,3)
=1/36+ 1/36+ 1/36+ 1/36 +1/36
=5/36
Therefore,
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?
= 7C2
=(7*6)/(2*1)
=21
=5C2
=(5*4)/(2*1)
=10
∴P(E)=n(E)/n(S)
=10/21
Q6) 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
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.
Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
Use Q9_a.csv
SP and Weight(WT)
Use Q9_b.csv
Q10) Draw inferences about the following boxplot & histogram
4. there is no outlier.
BOXPLOT: 1. Median is located at centre.
2. it is right skewness.
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?
Q13) What is the nature of skewness when mean, median of data are equal?
Ans : if mean=median, skewness is zero.
Q14) What is the nature of skewness when mean > median ?
Ans: if mean>median, distribution is positively skewed.
Q15) What is the nature of skewness when median > mean?
Ans: if median>mean, distribution is negatively skewed.
Q 20) Calculate probability from the given dataset for the below cases
Data _set: Cars.csv
Calculate the probability of MPG of Cars for the below cases.
MPG <- Cars$MPG
a. P(MPG>38)
b. P(MPG<40)
c. P (20<MPG<50)
p(x<260)= .