Week 12 Graded Assignment
Statistics Graded Assignment
Here are all the questions and their solutions from the Week_12_Graded_Solution.pdf (Statistics for Data Science-1, Week 12 Graded Assignment, Continuous random variables)12:
1. Uniformly Distributed Random Variable
Question: Let a random variable be uniformly distributed over [a,b] with expectation e and variance v respectively. Find the value of ab.
Answer: ab=e2−3v
Solution: Given:
E[X]=2b+a=e⟹(b+a)2=4e2Var(X)=12(b−a)2=v⟹(b−a)2=12v(b+a)2−(b−a)2=4ab=4e2−12v⟹ab=e2−3vExample: If e=6, v=4:
ab=36−12=242. Probability Density Function (Quadratic)
Question: The probability density function of a random variable X is given by
f(x)={kx20if 0≤x≤1otherwiseFind P(m<X<n). Options: a. n2−m2 b. 9n3−m3 c. 9n2−m2 d. n3−m3
Answer: d. n3−m3
Solution:
∫01kx2dx=1⟹k=3P(m<X<n)=∫mn3x2dx=n3−m3Example: If m=0.1, n=0.7:
P=0.73−0.13=0.3423. Uniform Distribution (Milk Production)
Question: The amount of milk produced every day by a dairy is uniformly distributed between 100 litres and 120 litres. What is the probability that the amount of milk produced is more than m litres given that on that day, more than n litres of milk was produced? (Answer correct to 2 decimal places)
Answer:
120−n120−mSolution:
P(X>m∣X>n)=1−P(X≤n)1−P(X≤m)=120−n120−mExample: If m=115, n=110:
P=105=0.54. Uniform Distribution (Train Arrival)
Question: The time that Jan Shatabdi express will reach the Delhi station is uniformly distributed between x p.m. and y p.m. What is the probability that the train reaches Delhi exactly at z p.m.?
Answer: 0
Solution: For a continuous uniform distribution, the probability at any exact point is zero.
5. Exponential Distribution (Restaurant Service)
Question: The length of time for one person to be served at a restaurant is exponentially distributed, with an expected time of t minutes. If 5 persons arrived at the restaurant, what is the probability that at least 2 of them will be served in more than p minutes? (Assume independence)
Options: a. 1−(1−e−p/t)5−5e−p/t(1−e−p/t)4 b. 1−(e−p/t)5−[5(e−p/t)4(1−e−p/t)] c. 1−(1−e−pt)5−[5e−pt(1−e−pt)4] d. 1−(e−pt)5−[5e−4pt(1−e−pt)]
Answer: a. 1−(1−e−p/t)5−5e−p/t(1−e−p/t)4
Solution:
P(X>p)=e−p/tProbability at least 2 out of 5 take more than p minutes:
P(at least 2)=1−P(0)−P(1)P(0)=(1−e−p/t)5,P(1)=5e−p/t(1−e−p/t)4P(at least 2)=1−(1−e−p/t)5−5e−p/t(1−e−p/t)46. Piecewise PDF
Question: Probability density function of a random variable X is given by
f(x)=⎩⎨⎧0.2x0.20.2x−0.20.40if 0≤x≤1if 1≤x≤2if 2≤x≤3if 3≤x≤4otherwiseFind the probability that 0<X<2.5. (Answer up to three decimal points)
Answer: 0.425 (accepted range: [0.421, 0.429])
Solution:
P(0<X<2.5)=∫010.2xdx+∫120.2dx+∫22.5(0.2x−0.2)dx=0.4257. Exponential Distribution (Visitor Arrival)
Question: In a certain exhibition, the time for the next visitor to come is exponentially distributed with a standard deviation of t minutes. What will be the expected time (in minutes) for two visitors to arrive if one comes after the other? (Assume independence)
Options: a. t1 b. 2t c. t d. t2
Answer: b. 2t
Solution:
Mean=t,For two independent events: 2t8. Uniform Distribution (Badminton Match)
Question: The total duration (in minutes) of a badminton match in the Premier Badminton League (PBL) is uniformly distributed between [a,b] with variance 12 square minutes. The probability that a match will last at most m minutes is p1. Find the expected time duration (in minutes) of a badminton match. (Answer correct to 1 decimal place)
Solution:
12(b−a)2=12⟹b−a=12P(X≤m)=b−am−a=p1⟹m−a=p12a=m−p12,b=m−p12+12E[X]=2a+b=m−p12+6Example: If m=42, p=6:
a=40,b=52,E[X]=469. Exponential Distribution (Customer Care)
Question: The probability density function of the time X (in minutes) between calls at the customer care is given by
f(x)={m1e−x/m0if 0≤x<∞otherwiseFind the probability that time between calls exceeds the mean time.
Options: a. 1−e1 b. 1−e c. e1 d. e
Answer: c. e1
Solution:
P(X≥m)=e−1=e110. Exponential Distribution (Light Bulb Lifetime)
Question: The lifetime of a light bulb is exponentially distributed with a mean life of n months. If there are p chances that a light bulb will last at most t months, what is the value of t?
Options: a. nln(100100−p) b. nln(100−p100) c. n1ln(100100−p) d. n1ln(100−p100)
Answer: b. nln(100−p100)
Solution:
P(X≤t)=100p⟹1−e−t/n=100pe−t/n=100100−p⟹t=nln(100−p100)Example: If n=18, p=60:
t=18ln(2.5)This covers all questions and solutions from the PDF12.