Aller au contenu

Exercices

LEPL1109Exercices

Let us consider two discrete random variables (Y) and (Z) with joint pmf’s (probability mass function) presented in the following table:

(Z=-1)(Z=5)
(Y=-4)(0.1)(0.5)
(Y=6)(0.2)(0.2)

a) Calculate the expectation and variance of (Z).

b) Calculate the expectation and variance of (Y).

c) Calculate the covariance and correlation between (Z) and (Y).

Voir la solution


Exercise 2 — Continuous distribution, quantiles and affine transformation

Section intitulée « Exercise 2 — Continuous distribution, quantiles and affine transformation »

Let us consider a continuous random variable (X) with a pdf (probability distribution function) given by

fX(x)={k(1+x2),−1≤x≤1,0,otherwise.f_X(x)= \begin{cases} k(1+x^2), & -1\le x\le 1,\\ 0, & \text{otherwise}. \end{cases}

a) Find the value of (k).

b) Calculate the expectation and variance of (X).

c) Find the equation satisfied by the quantiles (q) of (X) for a probability (alpha).

d) Let us define a random variable (Y:=3X+2). What is its pdf (f_Y(y)) and its support?

e) Find the covariance and correlation coefficient between (X) and (Y).

Voir la solution


Exercise 7 — Quantiles from the statistical tables

Section intitulée « Exercise 7 — Quantiles from the statistical tables »

Use the statistical tables to retrieve the following information:

a) The 2.5%2.5\% and 97.5%97.5\% quantiles of a Student TT random variable with 2020 degrees of freedom.

b) The 2.5%2.5\% and 97.5%97.5\% quantiles of a chi-square χ2\chi^2 random variable with 2020 degrees of freedom.

c) The 2.5%2.5\% and 97.5%97.5\% quantiles of a Fisher Fn1,n2F_{n_1,n_2} random variable with n1=4n_1=4 and n2=10n_2=10.

d) The 2.5%2.5\% and 97.5%97.5\% quantiles of a Normal random variable N(μ,σ2)N(\mu,\sigma^2) with μ=10\mu=10 and σ=3\sigma=3 (hint: use standardization).

Voir la solution


Exercise 12 — Normal distribution and inverse probability questions

Section intitulée « Exercise 12 — Normal distribution and inverse probability questions »

Let (X) have a Normal distribution with mean (mu=3) and variance (sigma^2=1.25). Calculate using the statistical table:

1. The probability that (X) is at least (2.5).

3. The probability that (X) is at most (4).

6. Now find (a,b,c,d) such that

P(X≥a)=0.674,P(X≤b)=0.037,P(X≤c)=0.81,P(X≥d)=0.326,P(X\ge a)=0.674,\qquad P(X\le b)=0.037,\qquad P(X\le c)=0.81,\qquad P(X\ge d)=0.326,

respectively. Do you obtain results coherent with the first four questions?

Voir la solution


Exercise 13 — Marginals, covariance and conditional distribution

Section intitulée « Exercise 13 — Marginals, covariance and conditional distribution »

Consider the following pdf of X1X_1, X2X_2 and X3X_3:

f(x1,x2,x3)=2x2(x1+x3),0<x1,x2,x3<1.f(x_1,x_2,x_3) = 2x_2(x_1+x_3), \qquad 0<x_1,x_2,x_3<1.

1. Find the joint pdf fX1,X3(x1,x3)f_{X_1,X_3}(x_1,x_3).

2. Calculate the expectation of X1X_1 and its variance.

3. Calculate the covariance between X1X_1 and X2X_2. Are they independent?

4. Calculate the conditional pdf of (X1,X2)(X_1,X_2) conditionally on X3=x3X_3=x_3, and calculate

E ⁣((X1X2)|X3=x3).E\!\left( \begin{pmatrix} X_1\\ X_2 \end{pmatrix} \middle|X_3=x_3 \right).

Voir la solution


Let

X=(X1X2)X= \begin{pmatrix} X_1\\ X_2 \end{pmatrix}

be a bivariate Normal random variable with mean vector and covariance matrix

μ=(23),Σ=(4223).\mu= \begin{pmatrix} 2\\ 3 \end{pmatrix}, \qquad \Sigma= \begin{pmatrix} 4&2\\ 2&3 \end{pmatrix}.

1. Find the distribution of

Y=3X1+X2−3.Y=3X_1+X_2-3.

2. Retrieve the conditional distribution of X2X_2 given X1=x1X_1=x_1.

Voir la solution


Selected exercises: 2, 3, 4, 6, 9 and 10. The statements are kept close to the official TP, with clearer notation where the PDF layout is ambiguous.

Exercise 2 — Method of moments, bias and piecewise likelihood

Section intitulée « Exercise 2 — Method of moments, bias and piecewise likelihood »

The time spent by a customer at the counter of a bank office is a random variable XX with pdf

f(x;θ)={13θ,x∈[0,θ],23(21−θ),x∈(θ,21],0,otherwise,0<θ<21.f(x;\theta)= \begin{cases} \dfrac{1}{3\theta}, & x\in[0,\theta],\\[6pt] \dfrac{2}{3(21-\theta)}, & x\in(\theta,21],\\[6pt] 0, & \text{otherwise}, \end{cases} \qquad 0<\theta<21.

a) Determine E(X)E(X). From a sample of observations (x1,…,xn)(x_1,\ldots,x_n), estimate θ\theta by the method of moments.

b) Find the bias of the method-of-moments estimator.

c) Write the log-likelihood of the sample. Does the maximum-likelihood estimator admit an analytical closed form?

Voir la solution


Let XX be a random variable with pdf

f(x;α)={(α+1)xα,0≤x≤1,0,otherwise,α>−1.f(x;\alpha)= \begin{cases} (\alpha+1)x^\alpha, & 0\le x\le1,\\ 0, & \text{otherwise}, \end{cases} \qquad \alpha>-1.

a) Determine E(X)E(X) and V(X)V(X), then estimate α\alpha by the method of moments.

b) From a sample (x1,…,xn)(x_1,\ldots,x_n), estimate α\alpha by maximum likelihood. Does the estimator admit an analytical form?

c) Find the bias of the maximum-likelihood estimator obtained in (b).
Hint: first find the distribution of

Y=−ln⁡X.Y=-\ln X.

Voir la solution


The height of Belgian male citizens is modeled by a Normal random variable

X∼N(μ,σ2),X\sim N(\mu,\sigma^2),

with unknown mean μ\mu and unknown standard deviation σ\sigma. Its pdf is

f(x;μ,σ)=1σ2πexp⁡ ⁣[−12(x−μσ)2].f(x;\mu,\sigma) = \frac{1}{\sigma\sqrt{2\pi}} \exp\!\left[ -\frac12\left(\frac{x-\mu}{\sigma}\right)^2 \right].

From a random sample (x1,…,xn)(x_1,\ldots,x_n), we wish to estimate μ\mu and σ2\sigma^2 by maximum likelihood.

a) Write the log-likelihood of the sample.

b) Find the estimators μ^\hat\mu and σ^MLE2\hat\sigma^2_{\mathrm{MLE}}, and calculate their biases.

c) Study the estimator of the mean obtained in (b): determine the exact probability distribution of

μ^=Xˉ,\hat\mu=\bar X,

give its variance, and compute

MSE⁡(μ^)=E ⁣[(μ^−μ)2].\operatorname{MSE}(\hat\mu) = E\!\left[(\hat\mu-\mu)^2\right].

Voir la solution


Exercise 6 — Gamma estimation and sampling distribution

Section intitulée « Exercise 6 — Gamma estimation and sampling distribution »

We consider a continuous random variable XX with pdf

f(x;θ)=1Γ(2)xθ2e−x/θ,x≥0,θ>0,f(x;\theta) = \frac{1}{\Gamma(2)} \frac{x}{\theta^2} e^{-x/\theta}, \qquad x\ge0,\quad \theta>0,

and observe a sample (x1,…,xn)(x_1,\ldots,x_n).

a) Estimate θ\theta by the method of moments.

b) Write the log-likelihood and estimate θ\theta by maximum likelihood.

c) Find the probability distribution of the estimator θ^\hat\theta, its expectation and variance. Find the mean squared error (MSE) of θ^\hat\theta.

d) Use a Normal approximation for θ^\hat\theta and determine an interval in which θ^\hat\theta lies with probability 0.950.95. Can this interval be computed in practice?

Voir la solution


Exercise 9 — Two estimators for the endpoint of a Uniform distribution

Section intitulée « Exercise 9 — Two estimators for the endpoint of a Uniform distribution »

Let

X1,…,Xn∼iidU(0,θ).X_1,\ldots,X_n\overset{iid}{\sim}U(0,\theta).

a) Check that two estimators of θ\theta are

θ^=max⁡(X1,…,Xn)\hat\theta = \max(X_1,\ldots,X_n)

by maximum-likelihood estimation, and

θ~=2Xˉ\tilde\theta = 2\bar X

by the method of moments.

b) Calculate

E(θ^),E(θ~),V(θ^),V(θ~).E(\hat\theta),\qquad E(\tilde\theta),\qquad V(\hat\theta),\qquad V(\tilde\theta).

c) Which estimator do you prefer? Justify your answer using the mean squared error (MSE) rather than bias alone.

Voir la solution


Exercise 10 — Exponential MLE, bias and confidence interval

Section intitulée « Exercise 10 — Exponential MLE, bias and confidence interval »

Let X1,…,XnX_1,\ldots,X_n be iid random variables with pdf

fX(x;λ)=1λexp⁡(−xλ),x>0,λ>0.f_X(x;\lambda)=\frac{1}{\lambda}\exp\left(-\frac{x}{\lambda}\right), \qquad x>0,\quad \lambda>0.

a) Find the maximum-likelihood estimator λ^\hat\lambda of λ\lambda.

b) What are its bias, variance and mean squared error (MSE)?

c) Assume n=100n=100. Use a Normal approximation for λ^\hat\lambda and determine a confidence interval for λ\lambda at level α=5%\alpha=5\%.

Hint from the statement: use the sample variance instead of V(X)V(X).

Voir la solution


Exercise 2 — Confidence intervals for a Normal population

Section intitulée « Exercise 2 — Confidence intervals for a Normal population »

We assume that the height of a Belgian female citizen, denoted by XX, follows a Normal distribution. The population standard deviation is unknown.

We measure the heights of a sample of n=100n=100 UCL students and observe

xˉ=174 cm,s2=(11.7 cm)2.\bar x=174\ \mathrm{cm}, \qquad s^2=(11.7\ \mathrm{cm})^2.

a) Find a confidence interval for μ=E(X)\mu=E(X) at level α=10%\alpha=10\%.

b) Find a confidence interval for σ2=V(X)\sigma^2=V(X) at level α=10%\alpha=10\%.

Voir la solution


Exercise 3 — Two Normal populations with a common variance

Section intitulée « Exercise 3 — Two Normal populations with a common variance »

The heights of Belgian female and male citizens, denoted respectively by XfX_f and XmX_m, follow Normal distributions. Their population standard deviations are unknown but assumed equal.

Samples of UCL female and male students give the following observations (the official correction uses nf=nm=100n_f=n_m=100):

xˉf=173 cm,sf2=(8.7 cm)2,xˉm=177 cm,sm2=(9.3 cm)2.\begin{aligned} \bar x_f&=173\ \mathrm{cm}, & s_f^2&=(8.7\ \mathrm{cm})^2,\\ \bar x_m&=177\ \mathrm{cm}, & s_m^2&=(9.3\ \mathrm{cm})^2. \end{aligned}

a) Find a confidence interval for μm−μf=E(Xm)−E(Xf)\mu_m-\mu_f=E(X_m)-E(X_f) at level α=5%\alpha=5\%.

b) Find a confidence interval for the common variance

σ2=V(Xm)=V(Xf)\sigma^2=V(X_m)=V(X_f)

at level α=5%\alpha=5\%.

Voir la solution


We test a voltmeter suspected of giving distorted measurements. We measure the voltage of a standard battery with nominal voltage 60 V nine times, obtaining:

Measurement123456789
Voltage (V)61.061.358.261.960.360.659.760.861.8

The statement gives the observed sample mean and sample variance:

xˉ=60.62 V,s2=1.31 V2,n=9.\bar x=60.62\ \mathrm V,\qquad s^2=1.31\ \mathrm V^2,\qquad n=9.

a) Select the appropriate test to check whether the voltmeter is distorted. Calculate the p-value.

b) The manufacturer claims that the variance of its measurements exceeds 0.81 V20.81\ \mathrm V^2. Test this claim and calculate the p-value.

c) Give a confidence interval for the population mean of the measured voltages with α=0.05\alpha=0.05.

d) Calculate a confidence interval for the population variance of the measurements with α=0.05\alpha=0.05.

Voir la solution


Exercise 2 — Dust emissions from two boiler types (a–b)

Section intitulée « Exercise 2 — Dust emissions from two boiler types (a–b) »

The quantities of dust emitted by 8 boilers of type A and 6 boilers of type B, used in similar conditions, were measured over a certain period (in grams):

TypeObserved dust quantities (g)
A64, 75, 39, 47, 49, 81, 72, 61
B31, 57, 63, 40, 54, 49

Determine whether:

a) The variances of dust emissions of the two boiler types differ, using α=0.02\alpha=0.02.

b) The mean dust emission for boiler A is at least 5 g greater than for boiler B, using α=0.05\alpha=0.05. Calculate the p-value.

Only (a) and (b) are selected here; (c) and (d) of the official exercise are not included.

Voir la solution


Exercise 3 — Two phosphate measurement methods (paired observations)

Section intitulée « Exercise 3 — Two phosphate measurement methods (paired observations) »

To determine the quantity of phosphate in an ore, two methods are considered: gravimetric (A) and spectroscopic (B). We suspect that they do not give the same results.

Ten identical ore samples (with the same features) are each measured using both methods. Observed quantities in grams:

Sample12345678910
A55.662.448.945.575.489.638.496.892.598.7
B52.466.351.246.174.392.540.297.394.899.0

The statement assumes that the phosphate concentrations in the samples have a Normal distribution.

a) Propose a test to determine whether the two methods produce different measurements, with α=0.05\alpha=0.05.

b) Calculate the p-value of your test.

Hint from the statement: the two methods are applied to the same samples, so a test for two independent populations is not appropriate.

Voir la solution


First obtain the marginal pmf of (Z) by summing the probabilities in each column:

P(Z=−1)=0.1+0.2=0.3,P(Z=-1)=0.1+0.2=0.3, P(Z=5)=0.5+0.2=0.7.P(Z=5)=0.5+0.2=0.7.

Hence

E(Z)=(−1)(0.3)+5(0.7)=3.2.E(Z)=(-1)(0.3)+5(0.7)=3.2.

For the variance, first compute the second moment:

E(Z2)=(−1)2(0.3)+52(0.7)=0.3+17.5=17.8.E(Z^2)=(-1)^2(0.3)+5^2(0.7) =0.3+17.5 =17.8.

Therefore

V(Z)=E(Z2)−E(Z)2=17.8−3.22=7.56.V(Z)=E(Z^2)-E(Z)^2 =17.8-3.2^2 =\boxed{7.56}.

So

E(Z)=3.2,V(Z)=7.56.\boxed{E(Z)=3.2,\qquad V(Z)=7.56.}

The marginal pmf of (Y) is obtained by summing the probabilities in each row:

P(Y=−4)=0.1+0.5=0.6,P(Y=-4)=0.1+0.5=0.6, P(Y=6)=0.2+0.2=0.4.P(Y=6)=0.2+0.2=0.4.

Thus

E(Y)=(−4)(0.6)+6(0.4)=0.E(Y)=(-4)(0.6)+6(0.4)=0.

The second moment is

E(Y2)=(−4)2(0.6)+62(0.4)=16(0.6)+36(0.4)=24.E(Y^2)=(-4)^2(0.6)+6^2(0.4) =16(0.6)+36(0.4) =24.

Since (E(Y)=0),

V(Y)=E(Y2)−E(Y)2=24.V(Y)=E(Y^2)-E(Y)^2=24.

Hence

E(Y)=0,V(Y)=24.\boxed{E(Y)=0,\qquad V(Y)=24.}

The key quantity is the cross moment (E(YZ)). For a discrete pair, each possible product (yz) is weighted by its joint probability:

E(YZ)=(−4)(−1)(0.1)+(−4)(5)(0.5)+(6)(−1)(0.2)+(6)(5)(0.2)=0.4−10−1.2+6=−4.8.\begin{aligned} E(YZ) &=(-4)(-1)(0.1)+(-4)(5)(0.5)\\ &\quad +(6)(-1)(0.2)+(6)(5)(0.2)\\ &=0.4-10-1.2+6\\ &=-4.8. \end{aligned}

The covariance is

C(Y,Z)=E(YZ)−E(Y)E(Z).C(Y,Z)=E(YZ)-E(Y)E(Z).

Since (E(Y)=0),

C(Y,Z)=−4.8−(0)(3.2)=−4.8.C(Y,Z)=-4.8-(0)(3.2)=\boxed{-4.8}.

Finally,

ρY,Z=C(Y,Z)V(Y)V(Z)=−4.8247.56≈−0.3563.\rho_{Y,Z} = \frac{C(Y,Z)} {\sqrt{V(Y)}\sqrt{V(Z)}} = \frac{-4.8} {\sqrt{24}\sqrt{7.56}} \approx \boxed{-0.3563}.

The negative sign means that the linear association is negative; its magnitude is well below (1), so the relationship is not perfectly linear.

↑ Retour à l’exercice 1


A probability density must integrate to (1):

∫−11k(1+x2) dx=1.\int_{-1}^{1} k(1+x^2)\,dx=1.

Therefore

k[x+x33]−11=1.k\left[x+\frac{x^3}{3}\right]_{-1}^{1}=1.

The integral equals

(1+13)−(−1−13)=83.\left(1+\frac13\right)-\left(-1-\frac13\right) =\frac83.

Thus

k83=1⟹k=38.k\frac83=1 \qquad\Longrightarrow\qquad \boxed{k=\frac38}.

The expectation is

E(X)=k∫−11x(1+x2) dx=k∫−11(x+x3) dx.E(X) = k\int_{-1}^{1}x(1+x^2)\,dx = k\int_{-1}^{1}(x+x^3)\,dx.

The integrand is odd and the interval is symmetric around (0), hence

E(X)=0.\boxed{E(X)=0}.

For the variance, use

V(X)=E(X2)−E(X)2.V(X)=E(X^2)-E(X)^2.

Since (E(X)=0),

V(X)=E(X2).V(X)=E(X^2).

Now

E(X2)=k∫−11x2(1+x2) dx=k∫−11(x2+x4) dx=38(23+25)=381615=25.\begin{aligned} E(X^2) &=k\int_{-1}^{1}x^2(1+x^2)\,dx\\ &=k\int_{-1}^{1}(x^2+x^4)\,dx\\ &=\frac38\left(\frac23+\frac25\right)\\ &=\frac38\frac{16}{15}\\ &=\boxed{\frac25}. \end{aligned}

Therefore

E(X)=0,V(X)=25.\boxed{E(X)=0,\qquad V(X)=\frac25.}

A quantile qαq_\alpha is defined by

P(X≤qα)=α.P(X\le q_\alpha)=\alpha.

Because the support begins at (-1),

∫−1qαk(1+x2) dx=α.\int_{-1}^{q_\alpha} k(1+x^2)\,dx=\alpha.

Using (k=3/8),

∫−1qα38(1+x2) dx=38[x+x33]−1qα=18(qα3+3qα+4).\begin{aligned} \int_{-1}^{q_\alpha} \frac38(1+x^2)\,dx &= \frac38 \left[x+\frac{x^3}{3}\right]_{-1}^{q_\alpha}\\ &= \frac18 \left(q_\alpha^3+3q_\alpha+4\right). \end{aligned}

Hence the quantile is the solution in ([-1,1]) of

18(qα3+3qα+4)=α.\boxed{ \frac18\left(q_\alpha^3+3q_\alpha+4\right)=\alpha. }

This is the inverse-CDF idea: the probability α\alpha is given, and we solve for the cutoff qαq_\alpha.

First transform the support. Since

−1≤X≤1,-1\le X\le1,

we have

−1=3(−1)+2≤Y≤3(1)+2=5.-1=3(-1)+2\le Y\le3(1)+2=5.

Thus the support of (Y) is ([-1,5]).

For an affine transformation (Y=3X+2),

x=y−23and∣dxdy∣=13.x=\frac{y-2}{3} \qquad\text{and}\qquad \left|\frac{dx}{dy}\right|=\frac13.

Therefore

fY(y)=13fX(y−23).f_Y(y) = \frac13 f_X\left(\frac{y-2}{3}\right).

For −1≤y≤5-1\le y\le5,

fY(y)=1338[1+(y−23)2]=18[1+(y−2)29]=172(y2−4y+13).\begin{aligned} f_Y(y) &= \frac13\frac38 \left[ 1+ \left(\frac{y-2}{3}\right)^2 \right]\\ &= \frac18 \left[ 1+\frac{(y-2)^2}{9} \right]\\ &= \frac{1}{72}(y^2-4y+13). \end{aligned}

Hence

fY(y)={172(y2−4y+13),−1≤y≤5,0,otherwise.\boxed{ f_Y(y)= \begin{cases} \dfrac{1}{72}(y^2-4y+13), & -1\le y\le5,\\ 0, & \text{otherwise}. \end{cases} }

Because

Y=3X+2,Y=3X+2,

(Y) is an exact increasing affine function of (X). Therefore the linear relationship is perfect and positive:

ρX,Y=1.\boxed{\rho_{X,Y}=1}.

For the covariance,

C(X,Y)=C(X,3X+2)=3C(X,X)=3V(X).C(X,Y) = C(X,3X+2) = 3C(X,X) = 3V(X).

Since (V(X)=2/5),

C(X,Y)=325=65.\boxed{ C(X,Y)=3\frac25=\frac65. }

The same result follows from the official correction’s route:

V(Y)=9V(X)=185,V(Y)=9V(X)=\frac{18}{5},

so

C(X,Y)=ρX,YσXσY=1×25185=65.C(X,Y) = \rho_{X,Y}\sigma_X\sigma_Y = 1\times \sqrt{\frac25} \sqrt{\frac{18}{5}} = \frac65.

↑ Retour à l’exercice 2


A quantile (q_p) is a value satisfying

P(X≤qp)=p.P(X\le q_p)=p.

The goal of this exercise is therefore to identify the correct distribution, degrees of freedom and probability level before reading the statistical tables.

Let (t_{20,p}) denote the (p)-quantile of a Student distribution with (20) degrees of freedom.

From the table,

t20,0.975=2.086.t_{20,0.975}=2.086.

The Student distribution is symmetric around (0), hence

t20,0.025=−t20,0.975=−2.086.t_{20,0.025}=-t_{20,0.975}=-2.086.

Therefore

t20,0.025=−2.086,t20,0.975=2.086.\boxed{ t_{20,0.025}=-2.086, \qquad t_{20,0.975}=2.086. }

The chi-square distribution is not symmetric, so the two quantiles are read separately from the table:

χ20,0.0252=9.59083,χ20,0.9752=34.1696.\boxed{ \chi^2_{20,0.025}=9.59083, \qquad \chi^2_{20,0.975}=34.1696. }

There is no sign-symmetry shortcut here.

For the upper quantile, the table directly gives

F4,10;0.975=4.47.\boxed{F_{4,10;0.975}=4.47}.

For the lower 2.5%2.5\% quantile, let

F∼F4,10F\sim F_{4,10}

and seek (q) such that

P(F≤q)=0.025.P(F\le q)=0.025.

Use the reciprocal property

1F∼F10,4.\frac1F\sim F_{10,4}.

Then

P(F≤q)=0.025P(F\le q)=0.025

is equivalent to

P(1F≥1q)=0.025.P\left(\frac1F\ge\frac1q\right)=0.025.

Since the distribution is continuous,

P(1F≤1q)=0.975.P\left(\frac1F\le\frac1q\right)=0.975.

Thus 1/q1/q is the 97.5%97.5\% quantile of F10,4F_{10,4}. From the table,

F10,4;0.975=8.84.F_{10,4;0.975}=8.84.

Therefore

1q=8.84⟹q=18.84≈0.1131.\frac1q=8.84 \qquad\Longrightarrow\qquad q=\frac1{8.84}\approx0.1131.

Hence

F4,10;0.025≈0.1131,F4,10;0.975=4.47.\boxed{ F_{4,10;0.025}\approx0.1131, \qquad F_{4,10;0.975}=4.47. }

d) Normal distribution X∼N(10,32)X\sim N(10,3^2)

Section intitulée « d) Normal distribution X∼N(10,32)X\sim N(10,3^2)X∼N(10,32) »

Standardize:

Z=X−103∼N(0,1).Z=\frac{X-10}{3}\sim N(0,1).

Equivalently,

X=10+3Z.X=10+3Z.

For the standard Normal distribution,

z0.025=−1.96,z0.975=1.96.z_{0.025}=-1.96, \qquad z_{0.975}=1.96.

Therefore

x0.025=10+3(−1.96)=4.12,x_{0.025} = 10+3(-1.96) = \boxed{4.12},

and

x0.975=10+3(1.96)=15.88.x_{0.975} = 10+3(1.96) = \boxed{15.88}.

The important reflex is:

xp=μ+σzp.\boxed{x_p=\mu+\sigma z_p}.

↑ Retour à l’exercice 7


We have

X∼N(3,1.25),X\sim N(3,1.25),

so

μ=3,σ=1.25.\mu=3, \qquad \sigma=\sqrt{1.25}.

The standardized variable is

Z=X−31.25∼N(0,1).Z=\frac{X-3}{\sqrt{1.25}}\sim N(0,1).

For the official 2026–2027 Normal table used here, read probabilities in the form

P(Z<z).P(Z<z).

We want

P(X≥2.5).P(X\ge2.5).

Standardize:

P(X≥2.5)=P(Z≥2.5−31.25)≈P(Z≥−0.45).\begin{aligned} P(X\ge2.5) &= P\left( Z\ge \frac{2.5-3}{\sqrt{1.25}} \right)\\ &\approx P(Z\ge-0.45). \end{aligned}

By symmetry of the standard Normal distribution,

P(Z≥−0.45)=P(Z≤0.45).P(Z\ge-0.45)=P(Z\le0.45).

The table gives

P(Z≤0.45)=0.6736.P(Z\le0.45)=0.6736.

Hence

P(X≥2.5)≈0.6736.\boxed{P(X\ge2.5)\approx0.6736}.

A useful check: (2.5) is below the mean (3), so a probability larger than (0.5) is coherent.

We want

P(X≤4).P(X\le4).

Standardization gives

P(X≤4)=P(Z≤4−31.25)≈P(Z≤0.89).\begin{aligned} P(X\le4) &= P\left( Z\le \frac{4-3}{\sqrt{1.25}} \right)\\ &\approx P(Z\le0.89). \end{aligned}

From the table,

P(Z≤0.89)=0.8133.P(Z\le0.89)=0.8133.

Therefore

P(X≤4)≈0.8133.\boxed{P(X\le4)\approx0.8133}.

This is equivalent to the official correction’s complementary form

1−P(Z≥0.89)=1−0.1867=0.8133.1-P(Z\ge0.89)=1-0.1867=0.8133.

This time the probability is known and the cutoff value is unknown: these are inverse probability, or quantile, questions.

Find aa such that P(X≥a)=0.674P(X\ge a)=0.674
Section intitulée « Find aaa such that P(X≥a)=0.674P(X\ge a)=0.674P(X≥a)=0.674 »

Standardize:

P(Z≥a−31.25)=0.674.P\left( Z\ge \frac{a-3}{\sqrt{1.25}} \right)=0.674.

Equivalently, the left-tail probability is

P(Z≤a−31.25)=0.326.P\left( Z\le \frac{a-3}{\sqrt{1.25}} \right)=0.326.

From the table,

P(Z≤−0.45)≈0.326.P(Z\le-0.45)\approx0.326.

Thus

a−31.25=−0.45,\frac{a-3}{\sqrt{1.25}}=-0.45,

so

a=3−0.451.25≈2.496.a = 3-0.45\sqrt{1.25} \approx \boxed{2.496}.
Find bb such that P(X≤b)=0.037P(X\le b)=0.037
Section intitulée « Find bbb such that P(X≤b)=0.037P(X\le b)=0.037P(X≤b)=0.037 »

We need

P(Z≤b−31.25)=0.037.P\left( Z\le \frac{b-3}{\sqrt{1.25}} \right)=0.037.

The corresponding standard Normal quantile is approximately

z=−1.79.z=-1.79.

Hence

b−31.25=−1.79,\frac{b-3}{\sqrt{1.25}}=-1.79,

and

b=3−1.791.25≈1.00.b = 3-1.79\sqrt{1.25} \approx \boxed{1.00}.
Find cc such that P(X≤c)=0.81P(X\le c)=0.81
Section intitulée « Find ccc such that P(X≤c)=0.81P(X\le c)=0.81P(X≤c)=0.81 »

We need

P(Z≤c−31.25)=0.81.P\left( Z\le \frac{c-3}{\sqrt{1.25}} \right)=0.81.

From the table,

P(Z≤0.87)≈0.81.P(Z\le0.87)\approx0.81.

Therefore

c−31.25=0.87,\frac{c-3}{\sqrt{1.25}}=0.87,

so

c=3+0.871.25≈3.97.c = 3+0.87\sqrt{1.25} \approx \boxed{3.97}.
Find dd such that P(X≥d)=0.326P(X\ge d)=0.326
Section intitulée « Find ddd such that P(X≥d)=0.326P(X\ge d)=0.326P(X≥d)=0.326 »

Convert to a left-tail probability:

P(X≤d)=1−0.326=0.674.P(X\le d)=1-0.326=0.674.

Hence

P(Z≤d−31.25)=0.674.P\left( Z\le \frac{d-3}{\sqrt{1.25}} \right)=0.674.

From the table,

P(Z≤0.45)≈0.674.P(Z\le0.45)\approx0.674.

Thus

d−31.25=0.45,\frac{d-3}{\sqrt{1.25}}=0.45,

and

d=3+0.451.25≈3.50.d = 3+0.45\sqrt{1.25} \approx \boxed{3.50}.

Finally,

a≈2.50,b≈1.00,c≈3.97,d≈3.50.\boxed{ a\approx2.50, \qquad b\approx1.00, \qquad c\approx3.97, \qquad d\approx3.50. }

These values are coherent with the first four questions: question 6 simply reverses the probability calculations performed there.

↑ Retour à l’exercice 12


The joint density is

f(x1,x2,x3)=2x2(x1+x3),0<x1,x2,x3<1.f(x_1,x_2,x_3)=2x_2(x_1+x_3), \qquad 0<x_1,x_2,x_3<1.

To keep only X1X_1 and X3X_3, integrate out X2X_2:

fX1,X3(x1,x3)=∫012x2(x1+x3) dx2=(x1+x3)∫012x2 dx2=x1+x3.\begin{aligned} f_{X_1,X_3}(x_1,x_3) &= \int_0^1 2x_2(x_1+x_3)\,dx_2\\ &= (x_1+x_3) \int_0^1 2x_2\,dx_2\\ &= x_1+x_3. \end{aligned}

Hence

fX1,X3(x1,x3)=x1+x3,0<x1,x3<1.\boxed{ f_{X_1,X_3}(x_1,x_3) = x_1+x_3, \qquad 0<x_1,x_3<1. }

The general reflex is: to obtain a marginal density, integrate the joint density over the variables that are no longer of interest.

First obtain the marginal density of X1X_1 by integrating out X3X_3:

fX1(x1)=∫01fX1,X3(x1,x3) dx3=∫01(x1+x3) dx3=x1+12,0<x1<1.\begin{aligned} f_{X_1}(x_1) &= \int_0^1 f_{X_1,X_3}(x_1,x_3)\,dx_3\\ &= \int_0^1(x_1+x_3)\,dx_3\\ &= x_1+\frac12, \qquad 0<x_1<1. \end{aligned}

Then

E(X1)=∫01x1fX1(x1) dx1=∫01x1(x1+12)dx1=13+14=712.\begin{aligned} E(X_1) &= \int_0^1 x_1 f_{X_1}(x_1)\,dx_1\\ &= \int_0^1 x_1\left(x_1+\frac12\right)dx_1\\ &= \frac13+\frac14 = \boxed{\frac7{12}}. \end{aligned}

For the variance, first compute the second moment:

E(X12)=∫01x12(x1+12)dx1=14+16=512.\begin{aligned} E(X_1^2) &= \int_0^1 x_1^2\left(x_1+\frac12\right)dx_1\\ &= \frac14+\frac16 = \frac5{12}. \end{aligned}

Therefore

Var⁡(X1)=E(X12)−E(X1)2=512−(712)2=11144.\begin{aligned} \operatorname{Var}(X_1) &= E(X_1^2)-E(X_1)^2\\ &= \frac5{12} - \left(\frac7{12}\right)^2\\ &= \boxed{\frac{11}{144}}. \end{aligned}

3. Covariance and independence of X1X_1 and X2X_2

Section intitulée « 3. Covariance and independence of X1X_1X1​ and X2X_2X2​ »

First obtain their joint density by integrating out X3X_3:

fX1,X2(x1,x2)=∫012x2(x1+x3) dx3=2x2(x1+12)=x2(2x1+1).\begin{aligned} f_{X_1,X_2}(x_1,x_2) &= \int_0^1 2x_2(x_1+x_3)\,dx_3\\ &= 2x_2\left(x_1+\frac12\right)\\ &= x_2(2x_1+1). \end{aligned}

We already know

fX1(x1)=x1+12.f_{X_1}(x_1)=x_1+\frac12.

The marginal density of X2X_2 is

fX2(x2)=∫01x2(2x1+1) dx1=2x2,0<x2<1.\begin{aligned} f_{X_2}(x_2) &= \int_0^1 x_2(2x_1+1)\,dx_1\\ &= 2x_2, \qquad 0<x_2<1. \end{aligned}

Now compute the moments needed for the covariance:

E(X2)=∫01x2(2x2) dx2=23,E(X_2) = \int_0^1 x_2(2x_2)\,dx_2 = \frac23,

and

E(X1X2)=∫01∫01x1x2 fX1,X2(x1,x2) dx1dx2=∫01∫01x1x22(2x1+1) dx1dx2=718.\begin{aligned} E(X_1X_2) &= \int_0^1\int_0^1 x_1x_2\,f_{X_1,X_2}(x_1,x_2) \,dx_1dx_2\\ &= \int_0^1\int_0^1 x_1x_2^2(2x_1+1) \,dx_1dx_2\\ &= \frac7{18}. \end{aligned}

Hence

Cov⁡(X1,X2)=E(X1X2)−E(X1)E(X2)=718−71223=0.\begin{aligned} \operatorname{Cov}(X_1,X_2) &= E(X_1X_2)-E(X_1)E(X_2)\\ &= \frac7{18} - \frac7{12}\frac23\\ &= \boxed{0}. \end{aligned}

A zero covariance alone would not prove independence in general. We must check the densities:

fX1(x1)fX2(x2)=(x1+12)(2x2)=x2(2x1+1)=fX1,X2(x1,x2).\begin{aligned} f_{X_1}(x_1)f_{X_2}(x_2) &= \left(x_1+\frac12\right)(2x_2)\\ &= x_2(2x_1+1)\\ &= f_{X_1,X_2}(x_1,x_2). \end{aligned}

Therefore

X1⊥X2.\boxed{X_1\perp X_2}.

So here the covariance is zero and the variables are independent.

The conditional density is

fX1,X2∣X3(x1,x2∣x3)=fX1,X2,X3(x1,x2,x3)fX3(x3).f_{X_1,X_2\mid X_3}(x_1,x_2\mid x_3) = \frac{ f_{X_1,X_2,X_3}(x_1,x_2,x_3) }{ f_{X_3}(x_3) }.

First find the marginal density of X3X_3:

fX3(x3)=∫01∫012x2(x1+x3) dx1dx2=x3+12.\begin{aligned} f_{X_3}(x_3) &= \int_0^1\int_0^1 2x_2(x_1+x_3)\,dx_1dx_2\\ &= x_3+\frac12. \end{aligned}

Hence, for 0<x1,x2,x3<10<x_1,x_2,x_3<1,

fX1,X2∣X3(x1,x2∣x3)=2x2(x1+x3)x3+12=4x2(x1+x3)1+2x3.\begin{aligned} f_{X_1,X_2\mid X_3}(x_1,x_2\mid x_3) &= \frac{2x_2(x_1+x_3)} {x_3+\frac12}\\ &= \boxed{ \frac{4x_2(x_1+x_3)} {1+2x_3} }. \end{aligned}

Now calculate each component of the conditional expectation vector separately.

For X1X_1,

E(X1∣X3=x3)=∫01∫01x14x2(x1+x3)1+2x3 dx1dx2=2+3x33(1+2x3).\begin{aligned} E(X_1\mid X_3=x_3) &= \int_0^1\int_0^1 x_1 \frac{4x_2(x_1+x_3)} {1+2x_3} \,dx_1dx_2\\ &= \boxed{ \frac{2+3x_3} {3(1+2x_3)} }. \end{aligned}

For X2X_2,

E(X2∣X3=x3)=∫01∫01x24x2(x1+x3)1+2x3 dx1dx2=23.\begin{aligned} E(X_2\mid X_3=x_3) &= \int_0^1\int_0^1 x_2 \frac{4x_2(x_1+x_3)} {1+2x_3} \,dx_1dx_2\\ &= \boxed{\frac23}. \end{aligned}

Therefore

E ⁣((X1X2)|X3=x3)=(2+3x33(1+2x3)23).\boxed{ E\!\left( \begin{pmatrix} X_1\\ X_2 \end{pmatrix} \middle|X_3=x_3 \right) = \begin{pmatrix} \dfrac{2+3x_3}{3(1+2x_3)}\\[8pt] \dfrac23 \end{pmatrix}. }

↑ Retour à l’exercice 13


We have

X=(X1X2)∼N2 ⁣((23),(4223)).X= \begin{pmatrix} X_1\\ X_2 \end{pmatrix} \sim N_2\!\left( \begin{pmatrix} 2\\ 3 \end{pmatrix}, \begin{pmatrix} 4&2\\ 2&3 \end{pmatrix} \right).

Thus

E(X1)=2,E(X2)=3,E(X_1)=2, \qquad E(X_2)=3,

and

Var⁡(X1)=4,Var⁡(X2)=3,Cov⁡(X1,X2)=2.\operatorname{Var}(X_1)=4, \qquad \operatorname{Var}(X_2)=3, \qquad \operatorname{Cov}(X_1,X_2)=2.

1. Distribution of Y=3X1+X2−3Y=3X_1+X_2-3

Section intitulée « 1. Distribution of Y=3X1+X2−3Y=3X_1+X_2-3Y=3X1​+X2​−3 »

A linear combination of a multivariate Normal vector is again Normal.

Write

Y=a⊤X−3,a=(31).Y=a^\top X-3, \qquad a= \begin{pmatrix} 3\\ 1 \end{pmatrix}.

Its expectation is

E(Y)=3E(X1)+E(X2)−3=3(2)+3−3=6.\begin{aligned} E(Y) &= 3E(X_1)+E(X_2)-3\\ &= 3(2)+3-3\\ &= \boxed{6}. \end{aligned}

Its variance is

Var⁡(Y)=32Var⁡(X1)+Var⁡(X2)+2(3)(1)Cov⁡(X1,X2)=9(4)+3+6(2)=51.\begin{aligned} \operatorname{Var}(Y) &= 3^2\operatorname{Var}(X_1) + \operatorname{Var}(X_2) + 2(3)(1)\operatorname{Cov}(X_1,X_2)\\ &= 9(4)+3+6(2)\\ &= \boxed{51}. \end{aligned}

Equivalently, in matrix form,

Var⁡(Y)=a⊤Σa=(31)(4223)(31)=51.\operatorname{Var}(Y) = a^\top\Sigma a = \begin{pmatrix} 3&1 \end{pmatrix} \begin{pmatrix} 4&2\\ 2&3 \end{pmatrix} \begin{pmatrix} 3\\ 1 \end{pmatrix} = 51.

Therefore

Y∼N(6,51).\boxed{ Y\sim N(6,51). }

2. Conditional distribution of X2X_2 given X1=x1X_1=x_1

Section intitulée « 2. Conditional distribution of X2X_2X2​ given X1=x1X_1=x_1X1​=x1​ »

For a bivariate Normal vector, the conditional distribution is again Normal.

Here we condition on X1X_1, so identify

μ1=2,μ2=3,σ11=4,σ22=3,σ12=σ21=2.\mu_1=2, \qquad \mu_2=3, \qquad \sigma_{11}=4, \qquad \sigma_{22}=3, \qquad \sigma_{12}=\sigma_{21}=2.

The conditional mean is

E(X2∣X1=x1)=μ2+σ21σ11(x1−μ1)=3+24(x1−2)=3+12(x1−2).\begin{aligned} E(X_2\mid X_1=x_1) &= \mu_2 + \frac{\sigma_{21}}{\sigma_{11}} (x_1-\mu_1)\\ &= 3+\frac24(x_1-2)\\ &= \boxed{ 3+\frac12(x_1-2) }. \end{aligned}

The conditional variance is

Var⁡(X2∣X1=x1)=σ22−σ21σ12σ11=3−2⋅24=2.\begin{aligned} \operatorname{Var}(X_2\mid X_1=x_1) &= \sigma_{22} - \frac{\sigma_{21}\sigma_{12}} {\sigma_{11}}\\ &= 3-\frac{2\cdot2}{4}\\ &= \boxed{2}. \end{aligned}

Hence

X2∣X1=x1∼N ⁣(3+12(x1−2),  2).\boxed{ X_2\mid X_1=x_1 \sim N\!\left( 3+\frac12(x_1-2), \;2 \right). }

A useful way to reconstruct the formula is:

conditional mean=old mean+link with the known variable×observed deviation,\text{conditional mean} = \text{old mean} + \text{link with the known variable} \times \text{observed deviation},

while

conditional variance=old variance−uncertainty explained by the known variable.\text{conditional variance} = \text{old variance} - \text{uncertainty explained by the known variable}.

↑ Retour à l’exercice 16


The unknown quantity is the model parameter θ\theta. The observed information is the sample X1,…,XnX_1,\ldots,X_n.

Because the density has two pieces,

E(X)=∫0θx13θ dx+∫θ21x23(21−θ) dx.E(X) = \int_0^\theta x\frac{1}{3\theta}\,dx + \int_\theta^{21}x\frac{2}{3(21-\theta)}\,dx.

The first term is

13θ[x22]0θ=θ6.\frac{1}{3\theta} \left[\frac{x^2}{2}\right]_0^\theta = \frac{\theta}{6}.

For the second term,

23(21−θ)[x22]θ21=441−θ23(21−θ)=21+θ3.\frac{2}{3(21-\theta)} \left[\frac{x^2}{2}\right]_\theta^{21} = \frac{441-\theta^2}{3(21-\theta)} = \frac{21+\theta}{3}.

Hence

E(X)=7+θ2.\boxed{ E(X)=7+\frac{\theta}{2} }.

With one unknown parameter, the first-moment equation is

E(X)=Xˉ.E(X)=\bar X.

Therefore

7+θ^MM2=Xˉ,7+\frac{\hat\theta_{\mathrm{MM}}}{2} = \bar X,

so

θ^MM=2(Xˉ−7).\boxed{ \hat\theta_{\mathrm{MM}} = 2(\bar X-7) }.

By definition,

B(θ^MM)=E(θ^MM)−θ.B(\hat\theta_{\mathrm{MM}}) = E(\hat\theta_{\mathrm{MM}})-\theta.

Using E(Xˉ)=E(X)E(\bar X)=E(X),

E(θ^MM)=2(E(Xˉ)−7)=2(7+θ2−7)=θ.\begin{aligned} E(\hat\theta_{\mathrm{MM}}) &= 2(E(\bar X)-7)\\ &= 2\left(7+\frac{\theta}{2}-7\right)\\ &= \theta. \end{aligned}

Thus

B(θ^MM)=0.\boxed{ B(\hat\theta_{\mathrm{MM}})=0 }.

The method-of-moments estimator is unbiased.

c) Likelihood and why there is no simple closed form

Section intitulée « c) Likelihood and why there is no simple closed form »

Let

n1(θ)=#{i:xi∈[0,θ]},n_1(\theta) = \#\{i:x_i\in[0,\theta]\},

and

n2(θ)=#{i:xi∈(θ,21]}.n_2(\theta) = \#\{i:x_i\in(\theta,21]\}.

Then

n1(θ)+n2(θ)=n.n_1(\theta)+n_2(\theta)=n.

The likelihood is

L(θ)=(13θ)n1(θ)(23(21−θ))n2(θ).\boxed{ L(\theta) = \left(\frac{1}{3\theta}\right)^{n_1(\theta)} \left(\frac{2}{3(21-\theta)}\right)^{n_2(\theta)} }.

Hence

ℓ(θ)=−n1(θ)ln⁡(3θ)−n2(θ)ln⁡ ⁣(32(21−θ)).\boxed{ \ell(\theta) = -n_1(\theta)\ln(3\theta) - n_2(\theta) \ln\!\left(\frac32(21-\theta)\right) }.

The important point is that n1(θ)n_1(\theta) and n2(θ)n_2(\theta) change whenever θ\theta crosses one of the observations xix_i. Therefore the log-likelihood is not one smooth expression over the whole parameter domain.

So the usual shortcut

ℓ′(θ)=0\ell'(\theta)=0

does not produce a single analytical closed-form estimator. The maximum can nevertheless be found numerically.

Réflexe de l'exercice 2

A maximum-likelihood problem is not automatically “differentiate and set equal to zero”. First check whether the support or the branch of the density depends on the unknown parameter.

↑ Retour à l’exercice 2


The first moment is

E(X)=∫01x(α+1)xα dx=(α+1)∫01xα+1 dx=α+1α+2.E(X) = \int_0^1 x(\alpha+1)x^\alpha\,dx = (\alpha+1)\int_0^1x^{\alpha+1}\,dx = \boxed{ \frac{\alpha+1}{\alpha+2} }.

The second moment is

E(X2)=(α+1)∫01xα+2 dx=α+1α+3.E(X^2) = (\alpha+1)\int_0^1x^{\alpha+2}\,dx = \boxed{ \frac{\alpha+1}{\alpha+3} }.

Thus

V(X)=α+1α+3−(α+1α+2)2.\boxed{ V(X) = \frac{\alpha+1}{\alpha+3} - \left(\frac{\alpha+1}{\alpha+2}\right)^2 }.

For the method of moments,

α^MM+1α^MM+2=Xˉ.\frac{\hat\alpha_{\mathrm{MM}}+1} {\hat\alpha_{\mathrm{MM}}+2} = \bar X.

Solving for α^MM\hat\alpha_{\mathrm{MM}},

α^MM(1−Xˉ)=2Xˉ−1,\hat\alpha_{\mathrm{MM}}(1-\bar X) = 2\bar X-1,

so

α^MM=2Xˉ−11−Xˉ.\boxed{ \hat\alpha_{\mathrm{MM}} = \frac{2\bar X-1}{1-\bar X} }.

For an iid sample,

L(α)=∏i=1n(α+1)xiα=(α+1)n∏i=1nxiα.L(\alpha) = \prod_{i=1}^n(\alpha+1)x_i^\alpha = (\alpha+1)^n\prod_{i=1}^n x_i^\alpha.

Therefore

ℓ(α)=nln⁡(α+1)+α∑i=1nln⁡xi.\boxed{ \ell(\alpha) = n\ln(\alpha+1) + \alpha\sum_{i=1}^n\ln x_i }.

Differentiate:

ℓ′(α)=nα+1+∑i=1nln⁡xi.\ell'(\alpha) = \frac{n}{\alpha+1} + \sum_{i=1}^n\ln x_i.

Set the derivative equal to zero:

nα^+1=−∑i=1nln⁡xi.\frac{n}{\hat\alpha+1} = -\sum_{i=1}^n\ln x_i.

Hence

α^MLE=−1−n∑i=1nln⁡Xi.\boxed{ \hat\alpha_{\mathrm{MLE}} = -1- \frac{n}{\sum_{i=1}^n\ln X_i} }.

Moreover,

ℓ′′(α)=−n(α+1)2<0,\ell''(\alpha) = -\frac{n}{(\alpha+1)^2}<0,

so the stationary point is indeed a maximum.

We want

B(α^MLE)=E(α^MLE)−α.B(\hat\alpha_{\mathrm{MLE}}) = E(\hat\alpha_{\mathrm{MLE}})-\alpha.

The logarithms in the estimator suggest the transformation

Y=−ln⁡X.Y=-\ln X.

For y≥0y\ge0,

FY(y)=P(Y≤y)=P(−ln⁡X≤y)=P(X≥e−y)=∫e−y1(α+1)xα dx=1−e−(α+1)y.\begin{aligned} F_Y(y) &= P(Y\le y)\\ &= P(-\ln X\le y)\\ &= P(X\ge e^{-y})\\ &= \int_{e^{-y}}^1(\alpha+1)x^\alpha\,dx\\ &= 1-e^{-(\alpha+1)y}. \end{aligned}

Therefore

fY(y)=(α+1)e−(α+1)y,y≥0.f_Y(y) = (\alpha+1)e^{-(\alpha+1)y}, \qquad y\ge0.

Using the scale parametrization of the course,

Y∼Expo(β=1α+1).\boxed{ Y\sim Expo\left(\beta=\frac{1}{\alpha+1}\right) }.

Now define

U=∑i=1nYi=−∑i=1nln⁡Xi.U = \sum_{i=1}^nY_i = -\sum_{i=1}^n\ln X_i.

A sum of nn iid exponentials with scale β\beta is Gamma distributed:

U∼Gamma(n,1α+1).\boxed{ U \sim Gamma\left(n,\frac{1}{\alpha+1}\right) }.

The MLE becomes

α^MLE=−1+nU.\hat\alpha_{\mathrm{MLE}} = -1+\frac{n}{U}.

For U∼Gamma(n,β)U\sim Gamma(n,\beta), n>1n>1,

E(1U)=1(n−1)β.E\left(\frac1U\right) = \frac{1}{(n-1)\beta}.

Since

β=1α+1,\beta=\frac1{\alpha+1},

we get

E(1U)=α+1n−1.E\left(\frac1U\right) = \frac{\alpha+1}{n-1}.

Hence

E(α^MLE)=−1+nα+1n−1=nα+1n−1.\begin{aligned} E(\hat\alpha_{\mathrm{MLE}}) &= -1+ n\frac{\alpha+1}{n-1}\\ &= \frac{n\alpha+1}{n-1}. \end{aligned}

Finally,

B(α^MLE)=α+1n−1.\boxed{ B(\hat\alpha_{\mathrm{MLE}}) = \frac{\alpha+1}{n-1} }.

The estimator is biased for finite nn, but

B(α^MLE)⟶0when n→∞.B(\hat\alpha_{\mathrm{MLE}}) \longrightarrow0 \qquad\text{when }n\to\infty.

So it is asymptotically unbiased.

Réflexe de l'exercice 3

The method of moments uses a theoretical moment such as E(X)E(X). MLE uses the full density through the likelihood. The transformation Y=−ln⁡XY=-\ln X is introduced only because it turns the awkward sum of logarithms in the MLE into a Gamma-distributed sum whose expectation can be handled.

↑ Retour à l’exercice 3


For one observation,

f(xi;μ,σ)=1σ2πexp⁡ ⁣(−(xi−μ)22σ2).f(x_i;\mu,\sigma) = \frac{1}{\sigma\sqrt{2\pi}} \exp\!\left( -\frac{(x_i-\mu)^2}{2\sigma^2} \right).

By independence,

L(μ,σ2)=(1σ2π)nexp⁡ ⁣[−12σ2∑i=1n(xi−μ)2].L(\mu,\sigma^2) = \left(\frac{1}{\sigma\sqrt{2\pi}}\right)^n \exp\!\left[ -\frac{1}{2\sigma^2} \sum_{i=1}^n(x_i-\mu)^2 \right].

Thus

ℓ(μ,σ2)=−n2ln⁡(2πσ2)−12σ2∑i=1n(xi−μ)2.\boxed{ \ell(\mu,\sigma^2) = -\frac n2\ln(2\pi\sigma^2) - \frac{1}{2\sigma^2} \sum_{i=1}^n(x_i-\mu)^2 }.

Differentiate with respect to μ\mu:

∂ℓ∂μ=1σ2∑i=1n(xi−μ).\frac{\partial\ell}{\partial\mu} = \frac{1}{\sigma^2} \sum_{i=1}^n(x_i-\mu).

Setting this equal to zero gives

μ^MLE=Xˉ.\boxed{ \hat\mu_{\mathrm{MLE}} = \bar X }.

Since

E(Xˉ)=μ,E(\bar X)=\mu,

we have

B(μ^)=0.\boxed{ B(\hat\mu)=0 }.

Now differentiate with respect to σ2\sigma^2:

∂ℓ∂σ2=−n2σ2+12σ4∑i=1n(xi−μ)2.\frac{\partial\ell}{\partial\sigma^2} = -\frac{n}{2\sigma^2} + \frac{1}{2\sigma^4} \sum_{i=1}^n(x_i-\mu)^2.

After substituting μ^=Xˉ\hat\mu=\bar X, the solution is

σ^MLE2=1n∑i=1n(Xi−Xˉ)2.\boxed{ \hat\sigma^2_{\mathrm{MLE}} = \frac1n \sum_{i=1}^n(X_i-\bar X)^2 }.

Compare this with the unbiased sample variance

S2=1n−1∑i=1n(Xi−Xˉ)2.S^2 = \frac1{n-1} \sum_{i=1}^n(X_i-\bar X)^2.

Therefore

σ^MLE2=n−1nS2.\hat\sigma^2_{\mathrm{MLE}} = \frac{n-1}{n}S^2.

Because E(S2)=σ2E(S^2)=\sigma^2,

E(σ^MLE2)=n−1nσ2.E(\hat\sigma^2_{\mathrm{MLE}}) = \frac{n-1}{n}\sigma^2.

Hence

B(σ^MLE2)=−σ2n.\boxed{ B(\hat\sigma^2_{\mathrm{MLE}}) = -\frac{\sigma^2}{n} }.

This explains why the usual unbiased sample variance uses 1/(n−1)1/(n-1) rather than the MLE factor 1/n1/n.

c) Distribution, variance and MSE of μ^\hat\mu

Section intitulée « c) Distribution, variance and MSE of μ^\hat\muμ^​ »

This part concerns the estimator of the mean, not the estimator of the variance.

Since

X1,…,Xn∼iidN(μ,σ2),X_1,\ldots,X_n \overset{iid}{\sim} N(\mu,\sigma^2),

their average is exactly Normal:

μ^=Xˉ∼N(μ,σ2n).\boxed{ \hat\mu=\bar X \sim N\left(\mu,\frac{\sigma^2}{n}\right) }.

Therefore

V(μ^)=σ2n.\boxed{ V(\hat\mu) = \frac{\sigma^2}{n} }.

From part (b),

B(μ^)=0.B(\hat\mu)=0.

Using

MSE⁡(μ^)=V(μ^)+B(μ^)2,\operatorname{MSE}(\hat\mu) = V(\hat\mu)+B(\hat\mu)^2,

we obtain

MSE⁡(μ^)=σ2n.\boxed{ \operatorname{MSE}(\hat\mu) = \frac{\sigma^2}{n} }.

The 1/n1/n factor quantifies the gain from increasing the sample size: the sampling variability of Xˉ\bar X decreases as nn grows.

Réflexe de l'exercice 4

For a Normal population with both parameters unknown,

μ^MLE=Xˉ\hat\mu_{\mathrm{MLE}}=\bar X

is unbiased, whereas

σ^MLE2=1n∑i(Xi−Xˉ)2\hat\sigma^2_{\mathrm{MLE}} = \frac1n\sum_i(X_i-\bar X)^2

is biased. Do not confuse this MLE with the unbiased sample variance S2S^2, which uses 1/(n−1)1/(n-1).

↑ Retour à l’exercice 4


The density is that of a Gamma random variable with shape 22 and scale θ\theta:

Xi∼Gamma(2,θ).X_i\sim Gamma(2,\theta).

For this parametrization,

E(Xi)=2θ,V(Xi)=2θ2.E(X_i)=2\theta, \qquad V(X_i)=2\theta^2.

With one unknown parameter, match the first theoretical moment with the sample mean:

E(X)=Xˉ.E(X)=\bar X.

Since

E(X)=2θ,E(X)=2\theta,

we obtain

2θ^MM=Xˉ,2\hat\theta_{\mathrm{MM}}=\bar X,

hence

θ^MM=Xˉ2.\boxed{ \hat\theta_{\mathrm{MM}} = \frac{\bar X}{2} }.

For an iid sample,

L(θ)=∏i=1n[1Γ(2)xiθ2e−xi/θ].L(\theta) = \prod_{i=1}^n \left[ \frac{1}{\Gamma(2)} \frac{x_i}{\theta^2} e^{-x_i/\theta} \right].

Equivalently,

L(θ)=(1Γ(2))n(∏i=1nxi)θ−2nexp⁡ ⁣(−1θ∑i=1nxi).L(\theta) = \left(\frac{1}{\Gamma(2)}\right)^n \left(\prod_{i=1}^n x_i\right) \theta^{-2n} \exp\!\left( -\frac{1}{\theta}\sum_{i=1}^n x_i \right).

Therefore,

ℓ(θ)=−nln⁡Γ(2)+∑i=1nln⁡xi−2nln⁡θ−1θ∑i=1nxi.\ell(\theta) = -n\ln\Gamma(2) + \sum_{i=1}^n\ln x_i - 2n\ln\theta - \frac{1}{\theta}\sum_{i=1}^n x_i.

Differentiate with respect to θ\theta:

ℓ′(θ)=−2nθ+1θ2∑i=1nxi.\ell'(\theta) = -\frac{2n}{\theta} + \frac{1}{\theta^2} \sum_{i=1}^n x_i.

Setting ℓ′(θ)=0\ell'(\theta)=0 gives

−2nθ+∑i=1nxi=0,-2n\theta+\sum_{i=1}^n x_i=0,

so

θ^MLE=12n∑i=1nXi=Xˉ2.\boxed{ \hat\theta_{\mathrm{MLE}} = \frac{1}{2n}\sum_{i=1}^n X_i = \frac{\bar X}{2} }.

Thus,

θ^MM=θ^MLE.\boxed{ \hat\theta_{\mathrm{MM}} = \hat\theta_{\mathrm{MLE}} }.

Because the XiX_i are independent and

Xi∼Gamma(2,θ),X_i\sim Gamma(2,\theta),

their sum satisfies

∑i=1nXi∼Gamma(2n,θ).\boxed{ \sum_{i=1}^nX_i \sim Gamma(2n,\theta) }.

Since

θ^=12n∑i=1nXi,\hat\theta = \frac{1}{2n}\sum_{i=1}^nX_i,

the estimator has distribution

θ^∼Gamma(2n,θ2n).\boxed{ \hat\theta \sim Gamma\left(2n,\frac{\theta}{2n}\right) }.

Also,

E(∑i=1nXi)=2nθ,V(∑i=1nXi)=2nθ2.E\left(\sum_{i=1}^nX_i\right) = 2n\theta, \qquad V\left(\sum_{i=1}^nX_i\right) = 2n\theta^2.

Therefore,

E(θ^)=12n(2nθ)=θ,E(\hat\theta) = \frac{1}{2n}(2n\theta) = \boxed{\theta},

so θ^\hat\theta is unbiased, and

V(θ^)=1(2n)2(2nθ2)=θ22n.V(\hat\theta) = \frac{1}{(2n)^2}(2n\theta^2) = \boxed{ \frac{\theta^2}{2n} }.

Finally,

MSE⁡(θ^)=V(θ^)+Bias(θ^)2.\operatorname{MSE}(\hat\theta) = V(\hat\theta)+Bias(\hat\theta)^2.

Since the bias is zero,

MSE⁡(θ^)=θ22n.\boxed{ \operatorname{MSE}(\hat\theta) = \frac{\theta^2}{2n} }.

d) Normal approximation and the central 95% interval

Section intitulée « d) Normal approximation and the central 95% interval »

For sufficiently large nn,

θ^≈N(θ,θ22n).\hat\theta \approx N\left( \theta, \frac{\theta^2}{2n} \right).

Hence

Z=θ^−θθ/2n≈N(0,1).Z = \frac{\hat\theta-\theta} {\theta/\sqrt{2n}} \approx N(0,1).

The central 95%95\% of a standard Normal distribution satisfies

P(−1.96≤Z≤1.96)≈0.95.P(-1.96\le Z\le1.96) \approx 0.95.

Thus,

P(−1.96≤θ^−θθ/2n≤1.96)≈0.95,P\left( -1.96 \le \frac{\hat\theta-\theta}{\theta/\sqrt{2n}} \le 1.96 \right) \approx 0.95,

which gives

P(θ−1.96θ2n≤θ^≤θ+1.96θ2n)≈0.95.\boxed{ P\left( \theta- 1.96\frac{\theta}{\sqrt{2n}} \le \hat\theta \le \theta+ 1.96\frac{\theta}{\sqrt{2n}} \right) \approx 0.95 }.

Therefore the interval is

[θ−1.96θ2n,  θ+1.96θ2n].\boxed{ \left[ \theta- 1.96\frac{\theta}{\sqrt{2n}}, \; \theta+ 1.96\frac{\theta}{\sqrt{2n}} \right] }.

This interval cannot be computed numerically in practice, because it still contains the unknown parameter θ\theta.

Réflexe de l'exercice 6

Xi∼Gamma(2,θ)⇒θ^=Xˉ2X_i\sim Gamma(2,\theta) \Rightarrow \hat\theta=\frac{\bar X}{2}

Here MM and MLE give the same estimator. Then study θ^\hat\theta through the distribution of ∑iXi\sum_i X_i. For part (d), 95%95\% corresponds to the central Normal interval [−1.96,1.96][-1.96,1.96].

↑ Retour à l’exercice 6


For

X∼U(0,θ),X\sim U(0,\theta),

the density is

f(x;θ)={1θ,0≤x≤θ,0,otherwise.f(x;\theta) = \begin{cases} \dfrac1\theta, & 0\le x\le\theta,\\ 0, & \text{otherwise}. \end{cases}

For an observed sample,

L(θ)={1θn,θ≥max⁡(x1,…,xn),0,θ<max⁡(x1,…,xn).L(\theta) = \begin{cases} \dfrac1{\theta^n}, & \theta\ge \max(x_1,\ldots,x_n),\\[6pt] 0, & \theta<\max(x_1,\ldots,x_n). \end{cases}

The likelihood is zero if θ\theta is smaller than an observed value. On the admissible region, 1/θn1/\theta^n decreases as θ\theta increases. Therefore the maximum occurs at the smallest admissible value:

θ^MLE=max⁡(X1,…,Xn).\boxed{ \hat\theta_{\mathrm{MLE}} = \max(X_1,\ldots,X_n) }.

This is an example where the MLE occurs at a boundary, not at a point satisfying ℓ′(θ)=0\ell'(\theta)=0.

For the method of moments,

E(X)=θ2.E(X)=\frac{\theta}{2}.

Matching E(X)E(X) with Xˉ\bar X gives

θ~MM=2Xˉ.\boxed{ \tilde\theta_{\mathrm{MM}} = 2\bar X }.

Let

Y=max⁡(X1,…,Xn).Y=\max(X_1,\ldots,X_n).

For 0≤y≤θ0\le y\le\theta,

P(Y≤y)=P(X1≤y,…,Xn≤y)=∏i=1nP(Xi≤y)=(yθ)n.\begin{aligned} P(Y\le y) &= P(X_1\le y,\ldots,X_n\le y)\\ &= \prod_{i=1}^nP(X_i\le y)\\ &= \left(\frac y\theta\right)^n. \end{aligned}

Thus

fY(y)=nyn−1θn,0≤y≤θ.f_Y(y) = \frac{n y^{n-1}}{\theta^n}, \qquad 0\le y\le\theta.

This yields

E(θ^)=nn+1θ\boxed{ E(\hat\theta) = \frac{n}{n+1}\theta }

and

V(θ^)=n(n+2)(n+1)2θ2.\boxed{ V(\hat\theta) = \frac{n}{(n+2)(n+1)^2}\theta^2 }.

Therefore

B(θ^)=−θn+1.\boxed{ B(\hat\theta) = -\frac{\theta}{n+1} }.

For the method-of-moments estimator,

θ~=2Xˉ.\tilde\theta=2\bar X.

Since a Uniform U(0,θ)U(0,\theta) variable satisfies

E(X)=θ2,V(X)=θ212,E(X)=\frac{\theta}{2}, \qquad V(X)=\frac{\theta^2}{12},

we obtain

E(θ~)=θ\boxed{ E(\tilde\theta)=\theta }

and

V(θ~)=4V(Xˉ)=θ23n.\boxed{ V(\tilde\theta) = 4V(\bar X) = \frac{\theta^2}{3n} }.

Thus θ~\tilde\theta is unbiased.

Bias alone is not enough. Compare

MSE⁡(θ^)=V(θ^)+B(θ^)2\operatorname{MSE}(\hat\theta) = V(\hat\theta)+B(\hat\theta)^2

with

MSE⁡(θ~)=V(θ~),\operatorname{MSE}(\tilde\theta) = V(\tilde\theta),

because θ~\tilde\theta is unbiased.

For the method-of-moments estimator,

MSE⁡(θ~)=θ23n.\boxed{ \operatorname{MSE}(\tilde\theta) = \frac{\theta^2}{3n} }.

For the MLE,

MSE⁡(θ^)=2θ2(n+1)(n+2).\boxed{ \operatorname{MSE}(\hat\theta) = \frac{2\theta^2}{(n+1)(n+2)} }.

The official correction therefore prefers the maximum-likelihood estimator: despite its bias, its variance is small enough to give the better MSE comparison. More precisely, the two MSEs are equal for n=1n=1 and n=2n=2, and the MLE has the smaller MSE for integer n≥3n\ge3.

Réflexe de l'exercice 9

An unbiased estimator is not automatically the best estimator.

compare bias + variance through the MSE\boxed{ \text{compare bias + variance through the MSE} }

This exercise also shows that an MLE may lie on the boundary of the admissible parameter set.

↑ Retour à l’exercice 9


The observations are iid and follow an Exponential distribution parameterized by its scale λ\lambda, so

E(Xi)=λ,V(Xi)=λ2.E(X_i)=\lambda,\qquad V(X_i)=\lambda^2.

For an observed sample (x1,…,xn)(x_1,\ldots,x_n), the likelihood is the product of densities:

L(λ)=∏i=1n1λe−xi/λ=λ−nexp⁡(−1λ∑i=1nxi).\begin{aligned} L(\lambda) &=\prod_{i=1}^{n}\frac1\lambda e^{-x_i/\lambda}\\ &=\lambda^{-n}\exp\left(-\frac1\lambda\sum_{i=1}^n x_i\right). \end{aligned}

Taking the logarithm and differentiating with respect to λ\lambda:

ℓ(λ)=−nln⁡λ−1λ∑i=1nxi,\ell(\lambda)=-n\ln\lambda-\frac1\lambda\sum_{i=1}^n x_i, ℓ′(λ)=−nλ+∑ixiλ2.\ell'(\lambda)=-\frac n\lambda+\frac{\sum_i x_i}{\lambda^2}.

Solve ℓ′(λ)=0\ell'(\lambda)=0:

−nλ+∑i=1nxi=0.-n\lambda+\sum_{i=1}^n x_i=0.

This stationary point is a maximum, so the estimator (before observation) and observed estimate are respectively

λ^MLE=Xˉ=1n∑i=1nXi,λ^obs=xˉ.\boxed{\hat\lambda_{\mathrm{MLE}}=\bar X=\frac1n\sum_{i=1}^nX_i}, \qquad \hat\lambda_{\mathrm{obs}}=\bar x.

The bias evaluates whether the estimator is systematically shifted away from the unknown parameter:

Bias⁡(λ^)=E(λ^)−λ=1n∑i=1nE(Xi)−λ=λ−λ=0.\begin{aligned} \operatorname{Bias}(\hat\lambda) &=E(\hat\lambda)-\lambda\\ &=\frac1n\sum_{i=1}^nE(X_i)-\lambda\\ &=\lambda-\lambda=0. \end{aligned}

Thus λ^\hat\lambda is unbiased. Since the observations are independent,

V(λ^)=V(1n∑i=1nXi)=1n2∑i=1nV(Xi)=λ2n.\begin{aligned} V(\hat\lambda) &=V\left(\frac1n\sum_{i=1}^nX_i\right)\\ &=\frac1{n^2}\sum_{i=1}^nV(X_i)\\ &=\boxed{\frac{\lambda^2}{n}}. \end{aligned}

Finally,

MSE⁡(λ^)=V(λ^)+Bias⁡(λ^)2=λ2n.\operatorname{MSE}(\hat\lambda) =V(\hat\lambda)+\operatorname{Bias}(\hat\lambda)^2 =\boxed{\frac{\lambda^2}{n}}.

The estimator is centered on λ\lambda, and its variance (hence its MSE) decreases as the sample size increases.

c) Approximate 95% confidence interval for λ\lambda

Section intitulée « c) Approximate 95% confidence interval for λ\lambdaλ »

The central limit theorem gives, for sufficiently large nn,

λ^=Xˉ≈N(λ,λ2n).\hat\lambda=\bar X\approx N\left(\lambda,\frac{\lambda^2}{n}\right).

Standardize and keep the central 95%95\%:

P(−1.96≤λ^−λλ/n≤1.96)≈0.95.P\left( -1.96\le \frac{\hat\lambda-\lambda}{\lambda/\sqrt n} \le1.96 \right)\approx0.95.

Because λ>0\lambda>0 and n=100n=100, the denominators below remain positive. Isolating the unknown parameter λ\lambda gives the interval in the official solution:

CI95%(λ)=[xˉ1+1.96/n,xˉ1−1.96/n].\boxed{ CI_{95\%}(\lambda)= \left[ \frac{\bar x}{1+1.96/\sqrt n}, \frac{\bar x}{1-1.96/\sqrt n} \right] }.

For n=100n=100,

CI95%(λ)=[xˉ1.196,xˉ0.804].\boxed{ CI_{95\%}(\lambda)= \left[ \frac{\bar x}{1.196}, \frac{\bar x}{0.804} \right] }.

About the hint in the statement. It asks to replace the unknown population variance V(X)V(X) with the observed sample variance

s2=1n−1∑i=1n(xi−xˉ)2.s^2=\frac1{n-1}\sum_{i=1}^n(x_i-\bar x)^2.

That alternative, using a plug-in standard error s/ns/\sqrt n, leads to the usual large-sample Wald interval

CI95%, plug ⁣− ⁣in(λ)≈[xˉ−1.96s10,xˉ+1.96s10].\boxed{ CI_{95\%,\,\mathrm{plug\!-\!in}}(\lambda) \approx \left[ \bar x-1.96\frac{s}{10}, \bar x+1.96\frac{s}{10} \right] }.

