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?
Ans :-When three coins are tossed the total number of combination are 2^3 = 8
these combination are = HHH, HHT, HTH, THH, THT, HTT, TTT
The number of combination which have two heads and one tails are HHT, HTH,
THH which makes them 3 in number
now,
probability = P(HHT)+P(HTH)+P(THH)
=½*½*½+½*½*½+½*½*½= ⅜ = 0.375
Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1
The set of possible outcomes when we roll a die are {1, 2, 3, 4, 5, 6}
If two dices were rolled, then total possible cases =36
Total Favorable cases (Having sum =1) = 0
The minimum sum is 2 for outcome (1,1).
Hence, probability is 0.
b) Less than or equal to 4
The set of possible outcomes when we roll a die are {1, 2, 3, 4, 5, 6}
Two dice were rolled.
Total outcomes: 6^2=36
Number of Outcomes with sum as 4 are: 3→{(1, 3), (2, 2), (3, 1).}
Required probability: 3/36=1/12
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?
n(S)=7C2
n(S)=(7×6)/(2×1)
n(S)=21
n(E)=5C2
n(E)=(5×4)/(2×1)
n(E)=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
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.
Use Q7.csv file
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?
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
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?
● Mean - 41
● Median - 40.5
● Variance - 25.52
● Standard deviation - 5.05664
Q13) What is the nature of skewness when mean, median of data are equal?
Ans:- Data is normalized and there is no skewness.
Q14) What is the nature of skewness when mean > median ?
Ans:- Negative Skewness implies mass of the Distribution concentrated on right
side.
Q15) What is the nature of skewness when median > mean?
Ans:- -Positive Skewness implies mass of the Distribution concentrated on left
side.
Q16) What does positive kurtosis value indicates for a data ?
Ans:- Positive kurtosis value indicates thinner peak and wider tails.
Q17) What does negative kurtosis value indicates for a data?
Ans:- Negative kurtosis value indicates that wider peak and thinner tails.
Q18) Answer the below questions using the below boxplot visualization.
Draw an Inference from the distribution of data for Boxplot 1 with respect Boxplot
2.
Q 20) Calculate probability from the given dataset for the below cases