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 Ordinal
Level of Agreement Ordinal
IQ(Intelligence Scale) Interval
Sales Figures Ratio
Blood Group Nominal
Time Of Day Interval
Time on a Clock with Hands Interval
Number of Children Ordinal
Religious Preference Nominal
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?
Ans: 3/8 = 0.375
The combinations are HHH, HHT, HTH, THH, TTH, THT, HTT, TTT.
Number of combinations that have two heads and one tail = 3, i.e., HHT, HTH,
TTH
The probability of two heads and one tail when three coins are tossed
simultaneously are
= ⅜ or 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
a) 0
The sum of the two dice cannot be equal to 1 since the lowest possible
sum is 2. Therefore, the probability of getting a sum of 1 is 0.
b) 3/36 = 0.083 To get a sum of 4, the two dice must show either 1 and 3, 2 and
2, or 3 and 1. There are three ways to get a sum of 4 out of the 36 possible
outcomes, so the probability of getting a sum of 4 is 3/36 or 1/12.
c) 6/36 = 0.17 we have 6 of the 36 possible rolls that produce sums that are
divisible by both 2 and 3.
d) 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 = 0.476
Total number of balls
= (2 + 3 + 2)
=7
Let S be the sample space
Then, n(S) = Number of ways of drawing 2 balls out of 7
n(S)=7C2
n(S)=(7×6)(2×1)n(S)=21n(S)=7 2n(S)=(7×6)(2×1)n(S)=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:
SP and Weight(WT)
Use Q9_b.csv
Skewness Kurtosis
SP 1.58 2.98
WT -0.60 0.95
Both Skewness & Kurtosis positive for SP
Ans: The histogram is right skewed, 200 chicks is having weight from 50-100
Ans: Outlier is present and box plot is right skewed.
Mean = 200
St devi = 30
94% 98% 96%
Upper 201.04 201.38 201.17
Lower 198.96 198.62 198.83
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.
ANS:
Mean 41
Median 40.50
Variance 25.53
Std Deviation 5.05
Q13) What is the nature of skewness when mean, median of data are equal?
Ans: Normal Distribution, Bell Curve we will get.
Q14) What is the nature of skewness when mean > median ?
Ans: Positively skewed.
Q15) What is the nature of skewness when median > mean?
Ans: Negatively skewed.
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
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
Hint:
rcode pt(tscore,df)
df degrees of freedom
Sol: mu =270
n=18
xbar=260
sigma=90
z=x-mu/sigma
=260-270/90
=-0.11
pnorm(-0.11)=0.4562
p=45%
T=x-mu/s/sqrt(n)
=260-270/90/sqrt(18)
=-0.4714
Pt-(0.4714, 17)
=0.3216
P=32%