MauryaHub PYQ Practice

Statistics for Data Science II · End Term · May 2026 · AN

Statistics for Data Science II · End Term · May 2026 AN

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

18 / 18 published solutions

Question 3 MSQ · 3.0 marks

A company manufactures batteries and claims that the standard deviation of the operating life of a battery is 4 hours. The quality control manager suspects that the actual variability is higher than the claimed value. A random sample of 17 batteries gave a sample standard deviation of 6 hours. Choose the correct set of option(s).
6406537406648.Source diagram or notation
6406537406649.Source diagram or notation
6406537406650.
We accept company's claim at 5% level of significance.
6406537406651.
We reject company's claim at 5% level of significance.

Published solution

The suspicion is higher variability, so test H0:sigma=4 against HA:sigma>4. For a normal population, \(T=(n-1)S^2/\sigma_0^2=16(36)/16=36\) follows chi-square with 16 degrees of freedom under H0. The supplied upper 5% critical value is 26.296. Since 36>26.296, reject the company's claimed standard deviation at 5%. The variance test needs the normality assumption for this exact chi-square calibration. **Answer: A, D.** A: **Correct:** Uses the correct claimed standard deviation and right-tailed alternative. B: **Incorrect:** Tests a decrease, contrary to the manager's suspicion. C: **Incorrect:** The statistic lies in the rejection region. D: **Correct:** 36 exceeds the supplied right-tail critical value.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

A machine produces metal rods whose length
Source diagram or notation
Consider the null and alternative hypotheses
Source diagram or notation
and
Source diagram or notation
Consider a test that accepts
Source diagram or notation
if
Source diagram or notation
for some constant
Source diagram or notation
. What is the significance level of the test?
6406537406652.Source diagram or notation
6406537406653.Source diagram or notation
6406537406654.Source diagram or notation
6406537406655.Source diagram or notation

Published solution

Significance is the probability of rejecting a true null. The rule accepts H0 when X<c, so it rejects when X>=c. Under H0, X has mean 20 and variance 16, hence standard deviation 4. Therefore \[\alpha=P_{20}(X\ge c)=1-F_Z\left(\frac{c-20}{4}\right).\] Endpoints do not matter for a normal variable. Evaluate this probability under mean 20, not under the alternative mean 24. **Answer: B.** A: **Incorrect:** This is the acceptance probability, not the rejection probability. B: **Correct:** Correctly standardises under the null and takes the upper tail. C: **Incorrect:** Uses the alternative distribution rather than the null. D: **Incorrect:** Uses the variance 16 in place of the standard deviation 4 and takes the wrong tail.

Report a correction for Q4

Question 5 NAT · 3.0 marks

The joint PDF of two random variables
Source diagram or notation
and
Source diagram or notation
is given by
Source diagram or notation
Source diagram or notation
Find the value of Enter your answer correct to three decimal places.

Published solution

Integrate the joint density over 0<x<1/2 and 0<y<1: \[P(X<1/2,Y<1)=\int_0^{1/2}\int_0^1 3xy(1-x)\,dy\,dx=\frac32\int_0^{1/2}(x-x^2)\,dx.\] The antiderivative is (3/2)(x²/2-x³/3). At 1/2 it equals (3/2)(1/8-1/24)=1/8=0.125. The integration region lies entirely inside the stated support. **Answer: 0.125.**

Report a correction for Q5

Question 6 NAT · 3.0 marks

A botanist is studying a rare plant species and trying to estimate the probability
Source diagram or notation
that a given seed will germinate under controlled conditions. Historical data indicates that the prior distribution of
Source diagram or notation
follows a
Source diagram or notation
distribution. After planting 15 seeds, where each seed's germination is independent of the others, the botanist observes that 6 out of the 15 seeds germinated. Find the posterior mean of
Source diagram or notation
. Enter your answer correct to two decimal places.

Published solution

