Activity
Activity
Activity
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 Ratio
Hair Color Ordinal
Socioeconomic Status Ordinal
Fahrenheit Temperature Ratio
Height Ratio
Type of living accommodation Ordinal
Level of Agreement Interval
IQ(Intelligence Scale) Interval
Sales Figures Interval
Blood Group Ordinal
Time Of Day Interval
Time on a Clock with Hands Interval
Number of Children Ratio
Religious Preference Ordinal
Barometer Pressure Ratio
SAT Scores Interval
Years of Education Ratio
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
Answer - 0.375
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
Answer(a) - 0
Answer(b) – 0.16
Answer(c) – 0.666
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?
Answer – 0.476
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
Answer – 3.09
Expected number of candies for a randomly selected child
= 1 * 0.015 + 4*0.20 + 3 *0.65 + 5*0.005 + 6 *0.01 + 2 * 0.12
= 0.015 + 0.8 + 1.95 + 0.025 + 0.06 + 0.24
= 3.090
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
Answer- Solve in python file
= (1/9) (108 + 110 + 123 + 134 + 135 + 145 + 167 + 187 + 199)
= (1/9) (1308)
= 145.33
Expected Value of the Weight of that patient = 145.33
Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
Use Q9_a.csv
Answer- Solve in python file
SP and Weight(WT)
Use Q9_b.csv
Answer- Solve in python file
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?
Answer- (1)
Mean - 41
Median – 40.5
Variance – 25.52
Standard Deviation – 0.05
(2)
Q13) What is the nature of skewness when mean, median of data are equal?
Answer – When the mean and median of data are equal then there is no
skewness means zero skewness.
Q14) What is the nature of skewness when mean > median ?
Answer – When the mean is greater than the median then the nature of skewness
is positively skewed.
Q15) What is the nature of skewness when median > mean?
Answer - When the mean is less than the median then the nature of skewness is
negatively skewed.
Q16) What does positive kurtosis value indicates for a data ?
Answer - Positive values of kurtosis indicate that a distribution is peaked and
possess thick tails.
Q17) What does negative kurtosis value indicates for a data?
Answer - Negative values of kurtosis indicate that a distribution is flat and has thin
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.
Answer – Both median lines lie within the overlap between two boxes. Short
boxes mean their data points consistently over around the center values. Taller
boxes simply more variable data and both the boxes are without outliers.
Q 20) Calculate probability from the given dataset for the below cases
Hint:
rcode pt(tscore,df)
df degrees of freedom