Assignment 2
Assignment 2
Q2) Identify the Data types, which were among the following
Nominal, Ordinal, Interval, Ratio.
Data Data Type
Gender Ordinal
High School Class Ranking Interval
Celsius Temperature Interval
Weight Ratio
Hair Color Ordinal
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 Ordinal
Time Of Day Interval
Time on a Clock with Hands Interval
Number of Children Ratio
Religious Preference Ordinal
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
Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1
Ans: 0 (Probability is 0)
b) Less than or equal to 4
Ans: 6/36=1/6 (Probability is 1/6)
c) Sum is divisible by 2 and 3
Ans: (18/36) X (12/36)=1/6, (Probability is 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?
Sol:- There are 7 balls originally with 2 of them blue so the probability of the first
ball not being blue is 5/7. This leaves 6 balls with 2 blue. The probability of the
second ball not being blue assuming that the first wasn’t is 4/6. The probability that
neither ball drawn was blue is (5/7)*(4/6)=20/42=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
Sol:-
E(X) = 1*0.015 + 4*0.20 + 3 * 0.65 + 5*0.005 + 6 * 0.01 + 2*0.120
= 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.
Sol:-
Points Score Weigh
Mean :3.597 Mean :3.212 Mean :17.85
Median :3.695 Median :3.325 Median :17.71
Mode: 3.92 Mode: 3.44 Mode: 17.02
The Data Type for all the three features ‘Points’, ‘Score’ and ‘Weigh’ are
Continuous
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?
E(X) = 108*1/9 + 110*1/9 + 123*1/9 + 134*1/9 + 135*1/9 + 145*1/9 + 167*1/9 +
187*1/9 + 199*1/9
E(X) = 145.33
Q9) Look at the data given below. Plot the data, find the outliers and find out
μ , σ , σ2
Name of company Measure X
Allied Signal 24.23%
Bankers Trust 25.53%
General Mills 25.41%
ITT Industries 24.14%
J.P.Morgan & Co. 29.62%
Lehman Brothers 28.25%
Marriott 25.81%
MCI 24.39%
Merrill Lynch 40.26%
Microsoft 32.95%
Morgan Stanley 91.36%
Sun Microsystems 25.99%
Travelers 39.42%
US Airways 26.71%
Warner-Lambert 35.00%
Sol: -
Outliers =91.36%
μ = 29.12% after removing outliers
σ = 0.056
σ 2= 0.0031
Q10) AT&T was running commercials in 1990 aimed at luring back customers who
had switched to one of the other long-distance phone service providers. One such
commercial shows a businessman trying to reach Phoenix and mistakenly getting
Fiji, where a half-naked native on a beach responds incomprehensibly in
Polynesian. When asked about this advertisement, AT&T admitted that the
portrayed incident did not actually take place but added that this was an
enactment of something that “could happen.” Suppose that one in 200 long-
distance telephone calls is misdirected. What is the probability that at least one in
five attempted telephone calls reaches the wrong number? (Assume
independence of attempts.)
Sol:- Probability that at least one in five attempted telephone calls reaches
the wrong number
= (1/5)*(1/200)
=0.001
1-[(1/200)^5] = 0.025
1 - ⁵C₀(1/200)⁰(199/200)⁵⁻⁰
= 0.025
Q11) Returns on a certain business venture, to the nearest $1,000, are known
to follow the following probability distribution
x P(x)
-2,000 0.1
-1,000 0.1
0 0.2
1000 0.2
2000 0.3
3000 0.1
(i) What is the most likely monetary outcome of the business venture?
Sol: $ 2000 (Having highest probability of 0.3)
(ii) Is the venture likely to be successful? Explain
Sol: Yes, Business Venture is likely to be successful, because the
probability of making profits is 0.6 i.e 60% chances , we can make
profit
(iii) What is the long-term average earning of business ventures of this
kind? Explain
E(x)= -2000*0.1 + -1000*0.1 + 0*0.2 + 1000*0.2 + 2000*0.3 +
3000*0.1
=800
(iv) What is the good measure of the risk involved in a venture of this
kind? Compute this measure
Standard Deviation
=Square root of Variance
= Square root (((-2800^2)*0.1)+((-1800^2)*0.1) +((-800^2)*0.2) +
((200^2)*0.1) +((1200^2)*0.3) +((2200^2)*0.1))
=1468