A Beta(alpha,beta) prior with s successes and f failures gives Beta(alpha+s,beta+f) posterior for a Bernoulli success probability. Here alpha=4,beta=5,s=6,f=15-6=9, so the posterior is Beta(10,14). Its mean is 10/(10+14)=10/24≈0.416667. Rounded to two decimals, enter 0.42. The second beta parameter counts failures, not the total number of trials. **Answer: 0.42.**

Report a correction for Q6

Question 7 NAT · 0.5 marks

Let
Source diagram or notation
i.i.d.
Source diagram or notation
be a random sample from a population having probability mass function
Source diagram or notation
Find the maximum likelihood estimator of
Source diagram or notation
. Also, find the maximum likelihood estimate of
Source diagram or notation
for the sample {2, 1, 3, 2, 2} **Solution:** Since
Source diagram or notation
are independent, the likelihood function is
Source diagram or notation
Therefore,
Source diagram or notation
The log-likelihood is
Source diagram or notation
Hence,
Source diagram or notation
Differentiating
Source diagram or notation
with respect to
Source diagram or notation
, and set the derivative equal to zero, we obtain
Source diagram or notation
Now, maximum likelihood estimate for the sample {2, 1, 3, 2, 2} will be
Source diagram or notation
. Consider the following options for the blanks.
Source diagram or notation
Answer the given sub-questions. **Note :** Enter only the correct option number (e.g. 8) without any brackets or punctuation.
Enter the correct option number for
Source diagram or notation
.

Published solution

Each observation is Binomial(3,theta). Independence gives a product likelihood. Collecting powers yields \[L(\theta)=\left[\prod_{i=1}^n\binom3{x_i}\right]\theta^{\sum_i x_i}(1-\theta)^{3n-\sum_i x_i}.\] This is option 2. Binomial coefficients multiply, and the total number of Bernoulli trials across n observations is 3n. Enter the option number 2. **Answer: 2.**

Report a correction for Q7

Question 8 NAT · 0.5 marks

Let
Source diagram or notation
i.i.d.
Source diagram or notation
be a random sample from a population having probability mass function
Source diagram or notation
Find the maximum likelihood estimator of
Source diagram or notation
. Also, find the maximum likelihood estimate of
Source diagram or notation
for the sample {2, 1, 3, 2, 2} **Solution:** Since
Source diagram or notation
are independent, the likelihood function is
Source diagram or notation
Therefore,
Source diagram or notation
The log-likelihood is
Source diagram or notation
Hence,
Source diagram or notation
Differentiating
Source diagram or notation
with respect to
Source diagram or notation
, and set the derivative equal to zero, we obtain
Source diagram or notation
Now, maximum likelihood estimate for the sample {2, 1, 3, 2, 2} will be
Source diagram or notation
. Consider the following options for the blanks.
Source diagram or notation
Answer the given sub-questions. **Note :** Enter only the correct option number (e.g. 8) without any brackets or punctuation.
Enter the correct option number for
Source diagram or notation
.

Published solution

Take the log of the likelihood: \[\ell(\theta)=\sum_i\log\binom3{x_i}+\left(\sum_ix_i\right)\log\theta+\left(3n-\sum_ix_i\right)\log(1-\theta).\] Products become sums, while the powers become coefficients. This expression is option 6. The combinatorial term is constant in theta but is still part of the complete log-likelihood. **Answer: 6.**

Report a correction for Q8

Question 9 NAT · 1.0 marks

Let
Source diagram or notation
i.i.d.
Source diagram or notation
be a random sample from a population having probability mass function
Source diagram or notation
Find the maximum likelihood estimator of
Source diagram or notation
. Also, find the maximum likelihood estimate of
Source diagram or notation
for the sample {2, 1, 3, 2, 2} **Solution:** Since
Source diagram or notation
are independent, the likelihood function is
Source diagram or notation
Therefore,
Source diagram or notation
The log-likelihood is
Source diagram or notation
Hence,
Source diagram or notation
Differentiating
Source diagram or notation
with respect to
Source diagram or notation
, and set the derivative equal to zero, we obtain
Source diagram or notation
Now, maximum likelihood estimate for the sample {2, 1, 3, 2, 2} will be
Source diagram or notation
. Consider the following options for the blanks.
Source diagram or notation
Answer the given sub-questions. **Note :** Enter only the correct option number (e.g. 8) without any brackets or punctuation.
Enter the correct option number for
Source diagram or notation
.

