12.inferential Statistics
12.inferential Statistics
Instructions:
Please share your answers filled inline in the word document. Submit Python code and R code
files wherever applicable.
Insights should be drawn from the plots about the data such as, is data normally
distributed/not, outliers, measures like mean, median, mode, variance, std. deviation
Name: Navya.P
Problem Statements:
Q1) Three Coins are tossed, find the probability that two heads and one tail are obtained?
Q4) 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)
i. Child A – probability of having 1 candy is 0.015
ii. Child B – probability of having 4 candies is 0.2
17.8487
Mean of weight 5
median 17.71
3.19316
variance 6
1.78694
SD 3
range 8.4
Observations :
Mean and Median of all the three data sets are almost equal, implying the chance of outliers is
very less.
Range of weight is more implying the wide spread of the data.
Also, SD of points is less and nearby zero implying the data is near to the mean. SD of score is
slightly more indicating widespread than points.
SD of weight is more which indicates the data is spread far away from the mean.
Q7) Look at the data given below. Plot the data, find the outliers and find out μ , σ , σ 2
Hint: [Use a plot which shows the data distribution, skewness along with the outliers; also use
R/Python code to evaluate measures of centrality and spread]
The above data is saved to excel file and worked in R to get the relevant information.
The column Measure X is preprocessed to get the information.
The code is as follows.
The data has positive skewness and kurtosis is also positive. We have a he difference between
mean and mode owing to the outlier present.
What is the probability that at least one in five attempted telephone calls reaches the wrong
number? (Assume independence of attempts.)
Hint: [Using Probability formula evaluate the probability of one call being wrong out of five
attempted calls]
Q9) 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
(i) What is the most likely monetary outcome of the business venture?
Hint: [The outcome is most likely the expected returns of the venture]
(iii) What is the long-term average earning of business ventures of this kind? Explain.
Hint: [Here, the expected returns to the venture is considered as the
the required average]
The longterm average is nothing but the expected value of the business, which
is 800.
Expected value = ∑X*P(x)
= -2000*0.1+(-1000*0.1)+0+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.
Hint: [Risk here stems from the possible variability in the expected returns,
therefore, name the risk measure for this venture]
Standard deviation (sd) = 0.08164
Hints:
For each assignment, the solution should be submitted in the below format
1. Research and Perform all possible steps for obtaining solution.
2. For Statistics calculations, explanation of the solutions should be documented detail along
with codes. Use the same word document to fill in your explanation
Must follow these guidelines: