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 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 Ordinal
Barometer Pressure Interval
SAT Scores Interval
Years of Education Ratio
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
S = { HHH ,HHT,HTH,HTT,TTT,TTH,THT,THH}
A = {HHT,HTH,THH}
P(A) =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
A) 0
B) 1/6
C) 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?
Let S be the sample space.
Then, n(S) = Number of ways of drawing 2 balls out of 7
=7C2
=(2×1)(7×6)
=21
Let E = Event of drawing 2 balls, none of which is blue.
∴n(E)= Number of ways of drawing 2 balls out of (2 + 3) balls.
=5C2
=(2×1)(5×4)
=10
∴P(E)=n(S)n(E)=21/10
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
1*0.015 + 4*0.20 + 3*0.65 + 5*0.005 + 6*0.01 + 2*0.120
0.015 + 0.8 + 1.95 + 0.025 + 0.06 + 0.24
3.09
Points and Score column has normal graph it don’t contains any outlier.
Weigh column has right skewed graph it contain a outlier that is 22.9
Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
CI = X̄ ± Z×(s/√n)
X̄ = 200
n = 2000
Std.S = 30
Z = 1.8808 , For 94% [198.738 – 201.262]
Z = 2.3263 , For 98% [198.439 – 201.561]
Z = 2.0537 , For 96% [198.622 – 201.378]
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.
Mean = 41
Median = 40.5
Var = 25.52941
Std = 5.052664
2) What can we say about the student marks?
Q13) What is the nature of skewness when mean, median of data are equal?
When mean, median & mode are equal then the nature of skewness is 0 or
we can say no skew.
Q14) What is the nature of skewness when mean > median ?
The nature of skewness is positive.
Q15) What is the nature of skewness when median > mean?
The nature of skewness is negative.
Q16) What does positive kurtosis value indicates for a data ?
It indicates the distribution is peaked with thick tail.
Q17) What does negative kurtosis value indicates for a data?
It indicates that distribution is flat with thin tail.
Q18) Answer the below questions using the below boxplot visualization.
Hint:
rcode pt(tscore,df)
df degrees of freedom