Published solution

Let S=sum(xi). Differentiating the nonconstant log-likelihood gives S/theta-(3n-S)/(1-theta)=0. Rearranging yields S=3n theta, so \(\hat\theta=S/(3n)=\bar X/3\). The second derivative is negative for interior samples, confirming a maximum. This estimator is option 8. The factor 3 is needed because each observation counts successes in three trials. **Answer: 8.**

Report a correction for Q9

Question 10 NAT · 1.0 marks

Let
Source diagram or notation
i.i.d.
Source diagram or notation
be a random sample from a population having probability mass function
Source diagram or notation
Find the maximum likelihood estimator of
Source diagram or notation
. Also, find the maximum likelihood estimate of
Source diagram or notation
for the sample {2, 1, 3, 2, 2} **Solution:** Since
Source diagram or notation
are independent, the likelihood function is
Source diagram or notation
Therefore,
Source diagram or notation
The log-likelihood is
Source diagram or notation
Hence,
Source diagram or notation
Differentiating
Source diagram or notation
with respect to
Source diagram or notation
, and set the derivative equal to zero, we obtain
Source diagram or notation
Now, maximum likelihood estimate for the sample {2, 1, 3, 2, 2} will be
Source diagram or notation
. Consider the following options for the blanks.
Source diagram or notation
Answer the given sub-questions. **Note :** Enter only the correct option number (e.g. 8) without any brackets or punctuation.
Calculate the value for
Source diagram or notation
. Enter the answer correct to two decimal places.

Published solution

The sample values 2,1,3,2,2 sum to 10 across n=5 observations. The MLE for a Binomial(3,theta) parameter is total successes divided by total trials: \(\hat\theta=10/(3\cdot5)=2/3\approx0.666667\). Correct to two decimals, enter 0.67. The raw sample mean is 2 successes per observation, not a probability. **Answer: 0.67.**

Report a correction for Q10

Question 11 NAT · 2.0 marks

Let
Source diagram or notation
be a discrete random variable with probability mass function
Source diagram or notation
Based on the above data, answer the given subquestions.
Find the value of
Source diagram or notation
. Enter the answer correct to one decimal place.

Published solution

The strict event 0<X<3 contains only X=1 and X=2. Their PMF values are (1+1)/10=0.2 and (2+1)/10=0.3. Adding gives 0.5. Do not include either endpoint: X=0 has mass 0.1 and X=3 has mass 0.4, and they are excluded by the strict inequalities. **Answer: 0.5.**

Report a correction for Q11

Question 12 NAT · 3.0 marks

Let
Source diagram or notation
be a discrete random variable with probability mass function
Source diagram or notation
Based on the above data, answer the given subquestions.
Find the value of
Source diagram or notation
.

Published solution

First compute E[X]=0(0.1)+1(0.2)+2(0.3)+3(0.4)=2. By linearity, E[X+2]=E[X]+2=4. This does not require transforming the entire PMF, although doing so would give the same shifted expectation. **Answer: 4.**

Report a correction for Q12

Question 13 NAT · 3.0 marks

The lifetime (in hours) of a certain electronic component is modeled by a continuous random variable
Source diagram or notation
with PDF
Source diagram or notation
Based on the above data, answer the given subquestions.
Given that a randomly selected component has a lifetime of more than 2 hours, what is the probability that its lifetime is less than 3 hours? Enter the answer correct to two decimal places.

Published solution

Use the conditional probability ratio: \[P(X<3\mid X>2)=\frac{P(2<X<3)}{P(X>2)}.\] For density x/8, the numerator is [x²/16] from 2 to 3=(9-4)/16=5/16. The denominator is [x²/16] from 2 to 4=(16-4)/16=12/16. Thus the ratio is 5/12≈0.416667, rounding to 0.42. The observation X>2 restricts the reference population for the denominator. **Answer: 0.42.**

Report a correction for Q13

