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
Let us consider a continuous random variable (X) with a pdf (probability distribution function) given by
f X ( x ) = { k ( 1 + x 2 ) , − 1 ≤ x ≤ 1 , 0 , otherwise . f_X(x)=
\begin{cases}
k(1+x^2), & -1\le x\le 1,\\
0, & \text{otherwise}.
\end{cases} f X ( x ) = { k ( 1 + x 2 ) , 0 , − 1 ≤ x ≤ 1 , otherwise .
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
Use the statistical tables to retrieve the following information:
a) The 2.5 % 2.5\% 2.5% and 97.5 % 97.5\% 97.5% quantiles of a Student T T T random variable with 20 20 20 degrees of freedom.
b) The 2.5 % 2.5\% 2.5% and 97.5 % 97.5\% 97.5% quantiles of a chi-square χ 2 \chi^2 χ 2 random variable with 20 20 20 degrees of freedom.
c) The 2.5 % 2.5\% 2.5% and 97.5 % 97.5\% 97.5% quantiles of a Fisher F n 1 , n 2 F_{n_1,n_2} F n 1 , n 2 random variable with n 1 = 4 n_1=4 n 1 = 4 and n 2 = 10 n_2=10 n 2 = 10 .
d) The 2.5 % 2.5\% 2.5% and 97.5 % 97.5\% 97.5% quantiles of a Normal random variable N ( μ , σ 2 ) N(\mu,\sigma^2) N ( μ , σ 2 ) with μ = 10 \mu=10 μ = 10 and σ = 3 \sigma=3 σ = 3 (hint: use standardization).
Voir la solution
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, P ( X ≥ a ) = 0.674 , P ( X ≤ b ) = 0.037 , P ( X ≤ c ) = 0.81 , P ( X ≥ d ) = 0.326 ,
respectively. Do you obtain results coherent with the first four questions?
Voir la solution
Consider the following pdf of X 1 X_1 X 1 , X 2 X_2 X 2 and X 3 X_3 X 3 :
f ( x 1 , x 2 , x 3 ) = 2 x 2 ( x 1 + x 3 ) , 0 < x 1 , x 2 , x 3 < 1. f(x_1,x_2,x_3)
=
2x_2(x_1+x_3),
\qquad
0<x_1,x_2,x_3<1. f ( x 1 , x 2 , x 3 ) = 2 x 2 ( x 1 + x 3 ) , 0 < x 1 , x 2 , x 3 < 1.
1. Find the joint pdf f X 1 , X 3 ( x 1 , x 3 ) f_{X_1,X_3}(x_1,x_3) f X 1 , X 3 ( x 1 , x 3 ) .
2. Calculate the expectation of X 1 X_1 X 1 and its variance.
3. Calculate the covariance between X 1 X_1 X 1 and X 2 X_2 X 2 . Are they independent?
4. Calculate the conditional pdf of ( X 1 , X 2 ) (X_1,X_2) ( X 1 , X 2 ) conditionally on X 3 = x 3 X_3=x_3 X 3 = x 3 , and calculate
E ( ( X 1 X 2 ) | X 3 = x 3 ) . E\!\left(
\begin{pmatrix}
X_1\\
X_2
\end{pmatrix}
\middle|X_3=x_3
\right). E ( ( X 1 X 2 ) X 3 = x 3 ) .
Voir la solution
Let
X = ( X 1 X 2 ) X=
\begin{pmatrix}
X_1\\
X_2
\end{pmatrix} X = ( X 1 X 2 )
be a bivariate Normal random variable with mean vector and covariance matrix
μ = ( 2 3 ) , Σ = ( 4 2 2 3 ) . \mu=
\begin{pmatrix}
2\\
3
\end{pmatrix},
\qquad
\Sigma=
\begin{pmatrix}
4&2\\
2&3
\end{pmatrix}. μ = ( 2 3 ) , Σ = ( 4 2 2 3 ) .
1. Find the distribution of
Y = 3 X 1 + X 2 − 3. Y=3X_1+X_2-3. Y = 3 X 1 + X 2 − 3.
2. Retrieve the conditional distribution of X 2 X_2 X 2 given X 1 = x 1 X_1=x_1 X 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.
The time spent by a customer at the counter of a bank office is a random variable X X X with pdf
f ( x ; θ ) = { 1 3 θ , x ∈ [ 0 , θ ] , 2 3 ( 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. f ( x ; θ ) = ⎩ ⎨ ⎧ 3 θ 1 , 3 ( 21 − θ ) 2 , 0 , x ∈ [ 0 , θ ] , x ∈ ( θ , 21 ] , otherwise , 0 < θ < 21.
a) Determine E ( X ) E(X) E ( X ) . From a sample of observations ( x 1 , … , x n ) (x_1,\ldots,x_n) ( x 1 , … , 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 X X X 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. f ( x ; α ) = { ( α + 1 ) x α , 0 , 0 ≤ x ≤ 1 , otherwise , α > − 1.
a) Determine E ( X ) E(X) E ( X ) and V ( X ) V(X) V ( X ) , then estimate α \alpha α by the method of moments .
b) From a sample ( x 1 , … , x n ) (x_1,\ldots,x_n) ( x 1 , … , 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. 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), X ∼ N ( μ , σ 2 ) ,
with unknown mean μ \mu μ and unknown standard deviation σ \sigma σ . Its pdf is
f ( x ; μ , σ ) = 1 σ 2 π exp [ − 1 2 ( x − μ σ ) 2 ] . f(x;\mu,\sigma)
=
\frac{1}{\sigma\sqrt{2\pi}}
\exp\!\left[
-\frac12\left(\frac{x-\mu}{\sigma}\right)^2
\right]. f ( x ; μ , σ ) = σ 2 π 1 exp [ − 2 1 ( σ x − μ ) 2 ] .
From a random sample ( x 1 , … , x n ) (x_1,\ldots,x_n) ( x 1 , … , x n ) , we wish to estimate μ \mu μ and σ 2 \sigma^2 σ 2 by maximum likelihood.
a) Write the log-likelihood of the sample.
b) Find the estimators μ ^ \hat\mu μ ^ and σ ^ M L E 2 \hat\sigma^2_{\mathrm{MLE}} σ ^ MLE 2 , 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, μ ^ = X ˉ ,
give its variance, and compute
MSE ( μ ^ ) = E [ ( μ ^ − μ ) 2 ] . \operatorname{MSE}(\hat\mu)
=
E\!\left[(\hat\mu-\mu)^2\right]. MSE ( μ ^ ) = E [ ( μ ^ − μ ) 2 ] .
Voir la solution
We consider a continuous random variable X X X with pdf
f ( x ; θ ) = 1 Γ ( 2 ) x θ 2 e − x / θ , x ≥ 0 , θ > 0 , f(x;\theta)
=
\frac{1}{\Gamma(2)}
\frac{x}{\theta^2}
e^{-x/\theta},
\qquad x\ge0,\quad \theta>0, f ( x ; θ ) = Γ ( 2 ) 1 θ 2 x e − x / θ , x ≥ 0 , θ > 0 ,
and observe a sample ( x 1 , … , x n ) (x_1,\ldots,x_n) ( x 1 , … , 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.95 0.95 0.95 . Can this interval be computed in practice?
Voir la solution
Let
X 1 , … , X n ∼ i i d U ( 0 , θ ) . X_1,\ldots,X_n\overset{iid}{\sim}U(0,\theta). X 1 , … , X n ∼ ii d U ( 0 , θ ) .
a) Check that two estimators of θ \theta θ are
θ ^ = max ( X 1 , … , X n ) \hat\theta
=
\max(X_1,\ldots,X_n) θ ^ = max ( X 1 , … , X n )
by maximum-likelihood estimation, and
θ ~ = 2 X ˉ \tilde\theta
=
2\bar X θ ~ = 2 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). E ( θ ^ ) , E ( θ ~ ) , V ( θ ^ ) , V ( θ ~ ) .
c) Which estimator do you prefer? Justify your answer using the mean squared error (MSE) rather than bias alone.
Voir la solution
Let X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n be iid random variables with pdf
f X ( 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. f X ( x ; λ ) = λ 1 exp ( − λ x ) , x > 0 , λ > 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 = 100 n=100 n = 100 . Use a Normal approximation for λ ^ \hat\lambda λ ^ and determine a confidence interval for λ \lambda λ at level α = 5 % \alpha=5\% α = 5% .
Hint from the statement: use the sample variance instead of V ( X ) V(X) V ( X ) .
Voir la solution
We assume that the height of a Belgian female citizen, denoted by X X X , follows a Normal distribution . The population standard deviation is unknown.
We measure the heights of a sample of n = 100 n=100 n = 100 UCL students and observe
x ˉ = 174 c m , s 2 = ( 11.7 c m ) 2 . \bar x=174\ \mathrm{cm},
\qquad
s^2=(11.7\ \mathrm{cm})^2. x ˉ = 174 cm , s 2 = ( 11.7 cm ) 2 .
a) Find a confidence interval for μ = E ( X ) \mu=E(X) μ = E ( X ) at level α = 10 % \alpha=10\% α = 10% .
b) Find a confidence interval for σ 2 = V ( X ) \sigma^2=V(X) σ 2 = V ( X ) at level α = 10 % \alpha=10\% α = 10% .
Voir la solution
The heights of Belgian female and male citizens, denoted respectively by X f X_f X f and X m X_m X 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 n f = n m = 100 n_f=n_m=100 n f = n m = 100 ):
x ˉ f = 173 c m , s f 2 = ( 8.7 c m ) 2 , x ˉ m = 177 c m , s m 2 = ( 9.3 c m ) 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} x ˉ f x ˉ m = 173 cm , = 177 cm , s f 2 s m 2 = ( 8.7 cm ) 2 , = ( 9.3 cm ) 2 .
a) Find a confidence interval for μ m − μ f = E ( X m ) − E ( X f ) \mu_m-\mu_f=E(X_m)-E(X_f) μ m − μ f = E ( X m ) − E ( X f ) at level α = 5 % \alpha=5\% α = 5% .
b) Find a confidence interval for the common variance
σ 2 = V ( X m ) = V ( X f ) \sigma^2=V(X_m)=V(X_f) σ 2 = V ( X m ) = V ( X f )
at level α = 5 % \alpha=5\% α = 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:
Measurement 1 2 3 4 5 6 7 8 9 Voltage (V) 61.0 61.3 58.2 61.9 60.3 60.6 59.7 60.8 61.8
The statement gives the observed sample mean and sample variance :
x ˉ = 60.62 V , s 2 = 1.31 V 2 , n = 9. \bar x=60.62\ \mathrm V,\qquad s^2=1.31\ \mathrm V^2,\qquad n=9. x ˉ = 60.62 V , s 2 = 1.31 V 2 , 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 V 2 0.81\ \mathrm V^2 0.81 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 α = 0.05 .
d) Calculate a confidence interval for the population variance of the measurements with α = 0.05 \alpha=0.05 α = 0.05 .
Voir la solution
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):
Type Observed dust quantities (g) A 64, 75, 39, 47, 49, 81, 72, 61 B 31, 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 α = 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 α = 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
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:
Sample 1 2 3 4 5 6 7 8 9 10 A 55.6 62.4 48.9 45.5 75.4 89.6 38.4 96.8 92.5 98.7 B 52.4 66.3 51.2 46.1 74.3 92.5 40.2 97.3 94.8 99.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 α = 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 = − 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. 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. E ( Z ) = ( − 1 ) ( 0.3 ) + 5 ( 0.7 ) = 3.2.
For the variance, first compute the second moment:
E ( Z 2 ) = ( − 1 ) 2 ( 0.3 ) + 5 2 ( 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. E ( Z 2 ) = ( − 1 ) 2 ( 0.3 ) + 5 2 ( 0.7 ) = 0.3 + 17.5 = 17.8.
Therefore
V ( Z ) = E ( Z 2 ) − E ( Z ) 2 = 17.8 − 3.2 2 = 7.56 . V(Z)=E(Z^2)-E(Z)^2
=17.8-3.2^2
=\boxed{7.56}. V ( Z ) = E ( Z 2 ) − E ( Z ) 2 = 17.8 − 3. 2 2 = 7.56 .
So
E ( Z ) = 3.2 , V ( Z ) = 7.56. \boxed{E(Z)=3.2,\qquad V(Z)=7.56.} E ( Z ) = 3.2 , 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 = − 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. 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. E ( Y ) = ( − 4 ) ( 0.6 ) + 6 ( 0.4 ) = 0.
The second moment is
E ( Y 2 ) = ( − 4 ) 2 ( 0.6 ) + 6 2 ( 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. 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 ( Y 2 ) − E ( Y ) 2 = 24. V(Y)=E(Y^2)-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.} E ( Y ) = 0 , 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 ( Y Z ) = ( − 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} E ( Y Z ) = ( − 4 ) ( − 1 ) ( 0.1 ) + ( − 4 ) ( 5 ) ( 0.5 ) + ( 6 ) ( − 1 ) ( 0.2 ) + ( 6 ) ( 5 ) ( 0.2 ) = 0.4 − 10 − 1.2 + 6 = − 4.8.
The covariance is
C ( Y , Z ) = E ( Y Z ) − E ( Y ) E ( Z ) . C(Y,Z)=E(YZ)-E(Y)E(Z). C ( Y , Z ) = E ( Y Z ) − 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}. C ( Y , Z ) = − 4.8 − ( 0 ) ( 3.2 ) = − 4.8 .
Finally,
ρ Y , Z = C ( Y , Z ) V ( Y ) V ( Z ) = − 4.8 24 7.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}. ρ Y , Z = V ( Y ) V ( Z ) C ( Y , Z ) = 24 7.56 − 4.8 ≈ − 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):
∫ − 1 1 k ( 1 + x 2 ) d x = 1. \int_{-1}^{1} k(1+x^2)\,dx=1. ∫ − 1 1 k ( 1 + x 2 ) d x = 1.
Therefore
k [ x + x 3 3 ] − 1 1 = 1. k\left[x+\frac{x^3}{3}\right]_{-1}^{1}=1. k [ x + 3 x 3 ] − 1 1 = 1.
The integral equals
( 1 + 1 3 ) − ( − 1 − 1 3 ) = 8 3 . \left(1+\frac13\right)-\left(-1-\frac13\right)
=\frac83. ( 1 + 3 1 ) − ( − 1 − 3 1 ) = 3 8 .
Thus
k 8 3 = 1 ⟹ k = 3 8 . k\frac83=1
\qquad\Longrightarrow\qquad
\boxed{k=\frac38}. k 3 8 = 1 ⟹ k = 8 3 .
The expectation is
E ( X ) = k ∫ − 1 1 x ( 1 + x 2 ) d x = k ∫ − 1 1 ( x + x 3 ) d x . E(X)
=
k\int_{-1}^{1}x(1+x^2)\,dx
=
k\int_{-1}^{1}(x+x^3)\,dx. E ( X ) = k ∫ − 1 1 x ( 1 + x 2 ) d x = k ∫ − 1 1 ( x + x 3 ) d x .
The integrand is odd and the interval is symmetric around (0), hence
E ( X ) = 0 . \boxed{E(X)=0}. E ( X ) = 0 .
For the variance, use
V ( X ) = E ( X 2 ) − E ( X ) 2 . V(X)=E(X^2)-E(X)^2. V ( X ) = E ( X 2 ) − E ( X ) 2 .
Since (E(X)=0),
V ( X ) = E ( X 2 ) . V(X)=E(X^2). V ( X ) = E ( X 2 ) .
Now
E ( X 2 ) = k ∫ − 1 1 x 2 ( 1 + x 2 ) d x = k ∫ − 1 1 ( x 2 + x 4 ) d x = 3 8 ( 2 3 + 2 5 ) = 3 8 16 15 = 2 5 . \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} E ( X 2 ) = k ∫ − 1 1 x 2 ( 1 + x 2 ) d x = k ∫ − 1 1 ( x 2 + x 4 ) d x = 8 3 ( 3 2 + 5 2 ) = 8 3 15 16 = 5 2 .
Therefore
E ( X ) = 0 , V ( X ) = 2 5 . \boxed{E(X)=0,\qquad V(X)=\frac25.} E ( X ) = 0 , V ( X ) = 5 2 .
A quantile q α q_\alpha q α is defined by
P ( X ≤ q α ) = α . P(X\le q_\alpha)=\alpha. P ( X ≤ q α ) = α .
Because the support begins at (-1),
∫ − 1 q α k ( 1 + x 2 ) d x = α . \int_{-1}^{q_\alpha} k(1+x^2)\,dx=\alpha. ∫ − 1 q α k ( 1 + x 2 ) d x = α .
Using (k=3/8),
∫ − 1 q α 3 8 ( 1 + x 2 ) d x = 3 8 [ x + x 3 3 ] − 1 q α = 1 8 ( q α 3 + 3 q α + 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} ∫ − 1 q α 8 3 ( 1 + x 2 ) d x = 8 3 [ x + 3 x 3 ] − 1 q α = 8 1 ( q α 3 + 3 q α + 4 ) .
Hence the quantile is the solution in ([-1,1]) of
1 8 ( q α 3 + 3 q α + 4 ) = α . \boxed{
\frac18\left(q_\alpha^3+3q_\alpha+4\right)=\alpha.
} 8 1 ( q α 3 + 3 q α + 4 ) = α .
This is the inverse-CDF idea: the probability α \alpha α is given, and we solve for the cutoff q α q_\alpha q α .
First transform the support. Since
− 1 ≤ X ≤ 1 , -1\le X\le1, − 1 ≤ X ≤ 1 ,
we have
− 1 = 3 ( − 1 ) + 2 ≤ Y ≤ 3 ( 1 ) + 2 = 5. -1=3(-1)+2\le Y\le3(1)+2=5. − 1 = 3 ( − 1 ) + 2 ≤ Y ≤ 3 ( 1 ) + 2 = 5.
Thus the support of (Y) is ([-1,5]).
For an affine transformation (Y=3X+2),
x = y − 2 3 and ∣ d x d y ∣ = 1 3 . x=\frac{y-2}{3}
\qquad\text{and}\qquad
\left|\frac{dx}{dy}\right|=\frac13. x = 3 y − 2 and d y d x = 3 1 .
Therefore
f Y ( y ) = 1 3 f X ( y − 2 3 ) . f_Y(y)
=
\frac13
f_X\left(\frac{y-2}{3}\right). f Y ( y ) = 3 1 f X ( 3 y − 2 ) .
For − 1 ≤ y ≤ 5 -1\le y\le5 − 1 ≤ y ≤ 5 ,
f Y ( y ) = 1 3 3 8 [ 1 + ( y − 2 3 ) 2 ] = 1 8 [ 1 + ( y − 2 ) 2 9 ] = 1 72 ( y 2 − 4 y + 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} f Y ( y ) = 3 1 8 3 [ 1 + ( 3 y − 2 ) 2 ] = 8 1 [ 1 + 9 ( y − 2 ) 2 ] = 72 1 ( y 2 − 4 y + 13 ) .
Hence
f Y ( y ) = { 1 72 ( y 2 − 4 y + 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}
} f Y ( y ) = ⎩ ⎨ ⎧ 72 1 ( y 2 − 4 y + 13 ) , 0 , − 1 ≤ y ≤ 5 , otherwise .
Because
Y = 3 X + 2 , Y=3X+2, Y = 3 X + 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}. ρ X , Y = 1 .
For the covariance,
C ( X , Y ) = C ( X , 3 X + 2 ) = 3 C ( X , X ) = 3 V ( X ) . C(X,Y)
=
C(X,3X+2)
=
3C(X,X)
=
3V(X). C ( X , Y ) = C ( X , 3 X + 2 ) = 3 C ( X , X ) = 3 V ( X ) .
Since (V(X)=2/5),
C ( X , Y ) = 3 2 5 = 6 5 . \boxed{
C(X,Y)=3\frac25=\frac65.
} C ( X , Y ) = 3 5 2 = 5 6 .
The same result follows from the official correction’s route:
V ( Y ) = 9 V ( X ) = 18 5 , V(Y)=9V(X)=\frac{18}{5}, V ( Y ) = 9 V ( X ) = 5 18 ,
so
C ( X , Y ) = ρ X , Y σ X σ Y = 1 × 2 5 18 5 = 6 5 . C(X,Y)
=
\rho_{X,Y}\sigma_X\sigma_Y
=
1\times
\sqrt{\frac25}
\sqrt{\frac{18}{5}}
=
\frac65. C ( X , Y ) = ρ X , Y σ X σ Y = 1 × 5 2 5 18 = 5 6 .
↑ Retour à l’exercice 2
A quantile (q_p) is a value satisfying
P ( X ≤ q p ) = p . P(X\le q_p)=p. P ( X ≤ 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,
t 20 , 0.975 = 2.086. t_{20,0.975}=2.086. t 20 , 0.975 = 2.086.
The Student distribution is symmetric around (0), hence
t 20 , 0.025 = − t 20 , 0.975 = − 2.086. t_{20,0.025}=-t_{20,0.975}=-2.086. t 20 , 0.025 = − t 20 , 0.975 = − 2.086.
Therefore
t 20 , 0.025 = − 2.086 , t 20 , 0.975 = 2.086. \boxed{
t_{20,0.025}=-2.086,
\qquad
t_{20,0.975}=2.086.
} t 20 , 0.025 = − 2.086 , 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.025 2 = 9.59083 , χ 20 , 0.975 2 = 34.1696. \boxed{
\chi^2_{20,0.025}=9.59083,
\qquad
\chi^2_{20,0.975}=34.1696.
} χ 20 , 0.025 2 = 9.59083 , χ 20 , 0.975 2 = 34.1696.
There is no sign-symmetry shortcut here.
For the upper quantile, the table directly gives
F 4 , 10 ; 0.975 = 4.47 . \boxed{F_{4,10;0.975}=4.47}. F 4 , 10 ; 0.975 = 4.47 .
For the lower 2.5 % 2.5\% 2.5% quantile, let
F ∼ F 4 , 10 F\sim F_{4,10} F ∼ F 4 , 10
and seek (q) such that
P ( F ≤ q ) = 0.025. P(F\le q)=0.025. P ( F ≤ q ) = 0.025.
Use the reciprocal property
1 F ∼ F 10 , 4 . \frac1F\sim F_{10,4}. F 1 ∼ F 10 , 4 .
Then
P ( F ≤ q ) = 0.025 P(F\le q)=0.025 P ( F ≤ q ) = 0.025
is equivalent to
P ( 1 F ≥ 1 q ) = 0.025. P\left(\frac1F\ge\frac1q\right)=0.025. P ( F 1 ≥ q 1 ) = 0.025.
Since the distribution is continuous,
P ( 1 F ≤ 1 q ) = 0.975. P\left(\frac1F\le\frac1q\right)=0.975. P ( F 1 ≤ q 1 ) = 0.975.
Thus 1 / q 1/q 1/ q is the 97.5 % 97.5\% 97.5% quantile of F 10 , 4 F_{10,4} F 10 , 4 . From the table,
F 10 , 4 ; 0.975 = 8.84. F_{10,4;0.975}=8.84. F 10 , 4 ; 0.975 = 8.84.
Therefore
1 q = 8.84 ⟹ q = 1 8.84 ≈ 0.1131. \frac1q=8.84
\qquad\Longrightarrow\qquad
q=\frac1{8.84}\approx0.1131. q 1 = 8.84 ⟹ q = 8.84 1 ≈ 0.1131.
Hence
F 4 , 10 ; 0.025 ≈ 0.1131 , F 4 , 10 ; 0.975 = 4.47. \boxed{
F_{4,10;0.025}\approx0.1131,
\qquad
F_{4,10;0.975}=4.47.
} F 4 , 10 ; 0.025 ≈ 0.1131 , F 4 , 10 ; 0.975 = 4.47.
Standardize:
Z = X − 10 3 ∼ N ( 0 , 1 ) . Z=\frac{X-10}{3}\sim N(0,1). Z = 3 X − 10 ∼ N ( 0 , 1 ) .
Equivalently,
X = 10 + 3 Z . X=10+3Z. X = 10 + 3 Z .
For the standard Normal distribution,
z 0.025 = − 1.96 , z 0.975 = 1.96. z_{0.025}=-1.96,
\qquad
z_{0.975}=1.96. z 0.025 = − 1.96 , z 0.975 = 1.96.
Therefore
x 0.025 = 10 + 3 ( − 1.96 ) = 4.12 , x_{0.025}
=
10+3(-1.96)
=
\boxed{4.12}, x 0.025 = 10 + 3 ( − 1.96 ) = 4.12 ,
and
x 0.975 = 10 + 3 ( 1.96 ) = 15.88 . x_{0.975}
=
10+3(1.96)
=
\boxed{15.88}. x 0.975 = 10 + 3 ( 1.96 ) = 15.88 .
The important reflex is:
x p = μ + σ z p . \boxed{x_p=\mu+\sigma z_p}. x p = μ + σ z p .
↑ Retour à l’exercice 7
We have
X ∼ N ( 3 , 1.25 ) , X\sim N(3,1.25), X ∼ N ( 3 , 1.25 ) ,
so
μ = 3 , σ = 1.25 . \mu=3,
\qquad
\sigma=\sqrt{1.25}. μ = 3 , σ = 1.25 .
The standardized variable is
Z = X − 3 1.25 ∼ N ( 0 , 1 ) . Z=\frac{X-3}{\sqrt{1.25}}\sim N(0,1). Z = 1.25 X − 3 ∼ N ( 0 , 1 ) .
For the official 2026–2027 Normal table used here, read probabilities in the form
P ( Z < z ) . P(Z<z). P ( Z < z ) .
We want
P ( X ≥ 2.5 ) . P(X\ge2.5). P ( X ≥ 2.5 ) .
Standardize:
P ( X ≥ 2.5 ) = P ( Z ≥ 2.5 − 3 1.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} P ( X ≥ 2.5 ) = P ( Z ≥ 1.25 2.5 − 3 ) ≈ P ( Z ≥ − 0.45 ) .
By symmetry of the standard Normal distribution,
P ( Z ≥ − 0.45 ) = P ( Z ≤ 0.45 ) . P(Z\ge-0.45)=P(Z\le0.45). P ( Z ≥ − 0.45 ) = P ( Z ≤ 0.45 ) .
The table gives
P ( Z ≤ 0.45 ) = 0.6736. P(Z\le0.45)=0.6736. P ( Z ≤ 0.45 ) = 0.6736.
Hence
P ( X ≥ 2.5 ) ≈ 0.6736 . \boxed{P(X\ge2.5)\approx0.6736}. P ( X ≥ 2.5 ) ≈ 0.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). P ( X ≤ 4 ) .
Standardization gives
P ( X ≤ 4 ) = P ( Z ≤ 4 − 3 1.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} P ( X ≤ 4 ) = P ( Z ≤ 1.25 4 − 3 ) ≈ P ( Z ≤ 0.89 ) .
From the table,
P ( Z ≤ 0.89 ) = 0.8133. P(Z\le0.89)=0.8133. P ( Z ≤ 0.89 ) = 0.8133.
Therefore
P ( X ≤ 4 ) ≈ 0.8133 . \boxed{P(X\le4)\approx0.8133}. P ( X ≤ 4 ) ≈ 0.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. 1 − P ( Z ≥ 0.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.
Standardize:
P ( Z ≥ a − 3 1.25 ) = 0.674. P\left(
Z\ge
\frac{a-3}{\sqrt{1.25}}
\right)=0.674. P ( Z ≥ 1.25 a − 3 ) = 0.674.
Equivalently, the left-tail probability is
P ( Z ≤ a − 3 1.25 ) = 0.326. P\left(
Z\le
\frac{a-3}{\sqrt{1.25}}
\right)=0.326. P ( Z ≤ 1.25 a − 3 ) = 0.326.
From the table,
P ( Z ≤ − 0.45 ) ≈ 0.326. P(Z\le-0.45)\approx0.326. P ( Z ≤ − 0.45 ) ≈ 0.326.
Thus
a − 3 1.25 = − 0.45 , \frac{a-3}{\sqrt{1.25}}=-0.45, 1.25 a − 3 = − 0.45 ,
so
a = 3 − 0.45 1.25 ≈ 2.496 . a
=
3-0.45\sqrt{1.25}
\approx
\boxed{2.496}. a = 3 − 0.45 1.25 ≈ 2.496 .
We need
P ( Z ≤ b − 3 1.25 ) = 0.037. P\left(
Z\le
\frac{b-3}{\sqrt{1.25}}
\right)=0.037. P ( Z ≤ 1.25 b − 3 ) = 0.037.
The corresponding standard Normal quantile is approximately
z = − 1.79. z=-1.79. z = − 1.79.
Hence
b − 3 1.25 = − 1.79 , \frac{b-3}{\sqrt{1.25}}=-1.79, 1.25 b − 3 = − 1.79 ,
and
b = 3 − 1.79 1.25 ≈ 1.00 . b
=
3-1.79\sqrt{1.25}
\approx
\boxed{1.00}. b = 3 − 1.79 1.25 ≈ 1.00 .
We need
P ( Z ≤ c − 3 1.25 ) = 0.81. P\left(
Z\le
\frac{c-3}{\sqrt{1.25}}
\right)=0.81. P ( Z ≤ 1.25 c − 3 ) = 0.81.
From the table,
P ( Z ≤ 0.87 ) ≈ 0.81. P(Z\le0.87)\approx0.81. P ( Z ≤ 0.87 ) ≈ 0.81.
Therefore
c − 3 1.25 = 0.87 , \frac{c-3}{\sqrt{1.25}}=0.87, 1.25 c − 3 = 0.87 ,
so
c = 3 + 0.87 1.25 ≈ 3.97 . c
=
3+0.87\sqrt{1.25}
\approx
\boxed{3.97}. c = 3 + 0.87 1.25 ≈ 3.97 .
Convert to a left-tail probability:
P ( X ≤ d ) = 1 − 0.326 = 0.674. P(X\le d)=1-0.326=0.674. P ( X ≤ d ) = 1 − 0.326 = 0.674.
Hence
P ( Z ≤ d − 3 1.25 ) = 0.674. P\left(
Z\le
\frac{d-3}{\sqrt{1.25}}
\right)=0.674. P ( Z ≤ 1.25 d − 3 ) = 0.674.
From the table,
P ( Z ≤ 0.45 ) ≈ 0.674. P(Z\le0.45)\approx0.674. P ( Z ≤ 0.45 ) ≈ 0.674.
Thus
d − 3 1.25 = 0.45 , \frac{d-3}{\sqrt{1.25}}=0.45, 1.25 d − 3 = 0.45 ,
and
d = 3 + 0.45 1.25 ≈ 3.50 . d
=
3+0.45\sqrt{1.25}
\approx
\boxed{3.50}. d = 3 + 0.45 1.25 ≈ 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.
} a ≈ 2.50 , b ≈ 1.00 , c ≈ 3.97 , d ≈ 3.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 ( x 1 , x 2 , x 3 ) = 2 x 2 ( x 1 + x 3 ) , 0 < x 1 , x 2 , x 3 < 1. f(x_1,x_2,x_3)=2x_2(x_1+x_3),
\qquad 0<x_1,x_2,x_3<1. f ( x 1 , x 2 , x 3 ) = 2 x 2 ( x 1 + x 3 ) , 0 < x 1 , x 2 , x 3 < 1.
To keep only X 1 X_1 X 1 and X 3 X_3 X 3 , integrate out X 2 X_2 X 2 :
f X 1 , X 3 ( x 1 , x 3 ) = ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 2 = ( x 1 + x 3 ) ∫ 0 1 2 x 2 d x 2 = x 1 + x 3 . \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} f X 1 , X 3 ( x 1 , x 3 ) = ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 2 = ( x 1 + x 3 ) ∫ 0 1 2 x 2 d x 2 = x 1 + x 3 .
Hence
f X 1 , X 3 ( x 1 , x 3 ) = x 1 + x 3 , 0 < x 1 , x 3 < 1. \boxed{
f_{X_1,X_3}(x_1,x_3)
=
x_1+x_3,
\qquad
0<x_1,x_3<1.
} f X 1 , X 3 ( x 1 , x 3 ) = x 1 + x 3 , 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 X 1 X_1 X 1 by integrating out X 3 X_3 X 3 :
f X 1 ( x 1 ) = ∫ 0 1 f X 1 , X 3 ( x 1 , x 3 ) d x 3 = ∫ 0 1 ( x 1 + x 3 ) d x 3 = x 1 + 1 2 , 0 < x 1 < 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} f X 1 ( x 1 ) = ∫ 0 1 f X 1 , X 3 ( x 1 , x 3 ) d x 3 = ∫ 0 1 ( x 1 + x 3 ) d x 3 = x 1 + 2 1 , 0 < x 1 < 1.
Then
E ( X 1 ) = ∫ 0 1 x 1 f X 1 ( x 1 ) d x 1 = ∫ 0 1 x 1 ( x 1 + 1 2 ) d x 1 = 1 3 + 1 4 = 7 12 . \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} E ( X 1 ) = ∫ 0 1 x 1 f X 1 ( x 1 ) d x 1 = ∫ 0 1 x 1 ( x 1 + 2 1 ) d x 1 = 3 1 + 4 1 = 12 7 .
For the variance, first compute the second moment:
E ( X 1 2 ) = ∫ 0 1 x 1 2 ( x 1 + 1 2 ) d x 1 = 1 4 + 1 6 = 5 12 . \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} E ( X 1 2 ) = ∫ 0 1 x 1 2 ( x 1 + 2 1 ) d x 1 = 4 1 + 6 1 = 12 5 .
Therefore
Var ( X 1 ) = E ( X 1 2 ) − E ( X 1 ) 2 = 5 12 − ( 7 12 ) 2 = 11 144 . \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} Var ( X 1 ) = E ( X 1 2 ) − E ( X 1 ) 2 = 12 5 − ( 12 7 ) 2 = 144 11 .
First obtain their joint density by integrating out X 3 X_3 X 3 :
f X 1 , X 2 ( x 1 , x 2 ) = ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 3 = 2 x 2 ( x 1 + 1 2 ) = x 2 ( 2 x 1 + 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} f X 1 , X 2 ( x 1 , x 2 ) = ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 3 = 2 x 2 ( x 1 + 2 1 ) = x 2 ( 2 x 1 + 1 ) .
We already know
f X 1 ( x 1 ) = x 1 + 1 2 . f_{X_1}(x_1)=x_1+\frac12. f X 1 ( x 1 ) = x 1 + 2 1 .
The marginal density of X 2 X_2 X 2 is
f X 2 ( x 2 ) = ∫ 0 1 x 2 ( 2 x 1 + 1 ) d x 1 = 2 x 2 , 0 < x 2 < 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} f X 2 ( x 2 ) = ∫ 0 1 x 2 ( 2 x 1 + 1 ) d x 1 = 2 x 2 , 0 < x 2 < 1.
Now compute the moments needed for the covariance:
E ( X 2 ) = ∫ 0 1 x 2 ( 2 x 2 ) d x 2 = 2 3 , E(X_2)
=
\int_0^1 x_2(2x_2)\,dx_2
=
\frac23, E ( X 2 ) = ∫ 0 1 x 2 ( 2 x 2 ) d x 2 = 3 2 ,
and
E ( X 1 X 2 ) = ∫ 0 1 ∫ 0 1 x 1 x 2 f X 1 , X 2 ( x 1 , x 2 ) d x 1 d x 2 = ∫ 0 1 ∫ 0 1 x 1 x 2 2 ( 2 x 1 + 1 ) d x 1 d x 2 = 7 18 . \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} E ( X 1 X 2 ) = ∫ 0 1 ∫ 0 1 x 1 x 2 f X 1 , X 2 ( x 1 , x 2 ) d x 1 d x 2 = ∫ 0 1 ∫ 0 1 x 1 x 2 2 ( 2 x 1 + 1 ) d x 1 d x 2 = 18 7 .
Hence
Cov ( X 1 , X 2 ) = E ( X 1 X 2 ) − E ( X 1 ) E ( X 2 ) = 7 18 − 7 12 2 3 = 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} Cov ( X 1 , X 2 ) = E ( X 1 X 2 ) − E ( X 1 ) E ( X 2 ) = 18 7 − 12 7 3 2 = 0 .
A zero covariance alone would not prove independence in general. We must check the densities:
f X 1 ( x 1 ) f X 2 ( x 2 ) = ( x 1 + 1 2 ) ( 2 x 2 ) = x 2 ( 2 x 1 + 1 ) = f X 1 , X 2 ( x 1 , x 2 ) . \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} f X 1 ( x 1 ) f X 2 ( x 2 ) = ( x 1 + 2 1 ) ( 2 x 2 ) = x 2 ( 2 x 1 + 1 ) = f X 1 , X 2 ( x 1 , x 2 ) .
Therefore
X 1 ⊥ X 2 . \boxed{X_1\perp X_2}. X 1 ⊥ X 2 .
So here the covariance is zero and the variables are independent.
The conditional density is
f X 1 , X 2 ∣ X 3 ( x 1 , x 2 ∣ x 3 ) = f X 1 , X 2 , X 3 ( x 1 , x 2 , x 3 ) f X 3 ( x 3 ) . 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)
}. f X 1 , X 2 ∣ X 3 ( x 1 , x 2 ∣ x 3 ) = f X 3 ( x 3 ) f X 1 , X 2 , X 3 ( x 1 , x 2 , x 3 ) .
First find the marginal density of X 3 X_3 X 3 :
f X 3 ( x 3 ) = ∫ 0 1 ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 1 d x 2 = x 3 + 1 2 . \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} f X 3 ( x 3 ) = ∫ 0 1 ∫ 0 1 2 x 2 ( x 1 + x 3 ) d x 1 d x 2 = x 3 + 2 1 .
Hence, for 0 < x 1 , x 2 , x 3 < 1 0<x_1,x_2,x_3<1 0 < x 1 , x 2 , x 3 < 1 ,
f X 1 , X 2 ∣ X 3 ( x 1 , x 2 ∣ x 3 ) = 2 x 2 ( x 1 + x 3 ) x 3 + 1 2 = 4 x 2 ( x 1 + x 3 ) 1 + 2 x 3 . \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} f X 1 , X 2 ∣ X 3 ( x 1 , x 2 ∣ x 3 ) = x 3 + 2 1 2 x 2 ( x 1 + x 3 ) = 1 + 2 x 3 4 x 2 ( x 1 + x 3 ) .
Now calculate each component of the conditional expectation vector separately.
For X 1 X_1 X 1 ,
E ( X 1 ∣ X 3 = x 3 ) = ∫ 0 1 ∫ 0 1 x 1 4 x 2 ( x 1 + x 3 ) 1 + 2 x 3 d x 1 d x 2 = 2 + 3 x 3 3 ( 1 + 2 x 3 ) . \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} E ( X 1 ∣ X 3 = x 3 ) = ∫ 0 1 ∫ 0 1 x 1 1 + 2 x 3 4 x 2 ( x 1 + x 3 ) d x 1 d x 2 = 3 ( 1 + 2 x 3 ) 2 + 3 x 3 .
For X 2 X_2 X 2 ,
E ( X 2 ∣ X 3 = x 3 ) = ∫ 0 1 ∫ 0 1 x 2 4 x 2 ( x 1 + x 3 ) 1 + 2 x 3 d x 1 d x 2 = 2 3 . \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} E ( X 2 ∣ X 3 = x 3 ) = ∫ 0 1 ∫ 0 1 x 2 1 + 2 x 3 4 x 2 ( x 1 + x 3 ) d x 1 d x 2 = 3 2 .
Therefore
E ( ( X 1 X 2 ) | X 3 = x 3 ) = ( 2 + 3 x 3 3 ( 1 + 2 x 3 ) 2 3 ) . \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}.
} E ( ( X 1 X 2 ) X 3 = x 3 ) = 3 ( 1 + 2 x 3 ) 2 + 3 x 3 3 2 .
↑ Retour à l’exercice 13
We have
X = ( X 1 X 2 ) ∼ N 2 ( ( 2 3 ) , ( 4 2 2 3 ) ) . 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). X = ( X 1 X 2 ) ∼ N 2 ( ( 2 3 ) , ( 4 2 2 3 ) ) .
Thus
E ( X 1 ) = 2 , E ( X 2 ) = 3 , E(X_1)=2,
\qquad
E(X_2)=3, E ( X 1 ) = 2 , E ( X 2 ) = 3 ,
and
Var ( X 1 ) = 4 , Var ( X 2 ) = 3 , Cov ( X 1 , X 2 ) = 2. \operatorname{Var}(X_1)=4,
\qquad
\operatorname{Var}(X_2)=3,
\qquad
\operatorname{Cov}(X_1,X_2)=2. Var ( X 1 ) = 4 , Var ( X 2 ) = 3 , Cov ( X 1 , X 2 ) = 2.
A linear combination of a multivariate Normal vector is again Normal.
Write
Y = a ⊤ X − 3 , a = ( 3 1 ) . Y=a^\top X-3,
\qquad
a=
\begin{pmatrix}
3\\
1
\end{pmatrix}. Y = a ⊤ X − 3 , a = ( 3 1 ) .
Its expectation is
E ( Y ) = 3 E ( X 1 ) + E ( X 2 ) − 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} E ( Y ) = 3 E ( X 1 ) + E ( X 2 ) − 3 = 3 ( 2 ) + 3 − 3 = 6 .
Its variance is
Var ( Y ) = 3 2 Var ( X 1 ) + Var ( X 2 ) + 2 ( 3 ) ( 1 ) Cov ( X 1 , X 2 ) = 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} Var ( Y ) = 3 2 Var ( X 1 ) + Var ( X 2 ) + 2 ( 3 ) ( 1 ) Cov ( X 1 , X 2 ) = 9 ( 4 ) + 3 + 6 ( 2 ) = 51 .
Equivalently, in matrix form,
Var ( Y ) = a ⊤ Σ a = ( 3 1 ) ( 4 2 2 3 ) ( 3 1 ) = 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. Var ( Y ) = a ⊤ Σ a = ( 3 1 ) ( 4 2 2 3 ) ( 3 1 ) = 51.
Therefore
Y ∼ N ( 6 , 51 ) . \boxed{
Y\sim N(6,51).
} Y ∼ N ( 6 , 51 ) .
For a bivariate Normal vector, the conditional distribution is again Normal.
Here we condition on X 1 X_1 X 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. μ 1 = 2 , μ 2 = 3 , σ 11 = 4 , σ 22 = 3 , σ 12 = σ 21 = 2.
The conditional mean is
E ( X 2 ∣ X 1 = x 1 ) = μ 2 + σ 21 σ 11 ( x 1 − μ 1 ) = 3 + 2 4 ( x 1 − 2 ) = 3 + 1 2 ( x 1 − 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} E ( X 2 ∣ X 1 = x 1 ) = μ 2 + σ 11 σ 21 ( x 1 − μ 1 ) = 3 + 4 2 ( x 1 − 2 ) = 3 + 2 1 ( x 1 − 2 ) .
The conditional variance is
Var ( X 2 ∣ X 1 = x 1 ) = σ 22 − σ 21 σ 12 σ 11 = 3 − 2 ⋅ 2 4 = 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} Var ( X 2 ∣ X 1 = x 1 ) = σ 22 − σ 11 σ 21 σ 12 = 3 − 4 2 ⋅ 2 = 2 .
Hence
X 2 ∣ X 1 = x 1 ∼ N ( 3 + 1 2 ( x 1 − 2 ) , 2 ) . \boxed{
X_2\mid X_1=x_1
\sim
N\!\left(
3+\frac12(x_1-2),
\;2
\right).
} X 2 ∣ X 1 = x 1 ∼ N ( 3 + 2 1 ( x 1 − 2 ) , 2 ) .
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}, conditional mean = old mean + link with the known variable × 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}. conditional variance = old variance − uncertainty explained by the known variable .
↑ Retour à l’exercice 16
The unknown quantity is the model parameter θ \theta θ . The observed information is the sample X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n .
Because the density has two pieces,
E ( X ) = ∫ 0 θ x 1 3 θ d x + ∫ θ 21 x 2 3 ( 21 − θ ) d x . E(X)
=
\int_0^\theta x\frac{1}{3\theta}\,dx
+
\int_\theta^{21}x\frac{2}{3(21-\theta)}\,dx. E ( X ) = ∫ 0 θ x 3 θ 1 d x + ∫ θ 21 x 3 ( 21 − θ ) 2 d x .
The first term is
1 3 θ [ x 2 2 ] 0 θ = θ 6 . \frac{1}{3\theta}
\left[\frac{x^2}{2}\right]_0^\theta
=
\frac{\theta}{6}. 3 θ 1 [ 2 x 2 ] 0 θ = 6 θ .
For the second term,
2 3 ( 21 − θ ) [ x 2 2 ] θ 21 = 441 − θ 2 3 ( 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}. 3 ( 21 − θ ) 2 [ 2 x 2 ] θ 21 = 3 ( 21 − θ ) 441 − θ 2 = 3 21 + θ .
Hence
E ( X ) = 7 + θ 2 . \boxed{
E(X)=7+\frac{\theta}{2}
}. E ( X ) = 7 + 2 θ .
With one unknown parameter, the first-moment equation is
E ( X ) = X ˉ . E(X)=\bar X. E ( X ) = X ˉ .
Therefore
7 + θ ^ M M 2 = X ˉ , 7+\frac{\hat\theta_{\mathrm{MM}}}{2}
=
\bar X, 7 + 2 θ ^ MM = X ˉ ,
so
θ ^ M M = 2 ( X ˉ − 7 ) . \boxed{
\hat\theta_{\mathrm{MM}}
=
2(\bar X-7)
}. θ ^ MM = 2 ( X ˉ − 7 ) .
By definition,
B ( θ ^ M M ) = E ( θ ^ M M ) − θ . B(\hat\theta_{\mathrm{MM}})
=
E(\hat\theta_{\mathrm{MM}})-\theta. B ( θ ^ MM ) = E ( θ ^ MM ) − θ .
Using E ( X ˉ ) = E ( X ) E(\bar X)=E(X) E ( X ˉ ) = E ( X ) ,
E ( θ ^ M M ) = 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} E ( θ ^ MM ) = 2 ( E ( X ˉ ) − 7 ) = 2 ( 7 + 2 θ − 7 ) = θ .
Thus
B ( θ ^ M M ) = 0 . \boxed{
B(\hat\theta_{\mathrm{MM}})=0
}. B ( θ ^ MM ) = 0 .
The method-of-moments estimator is unbiased.
Let
n 1 ( θ ) = # { i : x i ∈ [ 0 , θ ] } , n_1(\theta)
=
\#\{i:x_i\in[0,\theta]\}, n 1 ( θ ) = # { i : x i ∈ [ 0 , θ ]} ,
and
n 2 ( θ ) = # { i : x i ∈ ( θ , 21 ] } . n_2(\theta)
=
\#\{i:x_i\in(\theta,21]\}. n 2 ( θ ) = # { i : x i ∈ ( θ , 21 ]} .
Then
n 1 ( θ ) + n 2 ( θ ) = n . n_1(\theta)+n_2(\theta)=n. n 1 ( θ ) + n 2 ( θ ) = n .
The likelihood is
L ( θ ) = ( 1 3 θ ) n 1 ( θ ) ( 2 3 ( 21 − θ ) ) n 2 ( θ ) . \boxed{
L(\theta)
=
\left(\frac{1}{3\theta}\right)^{n_1(\theta)}
\left(\frac{2}{3(21-\theta)}\right)^{n_2(\theta)}
}. L ( θ ) = ( 3 θ 1 ) n 1 ( θ ) ( 3 ( 21 − θ ) 2 ) n 2 ( θ ) .
Hence
ℓ ( θ ) = − n 1 ( θ ) ln ( 3 θ ) − n 2 ( θ ) ln ( 3 2 ( 21 − θ ) ) . \boxed{
\ell(\theta)
=
-n_1(\theta)\ln(3\theta)
-
n_2(\theta)
\ln\!\left(\frac32(21-\theta)\right)
}. ℓ ( θ ) = − n 1 ( θ ) ln ( 3 θ ) − n 2 ( θ ) ln ( 2 3 ( 21 − θ ) ) .
The important point is that n 1 ( θ ) n_1(\theta) n 1 ( θ ) and n 2 ( θ ) n_2(\theta) n 2 ( θ ) change whenever θ \theta θ crosses one of the observations x i x_i x i . Therefore the log-likelihood is not one smooth expression over the whole parameter domain.
So the usual shortcut
ℓ ′ ( θ ) = 0 \ell'(\theta)=0 ℓ ′ ( θ ) = 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 ) = ∫ 0 1 x ( α + 1 ) x α d x = ( α + 1 ) ∫ 0 1 x α + 1 d x = α + 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}
}. E ( X ) = ∫ 0 1 x ( α + 1 ) x α d x = ( α + 1 ) ∫ 0 1 x α + 1 d x = α + 2 α + 1 .
The second moment is
E ( X 2 ) = ( α + 1 ) ∫ 0 1 x α + 2 d x = α + 1 α + 3 . E(X^2)
=
(\alpha+1)\int_0^1x^{\alpha+2}\,dx
=
\boxed{
\frac{\alpha+1}{\alpha+3}
}. E ( X 2 ) = ( α + 1 ) ∫ 0 1 x α + 2 d x = α + 3 α + 1 .
Thus
V ( X ) = α + 1 α + 3 − ( α + 1 α + 2 ) 2 . \boxed{
V(X)
=
\frac{\alpha+1}{\alpha+3}
-
\left(\frac{\alpha+1}{\alpha+2}\right)^2
}. V ( X ) = α + 3 α + 1 − ( α + 2 α + 1 ) 2 .
For the method of moments,
α ^ M M + 1 α ^ M M + 2 = X ˉ . \frac{\hat\alpha_{\mathrm{MM}}+1}
{\hat\alpha_{\mathrm{MM}}+2}
=
\bar X. α ^ MM + 2 α ^ MM + 1 = X ˉ .
Solving for α ^ M M \hat\alpha_{\mathrm{MM}} α ^ MM ,
α ^ M M ( 1 − X ˉ ) = 2 X ˉ − 1 , \hat\alpha_{\mathrm{MM}}(1-\bar X)
=
2\bar X-1, α ^ MM ( 1 − X ˉ ) = 2 X ˉ − 1 ,
so
α ^ M M = 2 X ˉ − 1 1 − X ˉ . \boxed{
\hat\alpha_{\mathrm{MM}}
=
\frac{2\bar X-1}{1-\bar X}
}. α ^ MM = 1 − X ˉ 2 X ˉ − 1 .
For an iid sample,
L ( α ) = ∏ i = 1 n ( α + 1 ) x i α = ( α + 1 ) n ∏ i = 1 n x i α . L(\alpha)
=
\prod_{i=1}^n(\alpha+1)x_i^\alpha
=
(\alpha+1)^n\prod_{i=1}^n x_i^\alpha. L ( α ) = i = 1 ∏ n ( α + 1 ) x i α = ( α + 1 ) n i = 1 ∏ n x i α .
Therefore
ℓ ( α ) = n ln ( α + 1 ) + α ∑ i = 1 n ln x i . \boxed{
\ell(\alpha)
=
n\ln(\alpha+1)
+
\alpha\sum_{i=1}^n\ln x_i
}. ℓ ( α ) = n ln ( α + 1 ) + α i = 1 ∑ n ln x i .
Differentiate:
ℓ ′ ( α ) = n α + 1 + ∑ i = 1 n ln x i . \ell'(\alpha)
=
\frac{n}{\alpha+1}
+
\sum_{i=1}^n\ln x_i. ℓ ′ ( α ) = α + 1 n + i = 1 ∑ n ln x i .
Set the derivative equal to zero:
n α ^ + 1 = − ∑ i = 1 n ln x i . \frac{n}{\hat\alpha+1}
=
-\sum_{i=1}^n\ln x_i. α ^ + 1 n = − i = 1 ∑ n ln x i .
Hence
α ^ M L E = − 1 − n ∑ i = 1 n ln X i . \boxed{
\hat\alpha_{\mathrm{MLE}}
=
-1-
\frac{n}{\sum_{i=1}^n\ln X_i}
}. α ^ MLE = − 1 − ∑ i = 1 n ln X i n .
Moreover,
ℓ ′ ′ ( α ) = − n ( α + 1 ) 2 < 0 , \ell''(\alpha)
=
-\frac{n}{(\alpha+1)^2}<0, ℓ ′′ ( α ) = − ( α + 1 ) 2 n < 0 ,
so the stationary point is indeed a maximum.
We want
B ( α ^ M L E ) = E ( α ^ M L E ) − α . B(\hat\alpha_{\mathrm{MLE}})
=
E(\hat\alpha_{\mathrm{MLE}})-\alpha. B ( α ^ MLE ) = E ( α ^ MLE ) − α .
The logarithms in the estimator suggest the transformation
Y = − ln X . Y=-\ln X. Y = − ln X .
For y ≥ 0 y\ge0 y ≥ 0 ,
F Y ( y ) = P ( Y ≤ y ) = P ( − ln X ≤ y ) = P ( X ≥ e − y ) = ∫ e − y 1 ( α + 1 ) x α d x = 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} F Y ( y ) = P ( Y ≤ y ) = P ( − ln X ≤ y ) = P ( X ≥ e − y ) = ∫ e − y 1 ( α + 1 ) x α d x = 1 − e − ( α + 1 ) y .
Therefore
f Y ( y ) = ( α + 1 ) e − ( α + 1 ) y , y ≥ 0. f_Y(y)
=
(\alpha+1)e^{-(\alpha+1)y},
\qquad y\ge0. f Y ( y ) = ( α + 1 ) e − ( α + 1 ) y , y ≥ 0.
Using the scale parametrization of the course,
Y ∼ E x p o ( β = 1 α + 1 ) . \boxed{
Y\sim Expo\left(\beta=\frac{1}{\alpha+1}\right)
}. Y ∼ E x p o ( β = α + 1 1 ) .
Now define
U = ∑ i = 1 n Y i = − ∑ i = 1 n ln X i . U
=
\sum_{i=1}^nY_i
=
-\sum_{i=1}^n\ln X_i. U = i = 1 ∑ n Y i = − i = 1 ∑ n ln X i .
A sum of n n n iid exponentials with scale β \beta β is Gamma distributed:
U ∼ G a m m a ( n , 1 α + 1 ) . \boxed{
U
\sim
Gamma\left(n,\frac{1}{\alpha+1}\right)
}. U ∼ G amma ( n , α + 1 1 ) .
The MLE becomes
α ^ M L E = − 1 + n U . \hat\alpha_{\mathrm{MLE}}
=
-1+\frac{n}{U}. α ^ MLE = − 1 + U n .
For U ∼ G a m m a ( n , β ) U\sim Gamma(n,\beta) U ∼ G amma ( n , β ) , n > 1 n>1 n > 1 ,
E ( 1 U ) = 1 ( n − 1 ) β . E\left(\frac1U\right)
=
\frac{1}{(n-1)\beta}. E ( U 1 ) = ( n − 1 ) β 1 .
Since
β = 1 α + 1 , \beta=\frac1{\alpha+1}, β = α + 1 1 ,
we get
E ( 1 U ) = α + 1 n − 1 . E\left(\frac1U\right)
=
\frac{\alpha+1}{n-1}. E ( U 1 ) = n − 1 α + 1 .
Hence
E ( α ^ M L E ) = − 1 + n α + 1 n − 1 = n α + 1 n − 1 . \begin{aligned}
E(\hat\alpha_{\mathrm{MLE}})
&=
-1+
n\frac{\alpha+1}{n-1}\\
&=
\frac{n\alpha+1}{n-1}.
\end{aligned} E ( α ^ MLE ) = − 1 + n n − 1 α + 1 = n − 1 n α + 1 .
Finally,
B ( α ^ M L E ) = α + 1 n − 1 . \boxed{
B(\hat\alpha_{\mathrm{MLE}})
=
\frac{\alpha+1}{n-1}
}. B ( α ^ MLE ) = n − 1 α + 1 .
The estimator is biased for finite n n n , but
B ( α ^ M L E ) ⟶ 0 when n → ∞ . B(\hat\alpha_{\mathrm{MLE}})
\longrightarrow0
\qquad\text{when }n\to\infty. B ( α ^ MLE ) ⟶ 0 when n → ∞.
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) E ( X ) . MLE uses the full density through the likelihood. The transformation Y = − ln X Y=-\ln X Y = − 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 ( x i ; μ , σ ) = 1 σ 2 π exp ( − ( x i − μ ) 2 2 σ 2 ) . f(x_i;\mu,\sigma)
=
\frac{1}{\sigma\sqrt{2\pi}}
\exp\!\left(
-\frac{(x_i-\mu)^2}{2\sigma^2}
\right). f ( x i ; μ , σ ) = σ 2 π 1 exp ( − 2 σ 2 ( x i − μ ) 2 ) .
By independence,
L ( μ , σ 2 ) = ( 1 σ 2 π ) n exp [ − 1 2 σ 2 ∑ i = 1 n ( x i − μ ) 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]. L ( μ , σ 2 ) = ( σ 2 π 1 ) n exp [ − 2 σ 2 1 i = 1 ∑ n ( x i − μ ) 2 ] .
Thus
ℓ ( μ , σ 2 ) = − n 2 ln ( 2 π σ 2 ) − 1 2 σ 2 ∑ i = 1 n ( x i − μ ) 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
}. ℓ ( μ , σ 2 ) = − 2 n ln ( 2 π σ 2 ) − 2 σ 2 1 i = 1 ∑ n ( x i − μ ) 2 .
Differentiate with respect to μ \mu μ :
∂ ℓ ∂ μ = 1 σ 2 ∑ i = 1 n ( x i − μ ) . \frac{\partial\ell}{\partial\mu}
=
\frac{1}{\sigma^2}
\sum_{i=1}^n(x_i-\mu). ∂ μ ∂ ℓ = σ 2 1 i = 1 ∑ n ( x i − μ ) .
Setting this equal to zero gives
μ ^ M L E = X ˉ . \boxed{
\hat\mu_{\mathrm{MLE}}
=
\bar X
}. μ ^ MLE = X ˉ .
Since
E ( X ˉ ) = μ , E(\bar X)=\mu, E ( X ˉ ) = μ ,
we have
B ( μ ^ ) = 0 . \boxed{
B(\hat\mu)=0
}. B ( μ ^ ) = 0 .
Now differentiate with respect to σ 2 \sigma^2 σ 2 :
∂ ℓ ∂ σ 2 = − n 2 σ 2 + 1 2 σ 4 ∑ i = 1 n ( x i − μ ) 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. ∂ σ 2 ∂ ℓ = − 2 σ 2 n + 2 σ 4 1 i = 1 ∑ n ( x i − μ ) 2 .
After substituting μ ^ = X ˉ \hat\mu=\bar X μ ^ = X ˉ , the solution is
σ ^ M L E 2 = 1 n ∑ i = 1 n ( X i − X ˉ ) 2 . \boxed{
\hat\sigma^2_{\mathrm{MLE}}
=
\frac1n
\sum_{i=1}^n(X_i-\bar X)^2
}. σ ^ MLE 2 = n 1 i = 1 ∑ n ( X i − X ˉ ) 2 .
Compare this with the unbiased sample variance
S 2 = 1 n − 1 ∑ i = 1 n ( X i − X ˉ ) 2 . S^2
=
\frac1{n-1}
\sum_{i=1}^n(X_i-\bar X)^2. S 2 = n − 1 1 i = 1 ∑ n ( X i − X ˉ ) 2 .
Therefore
σ ^ M L E 2 = n − 1 n S 2 . \hat\sigma^2_{\mathrm{MLE}}
=
\frac{n-1}{n}S^2. σ ^ MLE 2 = n n − 1 S 2 .
Because E ( S 2 ) = σ 2 E(S^2)=\sigma^2 E ( S 2 ) = σ 2 ,
E ( σ ^ M L E 2 ) = n − 1 n σ 2 . E(\hat\sigma^2_{\mathrm{MLE}})
=
\frac{n-1}{n}\sigma^2. E ( σ ^ MLE 2 ) = n n − 1 σ 2 .
Hence
B ( σ ^ M L E 2 ) = − σ 2 n . \boxed{
B(\hat\sigma^2_{\mathrm{MLE}})
=
-\frac{\sigma^2}{n}
}. B ( σ ^ MLE 2 ) = − n σ 2 .
This explains why the usual unbiased sample variance uses 1 / ( n − 1 ) 1/(n-1) 1/ ( n − 1 ) rather than the MLE factor 1 / n 1/n 1/ n .
This part concerns the estimator of the mean , not the estimator of the variance.
Since
X 1 , … , X n ∼ i i d N ( μ , σ 2 ) , X_1,\ldots,X_n
\overset{iid}{\sim}
N(\mu,\sigma^2), X 1 , … , X n ∼ ii d N ( μ , σ 2 ) ,
their average is exactly Normal:
μ ^ = X ˉ ∼ N ( μ , σ 2 n ) . \boxed{
\hat\mu=\bar X
\sim
N\left(\mu,\frac{\sigma^2}{n}\right)
}. μ ^ = X ˉ ∼ N ( μ , n σ 2 ) .
Therefore
V ( μ ^ ) = σ 2 n . \boxed{
V(\hat\mu)
=
\frac{\sigma^2}{n}
}. V ( μ ^ ) = n σ 2 .
From part (b),
B ( μ ^ ) = 0. B(\hat\mu)=0. B ( μ ^ ) = 0.
Using
MSE ( μ ^ ) = V ( μ ^ ) + B ( μ ^ ) 2 , \operatorname{MSE}(\hat\mu)
=
V(\hat\mu)+B(\hat\mu)^2, MSE ( μ ^ ) = V ( μ ^ ) + B ( μ ^ ) 2 ,
we obtain
MSE ( μ ^ ) = σ 2 n . \boxed{
\operatorname{MSE}(\hat\mu)
=
\frac{\sigma^2}{n}
}. MSE ( μ ^ ) = n σ 2 .
The 1 / n 1/n 1/ n factor quantifies the gain from increasing the sample size: the sampling variability of X ˉ \bar X X ˉ decreases as n n n grows.
Réflexe de l'exercice 4
For a Normal population with both parameters unknown,
μ ^ M L E = X ˉ \hat\mu_{\mathrm{MLE}}=\bar X μ ^ MLE = X ˉ
is unbiased, whereas
σ ^ M L E 2 = 1 n ∑ i ( X i − X ˉ ) 2 \hat\sigma^2_{\mathrm{MLE}}
=
\frac1n\sum_i(X_i-\bar X)^2 σ ^ MLE 2 = n 1 i ∑ ( X i − X ˉ ) 2
is biased. Do not confuse this MLE with the unbiased sample variance S 2 S^2 S 2 , which uses 1 / ( n − 1 ) 1/(n-1) 1/ ( n − 1 ) .
↑ Retour à l’exercice 4
The density is that of a Gamma random variable with shape 2 2 2 and scale θ \theta θ :
X i ∼ G a m m a ( 2 , θ ) . X_i\sim Gamma(2,\theta). X i ∼ G amma ( 2 , θ ) .
For this parametrization,
E ( X i ) = 2 θ , V ( X i ) = 2 θ 2 . E(X_i)=2\theta,
\qquad
V(X_i)=2\theta^2. E ( X i ) = 2 θ , V ( X i ) = 2 θ 2 .
With one unknown parameter, match the first theoretical moment with the sample mean:
E ( X ) = X ˉ . E(X)=\bar X. E ( X ) = X ˉ .
Since
E ( X ) = 2 θ , E(X)=2\theta, E ( X ) = 2 θ ,
we obtain
2 θ ^ M M = X ˉ , 2\hat\theta_{\mathrm{MM}}=\bar X, 2 θ ^ MM = X ˉ ,
hence
θ ^ M M = X ˉ 2 . \boxed{
\hat\theta_{\mathrm{MM}}
=
\frac{\bar X}{2}
}. θ ^ MM = 2 X ˉ .
For an iid sample,
L ( θ ) = ∏ i = 1 n [ 1 Γ ( 2 ) x i θ 2 e − x i / θ ] . L(\theta)
=
\prod_{i=1}^n
\left[
\frac{1}{\Gamma(2)}
\frac{x_i}{\theta^2}
e^{-x_i/\theta}
\right]. L ( θ ) = i = 1 ∏ n [ Γ ( 2 ) 1 θ 2 x i e − x i / θ ] .
Equivalently,
L ( θ ) = ( 1 Γ ( 2 ) ) n ( ∏ i = 1 n x i ) θ − 2 n exp ( − 1 θ ∑ i = 1 n x i ) . 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). L ( θ ) = ( Γ ( 2 ) 1 ) n ( i = 1 ∏ n x i ) θ − 2 n exp ( − θ 1 i = 1 ∑ n x i ) .
Therefore,
ℓ ( θ ) = − n ln Γ ( 2 ) + ∑ i = 1 n ln x i − 2 n ln θ − 1 θ ∑ i = 1 n x i . \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. ℓ ( θ ) = − n ln Γ ( 2 ) + i = 1 ∑ n ln x i − 2 n ln θ − θ 1 i = 1 ∑ n x i .
Differentiate with respect to θ \theta θ :
ℓ ′ ( θ ) = − 2 n θ + 1 θ 2 ∑ i = 1 n x i . \ell'(\theta)
=
-\frac{2n}{\theta}
+
\frac{1}{\theta^2}
\sum_{i=1}^n x_i. ℓ ′ ( θ ) = − θ 2 n + θ 2 1 i = 1 ∑ n x i .
Setting ℓ ′ ( θ ) = 0 \ell'(\theta)=0 ℓ ′ ( θ ) = 0 gives
− 2 n θ + ∑ i = 1 n x i = 0 , -2n\theta+\sum_{i=1}^n x_i=0, − 2 n θ + i = 1 ∑ n x i = 0 ,
so
θ ^ M L E = 1 2 n ∑ i = 1 n X i = X ˉ 2 . \boxed{
\hat\theta_{\mathrm{MLE}}
=
\frac{1}{2n}\sum_{i=1}^n X_i
=
\frac{\bar X}{2}
}. θ ^ MLE = 2 n 1 i = 1 ∑ n X i = 2 X ˉ .
Thus,
θ ^ M M = θ ^ M L E . \boxed{
\hat\theta_{\mathrm{MM}}
=
\hat\theta_{\mathrm{MLE}}
}. θ ^ MM = θ ^ MLE .
Because the X i X_i X i are independent and
X i ∼ G a m m a ( 2 , θ ) , X_i\sim Gamma(2,\theta), X i ∼ G amma ( 2 , θ ) ,
their sum satisfies
∑ i = 1 n X i ∼ G a m m a ( 2 n , θ ) . \boxed{
\sum_{i=1}^nX_i
\sim
Gamma(2n,\theta)
}. i = 1 ∑ n X i ∼ G amma ( 2 n , θ ) .
Since
θ ^ = 1 2 n ∑ i = 1 n X i , \hat\theta
=
\frac{1}{2n}\sum_{i=1}^nX_i, θ ^ = 2 n 1 i = 1 ∑ n X i ,
the estimator has distribution
θ ^ ∼ G a m m a ( 2 n , θ 2 n ) . \boxed{
\hat\theta
\sim
Gamma\left(2n,\frac{\theta}{2n}\right)
}. θ ^ ∼ G amma ( 2 n , 2 n θ ) .
Also,
E ( ∑ i = 1 n X i ) = 2 n θ , V ( ∑ i = 1 n X i ) = 2 n θ 2 . E\left(\sum_{i=1}^nX_i\right)
=
2n\theta,
\qquad
V\left(\sum_{i=1}^nX_i\right)
=
2n\theta^2. E ( i = 1 ∑ n X i ) = 2 n θ , V ( i = 1 ∑ n X i ) = 2 n θ 2 .
Therefore,
E ( θ ^ ) = 1 2 n ( 2 n θ ) = θ , E(\hat\theta)
=
\frac{1}{2n}(2n\theta)
=
\boxed{\theta}, E ( θ ^ ) = 2 n 1 ( 2 n θ ) = θ ,
so θ ^ \hat\theta θ ^ is unbiased, and
V ( θ ^ ) = 1 ( 2 n ) 2 ( 2 n θ 2 ) = θ 2 2 n . V(\hat\theta)
=
\frac{1}{(2n)^2}(2n\theta^2)
=
\boxed{
\frac{\theta^2}{2n}
}. V ( θ ^ ) = ( 2 n ) 2 1 ( 2 n θ 2 ) = 2 n θ 2 .
Finally,
MSE ( θ ^ ) = V ( θ ^ ) + B i a s ( θ ^ ) 2 . \operatorname{MSE}(\hat\theta)
=
V(\hat\theta)+Bias(\hat\theta)^2. MSE ( θ ^ ) = V ( θ ^ ) + B ia s ( θ ^ ) 2 .
Since the bias is zero,
MSE ( θ ^ ) = θ 2 2 n . \boxed{
\operatorname{MSE}(\hat\theta)
=
\frac{\theta^2}{2n}
}. MSE ( θ ^ ) = 2 n θ 2 .
For sufficiently large n n n ,
θ ^ ≈ N ( θ , θ 2 2 n ) . \hat\theta
\approx
N\left(
\theta,
\frac{\theta^2}{2n}
\right). θ ^ ≈ N ( θ , 2 n θ 2 ) .
Hence
Z = θ ^ − θ θ / 2 n ≈ N ( 0 , 1 ) . Z
=
\frac{\hat\theta-\theta}
{\theta/\sqrt{2n}}
\approx N(0,1). Z = θ / 2 n θ ^ − θ ≈ N ( 0 , 1 ) .
The central 95 % 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. P ( − 1.96 ≤ Z ≤ 1.96 ) ≈ 0.95.
Thus,
P ( − 1.96 ≤ θ ^ − θ θ / 2 n ≤ 1.96 ) ≈ 0.95 , P\left(
-1.96
\le
\frac{\hat\theta-\theta}{\theta/\sqrt{2n}}
\le
1.96
\right)
\approx
0.95, P ( − 1.96 ≤ θ / 2 n θ ^ − θ ≤ 1.96 ) ≈ 0.95 ,
which gives
P ( θ − 1.96 θ 2 n ≤ θ ^ ≤ θ + 1.96 θ 2 n ) ≈ 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
}. P ( θ − 1.96 2 n θ ≤ θ ^ ≤ θ + 1.96 2 n θ ) ≈ 0.95 .
Therefore the interval is
[ θ − 1.96 θ 2 n , θ + 1.96 θ 2 n ] . \boxed{
\left[
\theta-
1.96\frac{\theta}{\sqrt{2n}},
\;
\theta+
1.96\frac{\theta}{\sqrt{2n}}
\right]
}. [ θ − 1.96 2 n θ , θ + 1.96 2 n θ ] .
This interval cannot be computed numerically in practice , because it still contains the unknown parameter θ \theta θ .
Réflexe de l'exercice 6
X i ∼ G a m m a ( 2 , θ ) ⇒ θ ^ = X ˉ 2 X_i\sim Gamma(2,\theta)
\Rightarrow
\hat\theta=\frac{\bar X}{2} X i ∼ G amma ( 2 , θ ) ⇒ θ ^ = 2 X ˉ
Here MM and MLE give the same estimator. Then study θ ^ \hat\theta θ ^ through the distribution of ∑ i X i \sum_i X_i ∑ i X i . For part (d), 95 % 95\% 95% corresponds to the central Normal interval [ − 1.96 , 1.96 ] [-1.96,1.96] [ − 1.96 , 1.96 ] .
↑ Retour à l’exercice 6
For
X ∼ U ( 0 , θ ) , X\sim U(0,\theta), X ∼ U ( 0 , θ ) ,
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} f ( x ; θ ) = ⎩ ⎨ ⎧ θ 1 , 0 , 0 ≤ x ≤ θ , otherwise .
For an observed sample,
L ( θ ) = { 1 θ n , θ ≥ max ( x 1 , … , x n ) , 0 , θ < max ( x 1 , … , x n ) . 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} L ( θ ) = ⎩ ⎨ ⎧ θ n 1 , 0 , θ ≥ max ( x 1 , … , x n ) , θ < max ( x 1 , … , x n ) .
The likelihood is zero if θ \theta θ is smaller than an observed value. On the admissible region, 1 / θ n 1/\theta^n 1/ θ n decreases as θ \theta θ increases. Therefore the maximum occurs at the smallest admissible value:
θ ^ M L E = max ( X 1 , … , X n ) . \boxed{
\hat\theta_{\mathrm{MLE}}
=
\max(X_1,\ldots,X_n)
}. θ ^ MLE = max ( X 1 , … , X n ) .
This is an example where the MLE occurs at a boundary , not at a point satisfying ℓ ′ ( θ ) = 0 \ell'(\theta)=0 ℓ ′ ( θ ) = 0 .
For the method of moments,
E ( X ) = θ 2 . E(X)=\frac{\theta}{2}. E ( X ) = 2 θ .
Matching E ( X ) E(X) E ( X ) with X ˉ \bar X X ˉ gives
θ ~ M M = 2 X ˉ . \boxed{
\tilde\theta_{\mathrm{MM}}
=
2\bar X
}. θ ~ MM = 2 X ˉ .
Let
Y = max ( X 1 , … , X n ) . Y=\max(X_1,\ldots,X_n). Y = max ( X 1 , … , X n ) .
For 0 ≤ y ≤ θ 0\le y\le\theta 0 ≤ y ≤ θ ,
P ( Y ≤ y ) = P ( X 1 ≤ y , … , X n ≤ y ) = ∏ i = 1 n P ( X i ≤ 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} P ( Y ≤ y ) = P ( X 1 ≤ y , … , X n ≤ y ) = i = 1 ∏ n P ( X i ≤ y ) = ( θ y ) n .
Thus
f Y ( y ) = n y n − 1 θ n , 0 ≤ y ≤ θ . f_Y(y)
=
\frac{n y^{n-1}}{\theta^n},
\qquad 0\le y\le\theta. f Y ( y ) = θ n n y n − 1 , 0 ≤ y ≤ θ .
This yields
E ( θ ^ ) = n n + 1 θ \boxed{
E(\hat\theta)
=
\frac{n}{n+1}\theta
} E ( θ ^ ) = n + 1 n θ
and
V ( θ ^ ) = n ( n + 2 ) ( n + 1 ) 2 θ 2 . \boxed{
V(\hat\theta)
=
\frac{n}{(n+2)(n+1)^2}\theta^2
}. V ( θ ^ ) = ( n + 2 ) ( n + 1 ) 2 n θ 2 .
Therefore
B ( θ ^ ) = − θ n + 1 . \boxed{
B(\hat\theta)
=
-\frac{\theta}{n+1}
}. B ( θ ^ ) = − n + 1 θ .
For the method-of-moments estimator,
θ ~ = 2 X ˉ . \tilde\theta=2\bar X. θ ~ = 2 X ˉ .
Since a Uniform U ( 0 , θ ) U(0,\theta) U ( 0 , θ ) variable satisfies
E ( X ) = θ 2 , V ( X ) = θ 2 12 , E(X)=\frac{\theta}{2},
\qquad
V(X)=\frac{\theta^2}{12}, E ( X ) = 2 θ , V ( X ) = 12 θ 2 ,
we obtain
E ( θ ~ ) = θ \boxed{
E(\tilde\theta)=\theta
} E ( θ ~ ) = θ
and
V ( θ ~ ) = 4 V ( X ˉ ) = θ 2 3 n . \boxed{
V(\tilde\theta)
=
4V(\bar X)
=
\frac{\theta^2}{3n}
}. V ( θ ~ ) = 4 V ( X ˉ ) = 3 n θ 2 .
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 MSE ( θ ^ ) = V ( θ ^ ) + B ( θ ^ ) 2
with
MSE ( θ ~ ) = V ( θ ~ ) , \operatorname{MSE}(\tilde\theta)
=
V(\tilde\theta), MSE ( θ ~ ) = V ( θ ~ ) ,
because θ ~ \tilde\theta θ ~ is unbiased.
For the method-of-moments estimator,
MSE ( θ ~ ) = θ 2 3 n . \boxed{
\operatorname{MSE}(\tilde\theta)
=
\frac{\theta^2}{3n}
}. MSE ( θ ~ ) = 3 n θ 2 .
For the MLE,
MSE ( θ ^ ) = 2 θ 2 ( n + 1 ) ( n + 2 ) . \boxed{
\operatorname{MSE}(\hat\theta)
=
\frac{2\theta^2}{(n+1)(n+2)}
}. MSE ( θ ^ ) = ( n + 1 ) ( n + 2 ) 2 θ 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 = 1 n=1 n = 1 and n = 2 n=2 n = 2 , and the MLE has the smaller MSE for integer n ≥ 3 n\ge3 n ≥ 3 .
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}
} 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 ( X i ) = λ , V ( X i ) = λ 2 . E(X_i)=\lambda,\qquad V(X_i)=\lambda^2. E ( X i ) = λ , V ( X i ) = λ 2 .
For an observed sample ( x 1 , … , x n ) (x_1,\ldots,x_n) ( x 1 , … , x n ) , the likelihood is the product of densities:
L ( λ ) = ∏ i = 1 n 1 λ e − x i / λ = λ − n exp ( − 1 λ ∑ i = 1 n x i ) . \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} L ( λ ) = i = 1 ∏ n λ 1 e − x i / λ = λ − n exp ( − λ 1 i = 1 ∑ n x i ) .
Taking the logarithm and differentiating with respect to λ \lambda λ :
ℓ ( λ ) = − n ln λ − 1 λ ∑ i = 1 n x i , \ell(\lambda)=-n\ln\lambda-\frac1\lambda\sum_{i=1}^n x_i, ℓ ( λ ) = − n ln λ − λ 1 i = 1 ∑ n x i ,
ℓ ′ ( λ ) = − n λ + ∑ i x i λ 2 . \ell'(\lambda)=-\frac n\lambda+\frac{\sum_i x_i}{\lambda^2}. ℓ ′ ( λ ) = − λ n + λ 2 ∑ i x i .
Solve ℓ ′ ( λ ) = 0 \ell'(\lambda)=0 ℓ ′ ( λ ) = 0 :
− n λ + ∑ i = 1 n x i = 0. -n\lambda+\sum_{i=1}^n x_i=0. − nλ + i = 1 ∑ n x i = 0.
This stationary point is a maximum, so the estimator (before observation) and observed estimate are respectively
λ ^ M L E = X ˉ = 1 n ∑ i = 1 n X i , λ ^ o b s = x ˉ . \boxed{\hat\lambda_{\mathrm{MLE}}=\bar X=\frac1n\sum_{i=1}^nX_i},
\qquad
\hat\lambda_{\mathrm{obs}}=\bar x. λ ^ MLE = X ˉ = n 1 i = 1 ∑ n X i , λ ^ obs = x ˉ .
The bias evaluates whether the estimator is systematically shifted away from the unknown parameter:
Bias ( λ ^ ) = E ( λ ^ ) − λ = 1 n ∑ i = 1 n E ( X i ) − λ = λ − λ = 0. \begin{aligned}
\operatorname{Bias}(\hat\lambda)
&=E(\hat\lambda)-\lambda\\
&=\frac1n\sum_{i=1}^nE(X_i)-\lambda\\
&=\lambda-\lambda=0.
\end{aligned} Bias ( λ ^ ) = E ( λ ^ ) − λ = n 1 i = 1 ∑ n E ( X i ) − λ = λ − λ = 0.
Thus λ ^ \hat\lambda λ ^ is unbiased . Since the observations are independent,
V ( λ ^ ) = V ( 1 n ∑ i = 1 n X i ) = 1 n 2 ∑ i = 1 n V ( X i ) = λ 2 n . \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} V ( λ ^ ) = V ( n 1 i = 1 ∑ n X i ) = n 2 1 i = 1 ∑ n V ( X i ) = n λ 2 .
Finally,
MSE ( λ ^ ) = V ( λ ^ ) + Bias ( λ ^ ) 2 = λ 2 n . \operatorname{MSE}(\hat\lambda)
=V(\hat\lambda)+\operatorname{Bias}(\hat\lambda)^2
=\boxed{\frac{\lambda^2}{n}}. MSE ( λ ^ ) = V ( λ ^ ) + Bias ( λ ^ ) 2 = n λ 2 .
The estimator is centered on λ \lambda λ , and its variance (hence its MSE) decreases as the sample size increases.
The central limit theorem gives, for sufficiently large n n n ,
λ ^ = X ˉ ≈ N ( λ , λ 2 n ) . \hat\lambda=\bar X\approx N\left(\lambda,\frac{\lambda^2}{n}\right). λ ^ = X ˉ ≈ N ( λ , n λ 2 ) .
Standardize and keep the central 95 % 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. P ( − 1.96 ≤ λ / n λ ^ − λ ≤ 1.96 ) ≈ 0.95.
Because λ > 0 \lambda>0 λ > 0 and n = 100 n=100 n = 100 , the denominators below remain positive. Isolating the unknown parameter λ \lambda λ gives the interval in the official solution:
C I 95 % ( λ ) = [ 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]
}. C I 95% ( λ ) = [ 1 + 1.96/ n x ˉ , 1 − 1.96/ n x ˉ ] .
For n = 100 n=100 n = 100 ,
C I 95 % ( λ ) = [ x ˉ 1.196 , x ˉ 0.804 ] . \boxed{
CI_{95\%}(\lambda)=
\left[
\frac{\bar x}{1.196},
\frac{\bar x}{0.804}
\right]
}. C I 95% ( λ ) = [ 1.196 x ˉ , 0.804 x ˉ ] .
About the hint in the statement. It asks to replace the unknown population variance V ( X ) V(X) V ( X ) with the observed sample variance
s 2 = 1 n − 1 ∑ i = 1 n ( x i − x ˉ ) 2 . s^2=\frac1{n-1}\sum_{i=1}^n(x_i-\bar x)^2. s 2 = n − 1 1 i = 1 ∑ n ( x i − x ˉ ) 2 .
That alternative, using a plug-in standard error s / n s/\sqrt n s / n , leads to the usual large-sample Wald interval
C I 95 % , p l u g − i n ( λ ) ≈ [ x ˉ − 1.96 s 10 , x ˉ + 1.96 s 10 ] . \boxed{
CI_{95\%,\,\mathrm{plug\!-\!in}}(\lambda)
\approx
\left[
\bar x-1.96\frac{s}{10},
\bar x+1.96\frac{s}{10}
\right]
}. C I 95% , plug − in ( λ ) ≈ [ x ˉ − 1.96 10 s , x ˉ + 1.96 10 s ] .
The official correction instead uses the theoretical variance λ 2 \lambda^2 λ 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 x ˉ nor s s s is provided.
Interpretation: over repeated iid samples of this size, the chosen confidence-interval procedure covers the fixed parameter λ \lambda λ approximately 95 % 95\% 95% of the time.
↑ Retour à l’exercice 10
Model: X 1 , … , X 100 X_1,\ldots,X_{100} X 1 , … , X 100 are assumed iid N ( μ , σ 2 ) N(\mu,\sigma^2) N ( μ , σ 2 ) . Both population parameters are unknown, while x ˉ = 174 \bar x=174 x ˉ = 174 cm and s 2 = 11.7 2 = 136.89 s^2=11.7^2=136.89 s 2 = 11. 7 2 = 136.89 cm2 ^2 2 are observed.
We estimate the unknown population variance with S 2 S^2 S 2 . Because the population is Normal, the standardized sample mean follows Student’s distribution exactly:
T = X ˉ − μ S / n ∼ t n − 1 = t 99 . T=\frac{\bar X-\mu}{S/\sqrt n}\sim t_{n-1}=t_{99}. T = S / n X ˉ − μ ∼ t n − 1 = t 99 .
For α = 0.10 \alpha=0.10 α = 0.10 , the two-sided critical quantile is t 99 , 0.95 ≈ 1.6604 t_{99,0.95}\approx1.6604 t 99 , 0.95 ≈ 1.6604 . Therefore
C I 90 % ( μ ) = [ x ˉ − t 99 , 0.95 s n , x ˉ + t 99 , 0.95 s n ] = [ 174 − 1.6604 11.7 10 , 174 + 1.6604 11.7 10 ] = [ 172.06 , 175.94 ] c m . \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} C I 90% ( μ ) = [ x ˉ − t 99 , 0.95 n s , x ˉ + t 99 , 0.95 n s ] = [ 174 − 1.6604 10 11.7 , 174 + 1.6604 10 11.7 ] = [ 172.06 , 175.94 ] cm .
The official correction uses the approximation 1.645 1.645 1.645 (Normal critical quantile); the exact Student quantile with 99 99 99 degrees of freedom is approximately 1.6604 1.6604 1.6604 . Using a table row close to 99 99 99 degrees of freedom also gives about 1.66 1.66 1.66 .
Here the unknown parameter changes : we estimate the population variance σ 2 \sigma^2 σ 2 , not the mean. Under the Normal assumption,
Q = ( n − 1 ) S 2 σ 2 ∼ χ n − 1 2 = χ 99 2 . Q=\frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}=\chi^2_{99}. Q = σ 2 ( n − 1 ) S 2 ∼ χ n − 1 2 = χ 99 2 .
Using the 5 % 5\% 5% and 95 % 95\% 95% quantiles and isolating σ 2 \sigma^2 σ 2 (note that the order reverses when taking reciprocals),
C I 90 % ( σ 2 ) = [ ( n − 1 ) s 2 χ 99 , 0.95 2 , ( n − 1 ) s 2 χ 99 , 0.05 2 ] . \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]
}. C I 90% ( σ 2 ) = [ χ 99 , 0.95 2 ( n − 1 ) s 2 , χ 99 , 0.05 2 ( n − 1 ) s 2 ] .
With χ 99 , 0.05 2 ≈ 77.0463 \chi^2_{99,0.05}\approx77.0463 χ 99 , 0.05 2 ≈ 77.0463 and χ 99 , 0.95 2 ≈ 123.2252 \chi^2_{99,0.95}\approx123.2252 χ 99 , 0.95 2 ≈ 123.2252 ,
C I 90 % ( σ 2 ) = [ 99 ( 136.89 ) 123.2252 , 99 ( 136.89 ) 77.0463 ] = [ 109.98 , 175.90 ] c m 2 . \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} C I 90% ( σ 2 ) = [ 123.2252 99 ( 136.89 ) , 77.0463 99 ( 136.89 ) ] = [ 109.98 , 175.90 ] cm 2 .
The official correction replaces the unavailable table row 99 99 99 by row 100 100 100 and obtains approximately [ 108.99 , 173.90 ] [108.99,173.90] [ 108.99 , 173.90 ] cm2 ^2 2 . The interval above uses the actual 99 99 99 degrees of freedom.
Interpretation: the interval procedures have respectively 90 % 90\% 90% coverage for the fixed mean μ \mu μ and for the fixed variance σ 2 \sigma^2 σ 2 , under the model assumptions.
↑ Retour à l’exercice 2
We assume independent Normal samples with sizes n f = n m = 100 n_f=n_m=100 n f = n m = 100 and one common unknown population variance
σ m 2 = σ f 2 = σ 2 . \sigma_m^2=\sigma_f^2=\sigma^2. σ m 2 = σ f 2 = σ 2 .
The observed means differ by
x ˉ m − x ˉ f = 177 − 173 = 4 c m . \bar x_m-\bar x_f=177-173=4\ \mathrm{cm}. x ˉ m − x ˉ f = 177 − 173 = 4 cm .
First calculate the pooled sample variance :
s p o o l 2 = ( n m − 1 ) s m 2 + ( n f − 1 ) s f 2 n m + n f − 2 = 99 ( 9.3 ) 2 + 99 ( 8.7 ) 2 198 = 81.09 c m 2 . \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} s pool 2 = n m + n f − 2 ( n m − 1 ) s m 2 + ( n f − 1 ) s f 2 = 198 99 ( 9.3 ) 2 + 99 ( 8.7 ) 2 = 81.09 cm 2 .
Therefore s p o o l = 81.09 ≈ 9.005 s_{\mathrm{pool}}=\sqrt{81.09}\approx9.005 s pool = 81.09 ≈ 9.005 cm. Keep these two quantities separate: S p o o l S_{\mathrm{pool}} S pool is a standard deviation ; S p o o l 2 S_{\mathrm{pool}}^2 S pool 2 is a variance .
Since the common variance is unknown and estimated with S p o o l 2 S_{\mathrm{pool}}^2 S pool 2 , the correct statistic follows a Student distribution :
T = ( X ˉ m − X ˉ f ) − ( μ m − μ f ) S p o o l 1 / n m + 1 / n f ∼ t n m + n f − 2 = t 198 . 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}. T = S pool 1/ n m + 1/ n f ( X ˉ m − X ˉ f ) − ( μ m − μ f ) ∼ t n m + n f − 2 = t 198 .
The observed standard error is
s p o o l 1 n m + 1 n f = 81.09 1 100 + 1 100 ≈ 1.2735 c m . s_{\mathrm{pool}}\sqrt{\frac1{n_m}+\frac1{n_f}}
=\sqrt{81.09}\sqrt{\frac1{100}+\frac1{100}}
\approx1.2735\ \mathrm{cm}. s pool n m 1 + n f 1 = 81.09 100 1 + 100 1 ≈ 1.2735 cm .
With t 198 , 0.975 ≈ 1.9720 t_{198,0.975}\approx1.9720 t 198 , 0.975 ≈ 1.9720 ,
C I 95 % ( μ m − μ f ) = [ ( x ˉ m − x ˉ f ) ± t 198 , 0.975 s p o o l 1 n m + 1 n f ] = [ 4 − 1.9720 ( 1.2735 ) , 4 + 1.9720 ( 1.2735 ) ] = [ 1.49 , 6.51 ] c m . \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} C I 95% ( μ m − μ f ) = [ ( x ˉ m − x ˉ f ) ± t 198 , 0.975 s pool n m 1 + n f 1 ] = [ 4 − 1.9720 ( 1.2735 ) , 4 + 1.9720 ( 1.2735 ) ] = [ 1.49 , 6.51 ] cm .
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.96 1.96 1.96 as a large-df approximation; the exact t 198 t_{198} t 198 quantile yields the interval above.
Since two independent Normal populations share the same unknown variance, the pooled variance gives the chi-square statistic
Q = ( n m + n f − 2 ) S p o o l 2 σ 2 ∼ χ n m + n f − 2 2 = χ 198 2 . \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}
}. Q = σ 2 ( n m + n f − 2 ) S pool 2 ∼ χ n m + n f − 2 2 = χ 198 2 .
Important: the numerator contains S p o o l 2 S_{\mathrm{pool}}^2 S pool 2 , not S p o o l S_{\mathrm{pool}} S pool . We want a confidence interval for a variance .
For α = 0.05 \alpha=0.05 α = 0.05 , use the chi-square quantiles
χ 198 , 0.025 2 ≈ 160.9246 , χ 198 , 0.975 2 ≈ 238.8612. \chi^2_{198,0.025}\approx160.9246,
\qquad
\chi^2_{198,0.975}\approx238.8612. χ 198 , 0.025 2 ≈ 160.9246 , χ 198 , 0.975 2 ≈ 238.8612.
Isolate σ 2 \sigma^2 σ 2 :
C I 95 % ( σ 2 ) = [ ( n m + n f − 2 ) s p o o l 2 χ 198 , 0.975 2 , ( n m + n f − 2 ) s p o o l 2 χ 198 , 0.025 2 ] . \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]
}. C I 95% ( σ 2 ) = [ χ 198 , 0.975 2 ( n m + n f − 2 ) s pool 2 , χ 198 , 0.025 2 ( n m + n f − 2 ) s pool 2 ] .
Numerically, the numerator is
198 × 81.09 = 16055.82 , 198\times81.09=16055.82, 198 × 81.09 = 16055.82 ,
so
C I 95 % ( σ 2 ) = [ 16055.82 238.8612 , 16055.82 160.9246 ] = [ 67.22 , 99.77 ] c m 2 . \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} C I 95% ( σ 2 ) = [ 238.8612 16055.82 , 160.9246 16055.82 ] = [ 67.22 , 99.77 ] cm 2 .
Check against the official correction: the printed result [ 67.88 , 100.77 ] [67.88,100.77] [ 67.88 , 100.77 ] cm2 ^2 2 is inconsistent with s p o o l 2 = 81.09 s_{\mathrm{pool}}^2=81.09 s pool 2 = 81.09 and the stated chi-square quantiles. In particular, ( n m + n f − 2 ) s p o o l 2 = 16055.82 (n_m+n_f-2)s_{\mathrm{pool}}^2=16055.82 ( n m + n f − 2 ) s pool 2 = 16055.82 , not 16216.2 16216.2 16216.2 . The interval displayed here is the result of the stated statistic and data.
↑ Retour à l’exercice 3
Observed: n = 9 n=9 n = 9 , x ˉ = 60.62 \bar x=60.62 x ˉ = 60.62 V and s 2 = 1.31 s^2=1.31 s 2 = 1.31 V2 ^2 2 . Unknown: the true mean μ \mu μ and variance σ 2 \sigma^2 σ 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.
H 0 : μ = 60 , H 1 : μ ≠ 60. H_0:\mu=60,\qquad H_1:\mu\ne60. H 0 : μ = 60 , H 1 : μ = 60.
Since σ 2 \sigma^2 σ 2 is unknown, use the Single mean test from page 1 of the official formula sheet:
T = X ˉ − μ 0 S / n ∼ t n − 1 under H 0 . T=\frac{\bar X-\mu_0}{S/\sqrt n}\sim t_{n-1}
\quad\text{under }H_0. T = S / n X ˉ − μ 0 ∼ t n − 1 under H 0 .
t o b s = 60.62 − 60 1.31 / 9 ≈ 1.625 , d f = 8. t_{\mathrm{obs}}=
\frac{60.62-60}{\sqrt{1.31}/\sqrt9}
\approx\boxed{1.625},
\qquad df=8. t obs = 1.31 / 9 60.62 − 60 ≈ 1.625 , df = 8.
At α = 0.05 \alpha=0.05 α = 0.05 , the two-sided critical values are t 8 , 0.025 = − 2.306 t_{8,0.025}=-2.306 t 8 , 0.025 = − 2.306 and t 8 , 0.975 = 2.306 t_{8,0.975}=2.306 t 8 , 0.975 = 2.306 .
− 2.306 < 1.625 < 2.306. -2.306<1.625<2.306. − 2.306 < 1.625 < 2.306.
Therefore we do not reject H 0 H_0 H 0 . As this is a two-sided test, both unusually low and unusually high measurements count:
p = P ( T 8 ≤ − 1.625 ) + P ( T 8 ≥ 1.625 ) = 2 P ( T 8 ≥ 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} p = P ( T 8 ≤ − 1.625 ) + P ( T 8 ≥ 1.625 ) = 2 P ( T 8 ≥ 1.625 ) ≈ 0.1428 = 14.28% .
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.
The parameter is now the population variance . A right-tailed test addresses the manufacturer’s claim:
H 0 : σ 2 ≤ 0.81 , H 1 : σ 2 > 0.81. H_0:\sigma^2\le0.81,\qquad H_1:\sigma^2>0.81. H 0 : σ 2 ≤ 0.81 , H 1 : σ 2 > 0.81.
Evaluate the statistic at the null boundary σ 0 2 = 0.81 \sigma_0^2=0.81 σ 0 2 = 0.81 , using the Single variance test on page 1 of the formula sheet:
Q = ( n − 1 ) S 2 σ 0 2 ∼ χ n − 1 2 under σ 2 = σ 0 2 . Q=\frac{(n-1)S^2}{\sigma_0^2}
\sim\chi^2_{n-1}
\quad\text{under }\sigma^2=\sigma_0^2. Q = σ 0 2 ( n − 1 ) S 2 ∼ χ n − 1 2 under σ 2 = σ 0 2 .
q o b s = 8 ( 1.31 ) 0.81 ≈ 12.94 , d f = 8. q_{\mathrm{obs}}=\frac{8(1.31)}{0.81}
\approx\boxed{12.94},
\qquad df=8. q obs = 0.81 8 ( 1.31 ) ≈ 12.94 , df = 8.
The upper critical value is χ 8 , 0.95 2 ≈ 15.51 \chi^2_{8,0.95}\approx15.51 χ 8 , 0.95 2 ≈ 15.51 . Thus 12.94 < 15.51 12.94<15.51 12.94 < 15.51 : we do not reject H 0 H_0 H 0 .
Large chi-square values support H 1 H_1 H 1 , so the p-value is the right-tail area only :
p = P ( χ 8 2 ≥ 12.94 ) ≈ 0.1139 = 11.39 % . p=P(\chi^2_8\ge12.94)
\approx\boxed{0.1139=11.39\%}. p = P ( χ 8 2 ≥ 12.94 ) ≈ 0.1139 = 11.39% .
Interpretation: there is insufficient evidence at the 5% level that the population variance exceeds 0.81 V 2 0.81\ \mathrm V^2 0.81 V 2 .
Unknown population variance implies a Student confidence interval (Normal-population assumption):
C I 95 % ( μ ) = [ x ˉ − t 8 , 0.975 s n , x ˉ + t 8 , 0.975 s n ] . 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]. C I 95% ( μ ) = [ x ˉ − t 8 , 0.975 n s , x ˉ + t 8 , 0.975 n s ] .
The two endpoints come from subtracting and adding the margin of error :
C I 95 % ( μ ) = 60.62 ± 2.306 1.31 9 = 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} C I 95% ( μ ) = 60.62 ± 2.306 9 1.31 = 60.62 ± 0.88 = [ 59.74 , 61.50 ] V .
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 μ .
From the Properties of X ˉ \bar X X ˉ and S 2 S^2 S 2 , 1 population section of the formula sheet:
( n − 1 ) S 2 σ 2 ∼ χ n − 1 2 . \frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}. σ 2 ( n − 1 ) S 2 ∼ χ n − 1 2 .
For α = 0.05 \alpha=0.05 α = 0.05 , use the chi-square quantiles at 0.025 0.025 0.025 and 0.975 0.975 0.975 :
χ 8 , 0.025 2 ≈ 2.180 , χ 8 , 0.975 2 ≈ 17.535. \chi^2_{8,0.025}\approx2.180,\qquad
\chi^2_{8,0.975}\approx17.535. χ 8 , 0.025 2 ≈ 2.180 , χ 8 , 0.975 2 ≈ 17.535.
When isolating σ 2 \sigma^2 σ 2 , the quantiles reverse order because σ 2 \sigma^2 σ 2 appears in the denominator:
C I 95 % ( σ 2 ) = [ ( n − 1 ) s 2 χ n − 1 , 0.975 2 , ( n − 1 ) s 2 χ n − 1 , 0.025 2 ] . 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]. C I 95% ( σ 2 ) = [ χ n − 1 , 0.975 2 ( n − 1 ) s 2 , χ n − 1 , 0.025 2 ( n − 1 ) s 2 ] .
C I 95 % ( σ 2 ) = [ 8 ( 1.31 ) 17.535 , 8 ( 1.31 ) 2.180 ] ≈ [ 0.598 , 4.808 ] V 2 . \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} C I 95% ( σ 2 ) = [ 17.535 8 ( 1.31 ) , 2.180 8 ( 1.31 ) ] ≈ [ 0.598 , 4.808 ] V 2 .
This interval estimates the variance (V2 ^2 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 , σ A 2 , σ B 2 \mu_A,\mu_B,\sigma_A^2,\sigma_B^2 μ A , μ B , σ A 2 , σ 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 ˉ = 1 n ∑ i = 1 n x i , s 2 = 1 n − 1 ∑ i = 1 n ( x i − 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. x ˉ = n 1 i = 1 ∑ n x i , s 2 = n − 1 1 i = 1 ∑ n ( x i − x ˉ ) 2 .
Observed statistic Boiler A Boiler B Sample size n A = 8 n_A=8 n A = 8 n B = 6 n_B=6 n B = 6 Mean x ˉ A = 61 \bar x_A=61 x ˉ A = 61 gx ˉ B = 49 \bar x_B=49 x ˉ B = 49 gSample variance s A 2 = 1550 7 ≈ 221.43 s_A^2=\frac{1550}{7}\approx221.43 s A 2 = 7 1550 ≈ 221.43 g2 ^2 2 s B 2 = 690 5 = 138 s_B^2=\frac{690}{5}=138 s B 2 = 5 690 = 138 g2 ^2 2
H 0 : σ A 2 = σ B 2 , H 1 : σ A 2 ≠ σ B 2 . H_0:\sigma_A^2=\sigma_B^2,\qquad
H_1:\sigma_A^2\ne\sigma_B^2. H 0 : σ A 2 = σ B 2 , H 1 : σ A 2 = σ B 2 .
From Test on 2 variances , page 2 of the formula sheet:
F = S A 2 S B 2 ∼ F n A − 1 , n B − 1 = F 7 , 5 under H 0 . F=\frac{S_A^2}{S_B^2}\sim F_{n_A-1,n_B-1}=F_{7,5}
\quad\text{under }H_0. F = S B 2 S A 2 ∼ F n A − 1 , n B − 1 = F 7 , 5 under H 0 .
f o b s = 221.43 138 ≈ 1.605 . f_{\mathrm{obs}}=\frac{221.43}{138}
\approx\boxed{1.605}. f obs = 138 221.43 ≈ 1.605 .
With a two-sided 2 % 2\% 2% significance level, each rejection tail has probability 0.01 0.01 0.01 :
F 7 , 5 , 0.01 ≈ 0.134 , F 7 , 5 , 0.99 ≈ 10.46. F_{7,5,0.01}\approx0.134,\qquad
F_{7,5,0.99}\approx10.46. F 7 , 5 , 0.01 ≈ 0.134 , F 7 , 5 , 0.99 ≈ 10.46.
We reject H 0 H_0 H 0 if F < 0.134 F<0.134 F < 0.134 or F > 10.46 F>10.46 F > 10.46 . Here:
0.134 < 1.605 < 10.46. 0.134<1.605<10.46. 0.134 < 1.605 < 10.46.
Decision: we do not reject H 0 H_0 H 0 . The data do not give sufficient evidence of unequal variances at the 2% level. The two-sided p-value is approximately 0.623 0.623 0.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.
Test the boundary of the statement “at least 5 g greater” against a strictly greater difference:
H 0 : μ A − μ B ≤ 5 , H 1 : μ A − μ B > 5. H_0:\mu_A-\mu_B\le5,\qquad
H_1:\mu_A-\mu_B>5. H 0 : μ A − μ B ≤ 5 , H 1 : μ A − μ B > 5.
The test statistic is calculated at the boundary μ A − μ B = 5 \mu_A-\mu_B=5 μ A − μ B = 5 . Under a common unknown population variance, use the Test on 2 sample means with pooled variance from page 2:
S p o o l 2 = ( n A − 1 ) S A 2 + ( n B − 1 ) S B 2 n A + n B − 2 . S_{\mathrm{pool}}^2=
\frac{(n_A-1)S_A^2+(n_B-1)S_B^2}{n_A+n_B-2}. S pool 2 = n A + n B − 2 ( n A − 1 ) S A 2 + ( n B − 1 ) S B 2 .
s p o o l 2 = 7 ( 221.43 ) + 5 ( 138 ) 12 ≈ 186.67 g 2 . \begin{aligned}
s_{\mathrm{pool}}^2
&=\frac{7(221.43)+5(138)}{12}\\
&\approx\boxed{186.67\ \mathrm g^2}.
\end{aligned} s pool 2 = 12 7 ( 221.43 ) + 5 ( 138 ) ≈ 186.67 g 2 .
(The official correction uses rounded s A 2 = 221.4 s_A^2=221.4 s A 2 = 221.4 , giving s p o o l 2 = 186.65 s_{\mathrm{pool}}^2=186.65 s pool 2 = 186.65 .)
T = ( X ˉ A − X ˉ B ) − 5 S p o o l 1 n A + 1 n B ∼ t n A + n B − 2 = t 12 at 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}. T = S pool n A 1 + n B 1 ( X ˉ A − X ˉ B ) − 5 ∼ t n A + n B − 2 = t 12 at the null boundary .
t o b s = ( 61 − 49 ) − 5 186.67 1 8 + 1 6 ≈ 0.949 . \begin{aligned}
t_{\mathrm{obs}}
&=\frac{(61-49)-5}
{\sqrt{186.67}\sqrt{\frac18+\frac16}}\\
&\approx\boxed{0.949}.
\end{aligned} t obs = 186.67 8 1 + 6 1 ( 61 − 49 ) − 5 ≈ 0.949 .
Since H 1 H_1 H 1 is right-sided , we reject for large positive values. At α = 0.05 \alpha=0.05 α = 0.05 , t 12 , 0.95 ≈ 1.782 t_{12,0.95}\approx1.782 t 12 , 0.95 ≈ 1.782 and
0.949 < 1.782. 0.949<1.782. 0.949 < 1.782.
Decision: we do not reject H 0 H_0 H 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 ( T 12 ≥ 0.949 ) ≈ 0.181 = 18.1 % . \boxed{p=P(T_{12}\ge0.949)\approx0.181=18.1\%.} p = P ( T 12 ≥ 0.949 ) ≈ 0.181 = 18.1%.
Official-correction note: the provided solutions report 18.14% ; a direct calculation with t 12 t_{12} t 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 μ D .
An independent two-population test would ignore the pairing. Instead, define the difference on sample i i i as
D i = A i − B i . D_i=A_i-B_i. D i = A i − B i .
Sample 1 2 3 4 5 6 7 8 9 10 d i = A i − B i d_i=A_i-B_i d i = A i − B i (g)3.2 −3.9 −2.3 −0.6 1.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.
The null hypothesis states that the methods have the same population mean measurement :
H 0 : μ D = 0 , H 1 : μ D ≠ 0. H_0:\mu_D=0,\qquad H_1:\mu_D\ne0. H 0 : μ D = 0 , H 1 : μ D = 0.
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.3 10 = − 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}. d ˉ = 10 3.2 − 3.9 − 2.3 − 0.6 + 1.1 − 2.9 − 1.8 − 0.5 − 2.3 − 0.3 = − 1.03 g .
For the unbiased variance of the differences , use the computational identity
s D 2 = ∑ i = 1 10 d i 2 − n d ˉ 2 n − 1 . s_D^2=
\frac{\sum_{i=1}^{10}d_i^2-n\bar d^2}{n-1}. s D 2 = n − 1 ∑ i = 1 10 d i 2 − n d ˉ 2 .
Here ∑ d i 2 = 49.59 \sum d_i^2=49.59 ∑ d i 2 = 49.59 :
s D 2 = 49.59 − 10 ( − 1.03 ) 2 9 ≈ 4.33 g 2 . s_D^2=\frac{49.59-10(-1.03)^2}{9}
\approx\boxed{4.33\ \mathrm g^2}. s D 2 = 9 49.59 − 10 ( − 1.03 ) 2 ≈ 4.33 g 2 .
From the Single mean test , page 1 of the formula sheet, replace X ˉ , S \bar X,S X ˉ , S with D ˉ , S D \bar D,S_D D ˉ , S D and take μ 0 = 0 \mu_0=0 μ 0 = 0 :
T = D ˉ − 0 S D / n ∼ t n − 1 = t 9 under H 0 . T=\frac{\bar D-0}{S_D/\sqrt n}
\sim t_{n-1}=t_9
\quad\text{under }H_0. T = S D / n D ˉ − 0 ∼ t n − 1 = t 9 under H 0 .
t o b s = − 1.03 4.33 / 10 ≈ − 1.565 . \begin{aligned}
t_{\mathrm{obs}}
&=\frac{-1.03}{\sqrt{4.33}/\sqrt{10}}\\
&\approx\boxed{-1.565}.
\end{aligned} t obs = 4.33 / 10 − 1.03 ≈ − 1.565 .
With α = 0.05 \alpha=0.05 α = 0.05 , the rejection region from the two-sided line of the official formula is:
T < t 9 , 0.025 = − 2.262 or T > t 9 , 0.975 = 2.262. T<t_{9,0.025}=-2.262
\quad\text{or}\quad
T>t_{9,0.975}=2.262. T < t 9 , 0.025 = − 2.262 or T > t 9 , 0.975 = 2.262.
But − 2.262 < − 1.565 < 2.262 -2.262<-1.565<2.262 − 2.262 < − 1.565 < 2.262 , so we do not reject H 0 H_0 H 0 .
Interpretation: A measured average difference of − 1.03 -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 ( T 9 ≤ − 1.565 ) + P ( T 9 ≥ 1.565 ) = 2 P ( T 9 ≥ 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} p = P ( T 9 ≤ − 1.565 ) + P ( T 9 ≥ 1.565 ) = 2 P ( T 9 ≥ 1.565 ) ≈ 0.1520 = 15.20% .
Since p = 0.1520 > 0.05 p=0.1520>0.05 p = 0.1520 > 0.05 , we do not reject H 0 H_0 H 0 , consistent with (a). The p-value is not the probability that H 0 H_0 H 0 is true; it measures how unusual this result would be if H 0 H_0 H 0 held.
To verify the numerical result in Python:
from scipy.stats import t
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 D D D with n − 1 n-1 n − 1 degrees of freedom; do not use the independent two-population formula.
↑ Retour à l’exercice 3