Basic Statistics - Level 1
Basic Statistics - Level 1
Basic Statistics - Level 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 Interval
Blood Group Nominal
Time Of Day Interval
Time on a Clock with Hands Interval
Number of Children Ratio
Religious Preference Nominal
Barometer Pressure Ratio
SAT Scores Ratio
Years of Education Ratio
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
ANS:- 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) 0/36
b) 6/36 = 1/6
c) 6/36 = 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
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
ANS :-
Mean Median Mode Variance STD Range
Points 3.5965 3.6950 3.07, 3.92 0.2858 0.5346 2.17
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
Ans :-
Q9_a.csv
Q9_b.csv
ANS :-
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?
ANS :-
a) Mean = 41
b) Median = 40
c) Variance = 27.125
d) Std. devn = 5.208
This students has most repeated marks in test is 41.
13) What is the nature of skewness when mean, median of data are equal?
ANS :- If the values of mean and mode are equal then, the skewness will be zero
(0).
Q18) Answer the below questions using the below boxplot visualization.
What can we say about the distribution of the data?
What is nature of skewness of the data?
What will be the IQR of the data (approximately)?
ANS :- 1.)
a) Upper quartile of the above box-plot (Q3) = 10
b) Lower quartile of the above box-plot (Q1) = 18
IQR = Q3 – Q1
= 10 – 18
= -8
2.) From the boxplot we can say that the nature of skewness is negative.
3.) The whisker for the above boxplot is less at the left side it is negative
skew also the median is closer to the the right side.
As the median for both the box-plot is in the middle of and whisker are
about the same in size on both side of box hence the distribution is symmetric.
Q 20) Calculate probability from the given dataset for the below cases
ANS :-
a. From scipy import stats
Stats.norm.ppf (0.95)
Z Score of 90% confidence interval = 1.645
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 t
Hint:
rcode pt(tscore,df)
df degrees of freedom
ANS :-
Where ,