Question 14 MCQ · 2.0 marks

The lifetime (in hours) of a certain electronic component is modeled by a continuous random variable
Source diagram or notation
with PDF
Source diagram or notation
Based on the above data, answer the given subquestions.
The manufacturer defines a transformed variable
Source diagram or notation
Which of the following is the probability density function of
Source diagram or notation
?
6406537406665.Source diagram or notation
6406537406666.Source diagram or notation
6406537406667.Source diagram or notation
6406537406668.Source diagram or notation

Published solution

Y=X² is increasing for 0<X<4. Its inverse is x=sqrt(y) with derivative 1/(2sqrt(y)). The support becomes 0<y<16. Therefore fY(y)=fX(sqrt(y))|dx/dy|=(sqrt(y)/8)/(2sqrt(y))=1/16 on (0,16), zero elsewhere. The Jacobian factor is essential; simply substituting sqrt(y) into the original density is insufficient. **Answer: A.** A: **Correct:** The constant 1/16 on an interval of length 16 is the correct transformed density. B: **Incorrect:** Omits the inverse-derivative factor and does not have the correct normalisation. C: **Incorrect:** Retains a spurious y-dependent inverse-square-root factor. D: **Incorrect:** Treats the transformed value as though it still had the original x/8 density.

Report a correction for Q14

Question 15 MCQ · 2.0 marks

A company claims that the mean lifetime of a particular type of battery is
Source diagram or notation
hours. A researcher suspects that the actual mean lifetime is less than
Source diagram or notation
hours. The hypotheses are
Source diagram or notation
A test is performed at a significance level of
Source diagram or notation
. The resulting p-value is 0.03. It is also known that the probability of failing to reject
Source diagram or notation
when the true mean lifetime is
Source diagram or notation
hours is
Source diagram or notation
. Based on the above data, answer the given subquestions.
Which of the following statements is correct?
6406537406669.
The probability of type I error is
Source diagram or notation
.
6406537406670.
Since the p-value is less than
Source diagram or notation
,
Source diagram or notation
is rejected, and the probability of a Type I error is
Source diagram or notation
.
6406537406671.
The probability of a Type II error is
Source diagram or notation
, and the power of the test is
Source diagram or notation
, against the alternative
Source diagram or notation
6406537406672.
The power of the test is
Source diagram or notation
, against the alternative
Source diagram or notation

Published solution

The given probability of failing to reject when mu=95 is the Type II error beta=0.20 at that alternative. Power there is 1-beta=0.80. The significance level is alpha=0.05, controlling rejection under the null. The observed p-value 0.03 is below alpha and leads to rejection, but it is not itself the probability that the null is true or the test's Type I error rate. **Answer: C.** A: **Incorrect:** 0.20 is the specified Type II error at mu=95, not the Type I level. B: **Incorrect:** Rejection is correct, but assigning the observed p-value as the Type I error probability is incorrect. C: **Correct:** Correctly identifies beta=0.20 and power=0.80 at mu=95. D: **Incorrect:** 0.20 is the miss probability, not the power.

Report a correction for Q15

Question 16 NAT · 3.0 marks

A company claims that the mean lifetime of a particular type of battery is
Source diagram or notation
hours. A researcher suspects that the actual mean lifetime is less than
Source diagram or notation
hours. The hypotheses are
Source diagram or notation
A test is performed at a significance level of
Source diagram or notation
. The resulting p-value is 0.03. It is also known that the probability of failing to reject
Source diagram or notation
when the true mean lifetime is
Source diagram or notation
hours is
Source diagram or notation
. Based on the above data, answer the given subquestions.
For the hypothesis test described here, the population standard deviation is known to be
Source diagram or notation
. The test rejects
Source diagram or notation
when
Source diagram or notation
If the test is conducted at a significance level
Source diagram or notation
, determine the sample size
Source diagram or notation
required for the given rejection rule.

Published solution