The official correction instead uses the theoretical variance λ2\lambda^2 and solves for λ\lambda, producing the asymmetric interval above. These are two different approximate constructions; the first displayed interval reproduces the official solution, while the plug-in formula follows the wording of the hint. No numerical endpoints can be computed because neither xˉ\bar x nor ss is provided.

Interpretation: over repeated iid samples of this size, the chosen confidence-interval procedure covers the fixed parameter λ\lambda approximately 95%95\% of the time.

↑ Retour à l’exercice 10


Model: X1,…,X100X_1,\ldots,X_{100} are assumed iid N(μ,σ2)N(\mu,\sigma^2). Both population parameters are unknown, while xˉ=174\bar x=174 cm and s2=11.72=136.89s^2=11.7^2=136.89 cm2^2 are observed.

We estimate the unknown population variance with S2S^2. Because the population is Normal, the standardized sample mean follows Student’s distribution exactly:

T=Xˉ−μS/n∼tn−1=t99.T=\frac{\bar X-\mu}{S/\sqrt n}\sim t_{n-1}=t_{99}.

For α=0.10\alpha=0.10, the two-sided critical quantile is t99,0.95≈1.6604t_{99,0.95}\approx1.6604. Therefore

CI90%(μ)=[xˉ−t99,0.95sn,xˉ+t99,0.95sn]=[174−1.660411.710,174+1.660411.710]=[172.06,  175.94] cm.\begin{aligned} CI_{90\%}(\mu) &=\left[\bar x-t_{99,0.95}\frac{s}{\sqrt n}, \bar x+t_{99,0.95}\frac{s}{\sqrt n}\right]\\ &=\left[174-1.6604\frac{11.7}{10}, 174+1.6604\frac{11.7}{10}\right]\\ &=\boxed{[172.06,\;175.94]\ \mathrm{cm}}. \end{aligned}

The official correction uses the approximation 1.6451.645 (Normal critical quantile); the exact Student quantile with 9999 degrees of freedom is approximately 1.66041.6604. Using a table row close to 9999 degrees of freedom also gives about 1.661.66.

Here the unknown parameter changes: we estimate the population variance σ2\sigma^2, not the mean. Under the Normal assumption,

Q=(n−1)S2σ2∼χn−12=χ992.Q=\frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}=\chi^2_{99}.

Using the 5%5\% and 95%95\% quantiles and isolating σ2\sigma^2 (note that the order reverses when taking reciprocals),

CI90%(σ2)=[(n−1)s2χ99,0.952,(n−1)s2χ99,0.052].\boxed{ CI_{90\%}(\sigma^2)= \left[ \frac{(n-1)s^2}{\chi^2_{99,0.95}}, \frac{(n-1)s^2}{\chi^2_{99,0.05}} \right] }.

With χ99,0.052≈77.0463\chi^2_{99,0.05}\approx77.0463 and χ99,0.952≈123.2252\chi^2_{99,0.95}\approx123.2252,

CI90%(σ2)=[99(136.89)123.2252,99(136.89)77.0463]=[109.98,  175.90] cm2.\begin{aligned} CI_{90\%}(\sigma^2) &=\left[ \frac{99(136.89)}{123.2252}, \frac{99(136.89)}{77.0463} \right]\\ &=\boxed{[109.98,\;175.90]\ \mathrm{cm}^2}. \end{aligned}

The official correction replaces the unavailable table row 9999 by row 100100 and obtains approximately [108.99,173.90][108.99,173.90] cm2^2. The interval above uses the actual 9999 degrees of freedom.

Interpretation: the interval procedures have respectively 90%90\% coverage for the fixed mean μ\mu and for the fixed variance σ2\sigma^2, under the model assumptions.

↑ Retour à l’exercice 2


We assume independent Normal samples with sizes nf=nm=100n_f=n_m=100 and one common unknown population variance

σm2=σf2=σ2.\sigma_m^2=\sigma_f^2=\sigma^2.

The observed means differ by

xˉm−xˉf=177−173=4 cm.\bar x_m-\bar x_f=177-173=4\ \mathrm{cm}.

First calculate the pooled sample variance:

spool2=(nm−1)sm2+(nf−1)sf2nm+nf−2=99(9.3)2+99(8.7)2198=81.09 cm2.\begin{aligned} s_{\mathrm{pool}}^2 &=\frac{(n_m-1)s_m^2+(n_f-1)s_f^2}{n_m+n_f-2}\\ &=\frac{99(9.3)^2+99(8.7)^2}{198}\\ &=\boxed{81.09\ \mathrm{cm}^2}. \end{aligned}

Therefore spool=81.09≈9.005s_{\mathrm{pool}}=\sqrt{81.09}\approx9.005 cm. Keep these two quantities separate: SpoolS_{\mathrm{pool}} is a standard deviation; Spool2S_{\mathrm{pool}}^2 is a variance.

a) 95% confidence interval for μm−μf\mu_m-\mu_f

Section intitulée « a) 95% confidence interval for μm−μf\mu_m-\mu_fμm​−μf​ »

Since the common variance is unknown and estimated with Spool2S_{\mathrm{pool}}^2, the correct statistic follows a Student distribution:

T=(Xˉm−Xˉf)−(μm−μf)Spool1/nm+1/nf∼tnm+nf−2=t198.T= \frac{(\bar X_m-\bar X_f)-(\mu_m-\mu_f)} {S_{\mathrm{pool}}\sqrt{1/n_m+1/n_f}} \sim t_{n_m+n_f-2}=t_{198}.

The observed standard error is

spool1nm+1nf=81.091100+1100≈1.2735 cm.s_{\mathrm{pool}}\sqrt{\frac1{n_m}+\frac1{n_f}} =\sqrt{81.09}\sqrt{\frac1{100}+\frac1{100}} \approx1.2735\ \mathrm{cm}.

With t198,0.975≈1.9720t_{198,0.975}\approx1.9720,

CI95%(μm−μf)=[(xˉm−xˉf)±t198,0.975 spool1nm+1nf]=[4−1.9720(1.2735),4+1.9720(1.2735)]=[1.49,  6.51] cm.\begin{aligned} CI_{95\%}(\mu_m-\mu_f) &=\left[(\bar x_m-\bar x_f)\pm t_{198,0.975}\,s_{\mathrm{pool}} \sqrt{\frac1{n_m}+\frac1{n_f}}\right]\\ &=\left[4-1.9720(1.2735), 4+1.9720(1.2735)\right]\\ &=\boxed{[1.49,\;6.51]\ \mathrm{cm}}. \end{aligned}

Interpretation: the interval is entirely positive, suggesting that the population mean male height exceeds the population mean female height under the assumptions. The official correction uses 1.961.96 as a large-df approximation; the exact t198t_{198} quantile yields the interval above.

b) 95% confidence interval for the common variance σ2\sigma^2

Section intitulée « b) 95% confidence interval for the common variance σ2\sigma^2σ2 »

Since two independent Normal populations share the same unknown variance, the pooled variance gives the chi-square statistic

Q=(nm+nf−2)Spool2σ2∼χnm+nf−22=χ1982.\boxed{ Q=\frac{(n_m+n_f-2)S_{\mathrm{pool}}^2}{\sigma^2} \sim\chi^2_{n_m+n_f-2}=\chi^2_{198} }.

Important: the numerator contains Spool2S_{\mathrm{pool}}^2, not SpoolS_{\mathrm{pool}}. We want a confidence interval for a variance.

For α=0.05\alpha=0.05, use the chi-square quantiles

χ198,0.0252≈160.9246,χ198,0.9752≈238.8612.\chi^2_{198,0.025}\approx160.9246, \qquad \chi^2_{198,0.975}\approx238.8612.

Isolate σ2\sigma^2:

CI95%(σ2)=[(nm+nf−2)spool2χ198,0.9752,(nm+nf−2)spool2χ198,0.0252].\boxed{ CI_{95\%}(\sigma^2)= \left[ \frac{(n_m+n_f-2)s_{\mathrm{pool}}^2}{\chi^2_{198,0.975}}, \frac{(n_m+n_f-2)s_{\mathrm{pool}}^2}{\chi^2_{198,0.025}} \right] }.

Numerically, the numerator is

198×81.09=16055.82,198\times81.09=16055.82,

so

CI95%(σ2)=[16055.82238.8612,16055.82160.9246]=[67.22,  99.77] cm2.\begin{aligned} CI_{95\%}(\sigma^2) &=\left[ \frac{16055.82}{238.8612}, \frac{16055.82}{160.9246} \right]\\ &=\boxed{[67.22,\;99.77]\ \mathrm{cm}^2}. \end{aligned}

Check against the official correction: the printed result [67.88,100.77][67.88,100.77] cm2^2 is inconsistent with spool2=81.09s_{\mathrm{pool}}^2=81.09 and the stated chi-square quantiles. In particular, (nm+nf−2)spool2=16055.82(n_m+n_f-2)s_{\mathrm{pool}}^2=16055.82, not 16216.216216.2. The interval displayed here is the result of the stated statistic and data.

↑ Retour à l’exercice 3


Observed: n=9n=9, xˉ=60.62\bar x=60.62 V and s2=1.31s^2=1.31 V2^2. Unknown: the true mean μ\mu and variance σ2\sigma^2 of all measurements made under the same conditions. For the exact tests and confidence intervals below, assume independent measurements from a Normal population.

An undistorted voltmeter should read 60 V on average. The question is not about one measurement being exactly 60 V.

H0:μ=60,H1:μ≠60.H_0:\mu=60,\qquad H_1:\mu\ne60.

Since σ2\sigma^2 is unknown, use the Single mean test from page 1 of the official formula sheet:

T=Xˉ−μ0S/n∼tn−1under H0.T=\frac{\bar X-\mu_0}{S/\sqrt n}\sim t_{n-1} \quad\text{under }H_0. tobs=60.62−601.31/9≈1.625,df=8.t_{\mathrm{obs}}= \frac{60.62-60}{\sqrt{1.31}/\sqrt9} \approx\boxed{1.625}, \qquad df=8.

At α=0.05\alpha=0.05, the two-sided critical values are t8,0.025=−2.306t_{8,0.025}=-2.306 and t8,0.975=2.306t_{8,0.975}=2.306.

−2.306<1.625<2.306.-2.306<1.625<2.306.

Therefore we do not reject H0H_0. As this is a two-sided test, both unusually low and unusually high measurements count:

p=P(T8≤−1.625)+P(T8≥1.625)=2P(T8≥1.625)≈0.1428=14.28%.\begin{aligned} p&=P(T_8\le-1.625)+P(T_8\ge1.625)\\ &=2P(T_8\ge1.625) \approx\boxed{0.1428=14.28\%}. \end{aligned}

Interpretation: if the true mean were 60 V, a statistic at least this extreme in either direction would occur about 14.28% of the time under repeated samples. This is not sufficient evidence of systematic distortion at 5%; it does not prove the voltmeter is accurate.

b) Manufacturer’s claim: variance greater than 0.81 V20.81\ \mathrm V^2

Section intitulée « b) Manufacturer’s claim: variance greater than 0.81 V20.81\ \mathrm V^20.81 V2 »

The parameter is now the population variance. A right-tailed test addresses the manufacturer’s claim:

H0:σ2≤0.81,H1:σ2>0.81.H_0:\sigma^2\le0.81,\qquad H_1:\sigma^2>0.81.

Evaluate the statistic at the null boundary σ02=0.81\sigma_0^2=0.81, using the Single variance test on page 1 of the formula sheet:

Q=(n−1)S2σ02∼χn−12under σ2=σ02.Q=\frac{(n-1)S^2}{\sigma_0^2} \sim\chi^2_{n-1} \quad\text{under }\sigma^2=\sigma_0^2. qobs=8(1.31)0.81≈12.94,df=8.q_{\mathrm{obs}}=\frac{8(1.31)}{0.81} \approx\boxed{12.94}, \qquad df=8.

