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 Raito
Celsius Temperature Interval
Weight Raito
Hair Color Nominal
Socioeconomic Status Ordinal
Fahrenheit Temperature Interval
Height Raito
Type of living accommodation Nominal
Level of Agreement Raito
IQ(Intelligence Scale) Raito
Sales Figures Raito
Blood Group ordinal
Time Of Day interval
Time on a Clock with Hands Interval
Number of Children Raito
Religious Preference Ordinal
Barometer Pressure interval
SAT Scores Raito
Years of Education Raito
Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
1 1
Two heads - . One tail - .
3 6
Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1 = 0.
1
b) Less than or equal to 4 =
12
2
c) Sum is divisible by 2 and 3 = .
3
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?
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
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.
Points
Mean 3.596563
Median 3.695
Variance 0.276948
Score
3.204438Mean
3.325 median
0.966313standard
0.933761variance
Weight
17.84875 average
17.71 median
1.758801 SD
3.09338 var
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?
145.33
Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
SP and Weight(WT)
Skewness for speed= -0.11395
Left skewed because skewness value is negative
Distance =0.7824 (right skewed because skewness value is positive.
Q10) Draw inferences about the following boxplot & histogram
most of the data points are concentrated in the range of 50-100 with
frequency 200 . least range is 400 around 0-10.
Expected value above distribution is 75.
Skewness – right skewed.
Median is less than mean rightskewed .
CI(94%)= 1.88.
CI(98%)=2.33
CI(96%)=2.05
Q12) Below are the scores obtained by a student in tests
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.
Variance =24.111.
Standard deviation= 4.9
2) What can we say about the student marks?
Q13) What is the nature of skewness when mean, median of data are equal?
symmertical
Q14) What is the nature of skewness when mean > median ?
Right skewed.
Q15) What is the nature of skewness when median > mean?
Left skewed.
Q16) What does positive kurtosis value indicates for a data ?
Normally distributed and kurtosis is 0.
Q17) What does negative kurtosis value indicates for a data?
Lighter tails and flatter peaks normal distribution.
Q18) Answer the below questions using the below boxplot visualization.
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