Under H0, the sample mean has mean 100 and standard deviation 10/sqrt(n). The left-tail rejection threshold is 96.71. For alpha=0.05 the supplied z critical point is -1.645. Set \[(96.71-100)/(10/\sqrt n)=-1.645.\] This becomes -0.329sqrt(n)=-1.645, giving sqrt(n)=5 and n=25. A normal model or suitable CLT approximation underlies this calibration. **Answer: 25.**

Report a correction for Q16

Question 17 NAT · 2.0 marks

A university wants to estimate the probability
Source diagram or notation
that a randomly selected student passes a particular examination. Before any students are observed, the prior distribution of
Source diagram or notation
is given below:
Source diagram or notation
Five students are selected independently, and their examination outcomes
Source diagram or notation
are observed to be:
Source diagram or notation
Based on the above data, answer the given subquestions.
Find the value of
Source diagram or notation
. Enter the answer correct to three decimal places.

Published solution

The exact ordered outcome sequence has three passes and two failures. Its probability conditional on p is p³(1-p)². Mix over the prior: \[P(S)=0.6(0.8^3\,0.2^2)+0.4(0.6^3\,0.4^2)=0.012288+0.013824=0.026112.\] Rounded to three decimals this is 0.026. No choose(5,3) factor appears because the question specifies the exact sequence S. **Answer: 0.026.**

Report a correction for Q17

Question 18 NAT · 3.0 marks

A university wants to estimate the probability
Source diagram or notation
that a randomly selected student passes a particular examination. Before any students are observed, the prior distribution of
Source diagram or notation
is given below:
Source diagram or notation
Five students are selected independently, and their examination outcomes
Source diagram or notation
are observed to be:
Source diagram or notation
Based on the above data, answer the given subquestions.
Using the posterior mode, estimate the value of
Source diagram or notation
.

Published solution

The posterior candidate weights are prior times likelihood. At p=0.8, the weight is 0.6×0.8³×0.2²=0.012288. At p=0.6, it is 0.4×0.6³×0.4²=0.013824. The larger weight is at p=0.6, so the posterior mode is 0.6, despite its smaller prior mass. A common normalising denominator does not alter this comparison. **Answer: 0.6.**

Report a correction for Q18

Question 19 MCQ · 2.0 marks

Let
Source diagram or notation
be a random sample from a population with mean
Source diagram or notation
and variance
Source diagram or notation
. Consider the estimator
Source diagram or notation
where
Source diagram or notation
and
Source diagram or notation
are known constants and
Source diagram or notation
. Based on the above data, answer the given subquestions.
What is the bias of
Source diagram or notation
?
6406537406676.Source diagram or notation
6406537406677.Source diagram or notation
6406537406678.Source diagram or notation
6406537406679.Source diagram or notation

Published solution

For the estimator mu-hat=aXbar+b, linearity gives E(mu-hat)=a mu+b. Bias is estimator expectation minus the true target, so Bias(mu-hat)=a mu+b-mu=(a-1)mu+b. The constant b can alter bias without affecting the estimator's variance. **Answer: B.** A: **Incorrect:** Adds the target mean rather than subtracting it. B: **Correct:** Correctly subtracts mu from a mu+b. C: **Incorrect:** Omits subtraction of the true mean and uses the wrong sign on b. D: **Incorrect:** Reverses the coefficient of mu; the stated bias convention is E(estimator)-parameter.

Report a correction for Q19

Question 20 NAT · 3.0 marks

Let
Source diagram or notation
be a random sample from a population with mean
Source diagram or notation
and variance
Source diagram or notation
. Consider the estimator
Source diagram or notation
where
Source diagram or notation
and
Source diagram or notation
are known constants and
Source diagram or notation
. Based on the above data, answer the given subquestions.
Suppose
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
, and
Source diagram or notation
. find the value of the risk
Source diagram or notation
.

Published solution

Under squared-error loss, risk is variance plus squared bias. With a=2,b=1,mu=5,sigma²=4,n=8, the bias is (2-1)5+1=6. Variance of the estimator is a²sigma²/n=4×4/8=2. Therefore \[E[(\mu-\hat\mu)^2]=2+6^2=38.\] The direction inside the square does not affect this squared-error risk. **Answer: 38.**

Report a correction for Q20