The upper critical value is χ8,0.952≈15.51\chi^2_{8,0.95}\approx15.51. Thus 12.94<15.5112.94<15.51: we do not reject H0H_0.

Large chi-square values support H1H_1, so the p-value is the right-tail area only:

p=P(χ82≥12.94)≈0.1139=11.39%.p=P(\chi^2_8\ge12.94) \approx\boxed{0.1139=11.39\%}.

Interpretation: there is insufficient evidence at the 5% level that the population variance exceeds 0.81 V20.81\ \mathrm V^2.

Unknown population variance implies a Student confidence interval (Normal-population assumption):

CI95%(μ)=[xˉ−t8,0.975sn,xˉ+t8,0.975sn].CI_{95\%}(\mu)= \left[ \bar x-t_{8,0.975}\frac{s}{\sqrt n}, \bar x+t_{8,0.975}\frac{s}{\sqrt n} \right].

The two endpoints come from subtracting and adding the margin of error:

CI95%(μ)=60.62±2.3061.319=60.62±0.88=[59.74,  61.50] V.\begin{aligned} CI_{95\%}(\mu) &=60.62\pm2.306\frac{\sqrt{1.31}}{\sqrt9}\\ &=60.62\pm0.88\\ &=\boxed{[59.74,\;61.50]\ \mathrm V}. \end{aligned}

Because 60 V is inside the interval, the data are consistent with the non-rejection in (a). A frequentist 95% confidence interval has 95% long-run coverage over repeated samples; it does not assign a probability of 95% to the fixed parameter μ\mu.

d) 95% confidence interval for the variance σ2\sigma^2

Section intitulée « d) 95% confidence interval for the variance σ2\sigma^2σ2 »

From the Properties of Xˉ\bar X and S2S^2, 1 population section of the formula sheet:

(n−1)S2σ2∼χn−12.\frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}.

For α=0.05\alpha=0.05, use the chi-square quantiles at 0.0250.025 and 0.9750.975:

χ8,0.0252≈2.180,χ8,0.9752≈17.535.\chi^2_{8,0.025}\approx2.180,\qquad \chi^2_{8,0.975}\approx17.535.

When isolating σ2\sigma^2, the quantiles reverse order because σ2\sigma^2 appears in the denominator:

CI95%(σ2)=[(n−1)s2χn−1,0.9752,(n−1)s2χn−1,0.0252].CI_{95\%}(\sigma^2)= \left[ \frac{(n-1)s^2}{\chi^2_{n-1,0.975}}, \frac{(n-1)s^2}{\chi^2_{n-1,0.025}} \right]. CI95%(σ2)=[8(1.31)17.535,  8(1.31)2.180]≈[0.598,  4.808] V2.\begin{aligned} CI_{95\%}(\sigma^2) &=\left[\frac{8(1.31)}{17.535},\; \frac{8(1.31)}{2.180}\right]\\ &\approx\boxed{[0.598,\;4.808]\ \mathrm V^2}. \end{aligned}

This interval estimates the variance (V2^2), not the standard deviation (V).

↑ Retour à l’exercice 1


Populations: dust emissions of boilers of types A and B under comparable operating conditions. Samples: 8 A-boilers and 6 B-boilers. Unknown: μA,μB,σA2,σB2\mu_A,\mu_B,\sigma_A^2,\sigma_B^2. Assume the samples are independent and normally distributed for the exact Fisher and Student tests.

First compute the sample means and unbiased sample variances:

xˉ=1n∑i=1nxi,s2=1n−1∑i=1n(xi−xˉ)2.\bar x=\frac1n\sum_{i=1}^n x_i,\qquad s^2=\frac1{n-1}\sum_{i=1}^n(x_i-\bar x)^2.
Observed statisticBoiler ABoiler B
Sample sizenA=8n_A=8nB=6n_B=6
MeanxˉA=61\bar x_A=61 gxˉB=49\bar x_B=49 g
Sample variancesA2=15507≈221.43s_A^2=\frac{1550}{7}\approx221.43 g2^2sB2=6905=138s_B^2=\frac{690}{5}=138 g2^2

a) Are the variances different? Fisher test, α=0.02\alpha=0.02

Section intitulée « a) Are the variances different? Fisher test, α=0.02\alpha=0.02α=0.02 »
H0:σA2=σB2,H1:σA2≠σB2.H_0:\sigma_A^2=\sigma_B^2,\qquad H_1:\sigma_A^2\ne\sigma_B^2.

From Test on 2 variances, page 2 of the formula sheet:

F=SA2SB2∼FnA−1,nB−1=F7,5under H0.F=\frac{S_A^2}{S_B^2}\sim F_{n_A-1,n_B-1}=F_{7,5} \quad\text{under }H_0. fobs=221.43138≈1.605.f_{\mathrm{obs}}=\frac{221.43}{138} \approx\boxed{1.605}.

With a two-sided 2%2\% significance level, each rejection tail has probability 0.010.01:

F7,5,0.01≈0.134,F7,5,0.99≈10.46.F_{7,5,0.01}\approx0.134,\qquad F_{7,5,0.99}\approx10.46.

We reject H0H_0 if F<0.134F<0.134 or F>10.46F>10.46. Here:

0.134<1.605<10.46.0.134<1.605<10.46.

Decision: we do not reject H0H_0. The data do not give sufficient evidence of unequal variances at the 2% level. The two-sided p-value is approximately 0.6230.623 (62.3%).

Important: not rejecting equality is not proof that the variances are equal. The pooled-variance model in (b) is an additional modeling assumption, as in the official correction.

b) Is the mean emission from A more than 5 g higher? Student test, α=0.05\alpha=0.05

Section intitulée « b) Is the mean emission from A more than 5 g higher? Student test, α=0.05\alpha=0.05α=0.05 »

Test the boundary of the statement “at least 5 g greater” against a strictly greater difference:

H0:μA−μB≤5,H1:μA−μB>5.H_0:\mu_A-\mu_B\le5,\qquad H_1:\mu_A-\mu_B>5.

The test statistic is calculated at the boundary μA−μB=5\mu_A-\mu_B=5. Under a common unknown population variance, use the Test on 2 sample means with pooled variance from page 2:

Spool2=(nA−1)SA2+(nB−1)SB2nA+nB−2.S_{\mathrm{pool}}^2= \frac{(n_A-1)S_A^2+(n_B-1)S_B^2}{n_A+n_B-2}. spool2=7(221.43)+5(138)12≈186.67 g2.\begin{aligned} s_{\mathrm{pool}}^2 &=\frac{7(221.43)+5(138)}{12}\\ &\approx\boxed{186.67\ \mathrm g^2}. \end{aligned}

(The official correction uses rounded sA2=221.4s_A^2=221.4, giving spool2=186.65s_{\mathrm{pool}}^2=186.65.)

T=(XˉA−XˉB)−5Spool1nA+1nB∼tnA+nB−2=t12at the null boundary.T=\frac{(\bar X_A-\bar X_B)-5} {S_{\mathrm{pool}}\sqrt{\frac1{n_A}+\frac1{n_B}}} \sim t_{n_A+n_B-2}=t_{12} \quad\text{at the null boundary}. tobs=(61−49)−5186.6718+16≈0.949.\begin{aligned} t_{\mathrm{obs}} &=\frac{(61-49)-5} {\sqrt{186.67}\sqrt{\frac18+\frac16}}\\ &\approx\boxed{0.949}. \end{aligned}

Since H1H_1 is right-sided, we reject for large positive values. At α=0.05\alpha=0.05, t12,0.95≈1.782t_{12,0.95}\approx1.782 and

0.949<1.782.0.949<1.782.

Decision: we do not reject H0H_0. The sample does not establish that A’s population mean emission exceeds B’s by more than 5 g.

The one-sided p-value is

p=P(T12≥0.949)≈0.181=18.1%.\boxed{p=P(T_{12}\ge0.949)\approx0.181=18.1\%.}

Official-correction note: the provided solutions report 18.14%; a direct calculation with t12t_{12} and the stated statistic gives approximately 18.07%. This small discrepancy does not affect the decision.

↑ Retour à l’exercice 2


Real question: do two laboratory methods produce systematically different results on average? Population: phosphate measurements on ore samples under the stated conditions. Data: 10 paired measurements, because every ore sample is measured by A and B. Unknown: the mean within-sample difference μD\mu_D.

An independent two-population test would ignore the pairing. Instead, define the difference on sample ii as

Di=Ai−Bi.D_i=A_i-B_i.
Sample12345678910
di=Ai−Bid_i=A_i-B_i (g)3.2−3.9−2.3−0.61.1−2.9−1.8−0.5−2.3−0.3

A paired t-test is a single-mean Student test applied to these differences. For an exact small-sample test, the paired differences are assumed iid Normal across ore samples; Normal marginals for A and B alone would not guarantee that their differences are Normal.

a) Select and carry out the test, α=0.05\alpha=0.05

Section intitulée « a) Select and carry out the test, α=0.05\alpha=0.05α=0.05 »

The null hypothesis states that the methods have the same population mean measurement:

H0:μD=0,H1:μD≠0.H_0:\mu_D=0,\qquad H_1:\mu_D\ne0.

It is a two-sided test. Calculate the sample mean difference:

dˉ=3.2−3.9−2.3−0.6+1.1−2.9−1.8−0.5−2.3−0.310=−1.03 g.\bar d=\frac{3.2-3.9-2.3-0.6+1.1-2.9-1.8-0.5-2.3-0.3}{10} =\boxed{-1.03\ \mathrm g}.

For the unbiased variance of the differences, use the computational identity

sD2=∑i=110di2−ndˉ2n−1.s_D^2= \frac{\sum_{i=1}^{10}d_i^2-n\bar d^2}{n-1}.

Here ∑di2=49.59\sum d_i^2=49.59:

sD2=49.59−10(−1.03)29≈4.33 g2.s_D^2=\frac{49.59-10(-1.03)^2}{9} \approx\boxed{4.33\ \mathrm g^2}.

From the Single mean test, page 1 of the formula sheet, replace Xˉ,S\bar X,S with Dˉ,SD\bar D,S_D and take μ0=0\mu_0=0:

T=Dˉ−0SD/n∼tn−1=t9under H0.T=\frac{\bar D-0}{S_D/\sqrt n} \sim t_{n-1}=t_9 \quad\text{under }H_0. tobs=−1.034.33/10≈−1.565.\begin{aligned} t_{\mathrm{obs}} &=\frac{-1.03}{\sqrt{4.33}/\sqrt{10}}\\ &\approx\boxed{-1.565}. \end{aligned}

With α=0.05\alpha=0.05, the rejection region from the two-sided line of the official formula is:

T<t9,0.025=−2.262orT>t9,0.975=2.262.T<t_{9,0.025}=-2.262 \quad\text{or}\quad T>t_{9,0.975}=2.262.

But −2.262<−1.565<2.262-2.262<-1.565<2.262, so we do not reject H0H_0.

Interpretation: A measured average difference of −1.03-1.03 g is not, on this sample, statistically significant at 5%. We cannot conclude that the two methods have different population mean measurements.

Because the test is two-sided and Student’s t distribution is symmetric, both tails count:

p=P(T9≤−1.565)+P(T9≥1.565)=2P(T9≥1.565)≈0.1520=15.20%.\begin{aligned} p &=P(T_9\le-1.565)+P(T_9\ge1.565)\\ &=2P(T_9\ge1.565)\\ &\approx\boxed{0.1520=15.20\%}. \end{aligned}

Since p=0.1520>0.05p=0.1520>0.05, we do not reject H0H_0, consistent with (a). The p-value is not the probability that H0H_0 is true; it measures how unusual this result would be if H0H_0 held.

To verify the numerical result in Python:

from scipy.stats import t
t_obs = -1.565
p_value = 2 * t.sf(abs(t_obs), df=9)
print(p_value) # approximately 0.1520

Exam method: same ore sample measured twice →\rightarrow compute paired differences →\rightarrow use the single-mean Student test on DD with n−1n-1 degrees of freedom; do not use the independent two-population formula.

↑ Retour à l’exercice 3