Revisions PROC

Calculer la densite

Etant donnee

f, est-ce une densite ? Si oui,
P(X3)
?

  • Verifier que la
    f0
    et
    +=1

Calculer avec la densite

Etant donnee

f densite, calculer
E(X)
,
Var(X)

  • E(X)=+xf(x)dx
  • Var(X)=+(xE(x))2f(x)dx=+x2f(x)dx(E(x))2

X et Y independants, calculer la densite

X et
Y
independants, densite
f
et
g
. Densite de
X+Y
?

  • h(x)=+f(xy)g(y)dy

Calculer la densite de
αX+β

Densite de

αX+β. Densite de
X
:
f
. Il faut passer par la fonction de repartition.

  • F(X)=P(Xx)=+f(t)dt
  • f(x)=F(x)
  • Soit
    Y=αX+β
    ,
    g
    sa densite
    • G(x)=P(Yx)=P(αX+βx)

Premier Cas

Si

α>0,G(x)=P(αX+βx)=P(Xxβα)=F(xβα)
En derivant
G(x)=1αF(xβα)

Second Cas

Si

α<0,G(x)=P(αX+β<x)=P(Xxβα)=11αF(xβα)
En derivant
G(x)=1αF(xβα)g(x)=xβαf(xβα)

Convergence en probabilite

Definition

|Xn| converge en probabilite vers
Y
si
ϵ>0,P(|XY|>ϵ)n0

Rappel

1+1xαdx{converge si et seulement siα>1diverge si et seulement siα1
011xαdx{converge si et seulement siα<1diverge si et seulement siα1

Primitive de

1xα:
xα=f(x)F(x)=1α+1xα+1

Cas particulier

On tire

X1,X2,...,Xn independemment distribuee et on definit la moyenne
X¯n=X1+...+XnN

E(X¯n)=E(X1)Var(X¯n)=1nVar(X1)σ(X¯n)=Var(X¯n)Car E(X¯n)=1n(E(X1)+...+E(Xn))=E(X1)Var(X¯n)=1n2(Var(X1)+...+Var(Xn))=nVar(X1)n2=Var(X1)n

Inégalité de Tchebychev

ϵ>0,P(|X¯nE(Xn)|ϵ)Var(X¯n)ϵ2Var(X1)nϵ2n0
Donc
P(|X¯nE(Xn)|>ϵ)n0

Theoreme central limite

  • X1,X2,...,Xn
  • X¯n=X1+...+Xnn

    On a vu que
    E(X¯n)=E(X1)
    et que
    Var(X¯n)=1nVar(X1)

Zn=X¯nE(X¯n)σ(X¯n)Z
Ou
Z
a une distribution normal centre reduite:
ZN(0,1)

E(Zn)=0 et Var(Zn)=1

On a

[a,b]R,
P(Zn[a,b])nP(Z[a,b])

Exercice typique

Premier exercice

Soient

X1,...,Xn independemment distribuee avec
E(X1)=3
,
Var(X1)=4
et
X¯n=X1+...+Xnn
. Trouver n tel que
P(|X¯n3|1)5%
.

Solution

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Si
ZN(0,1)
,
P(1,96Z1,96)=95%

1 est pris au hasar mais pas 3, c'est l'esperance.
Ici, on definit
Zn=X¯nE(X¯n)σ(X¯n)=X¯n34n=X¯n32n

Si n est grand:
P(1,96X¯n32n1,96)=95%P(|X¯n32n|1,96)=95%P(|X¯n3|1,962n)=95P(|X¯n3|3,92n)=5%

  • Si
    3,92n=1
    , on a:
    P(|X¯n3|1)=5%
  • Si
    3,92nn0
    avec
    n0=3,922
    valeur minimale de n, on a:
    P(|X¯n3|1)P(|X¯n3|3,92n)5%

Deuxieme exercice

On achete une machine.

PMachine defectueuse=2%. On achete
n
machines. Pour
i[1,n]

Xi={1si defectueuse0sinon

et
X¯n=X1+...+Xnn

On sait que

X¯nprob2%. Trouver
n0
tel que
nn0
,
P(0,01X¯n0,03)95%
.

Solution

Autrement dit,

P(|X¯n0,02|0,01)95%donc P(|X¯n0,02|0,01)5%
Xi={1avec proba p=0,020avec proba 1pE(Xi)=0(1p)+1p=pVar(Xi)=E((XiE(X))2)=E((Xip)2)=p(1p)=0,020,98

Pour
X¯n
:
E(X¯n)=E(X1)=pVar(X¯n)=1nVar(X1)=p(1p)p

On pose:
Zn=X¯n E(X¯n)σX¯n=X¯npp(1p)n

On a donc:

P(|Zn|1,96)=5%P(|X¯npp(1p)n|1,96)=5%P(|X¯np|1,96p(1p)n)=5%
Si
n
tel que
1,96p(1p)n0.01
, on a
P(|Xnp|0,01)5%

Troisieme exercice

Soit

f(x)=....

  • Si vous pensez que
    f
    est une densite, entrer
    P(X3)
  • Sinon rentrer
    1
Solution

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Discussion sur les integrales impropres.
Il faut verifier que
f(x)dx=1
. Si
f
est non-nulle sur une partie infinie de
R
, il faut discuter de la nature de l'integrale. Soit elle est:

  • divergente et
    f
    n'est pas une densite
  • convergente et verifier que l'integrale vaut 1 et que
    f
    est positive

Exemples

Exemple 1

f(x)={0si x11xsi x>1
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Solution

+f(x)dx=1+1xdx
L'integrale est divergente donc
f
n'est pas une densite.

Exemple 2

f(x)={0sur ],1]1x10sur ]1,+[
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Solution

+f(x)dx=1+1x10 avec x10primitive: 110+1x10+1=[191x9]1+=0(19)=19
f
n'est pas une densite.

Exemple 3

f(x)={0si x19x10si x>1

  • f est une densite (cf exo ci-dessus)
  • P(X3)
    ?
    E(X)
    ?
    Var(X)
    ?
Solution
  1. P(X3)
    ?
    P(X3)=3f(x)dx=139x10dx avec 9x10primitive:1x9=[1x9]13=139+119=1139
  2. E(X)
    ?
    E(X)=+xf(x)dx=1+9xx10dx=1+1x9dx avec x9primitive:19+1x9+1=18x8=9[18x8]1+ =9[0+18]=98
  3. Var(X)
    ?
    Var(X)=+(x98)2f(x)dx=E(X2)(E(X))2=+x2f(x)dx(98)2

    +x2f(x)dx=1+x2x9x10dx avec x8primitive:18+1x8+1=17x7

    E(X2)=9[17x7]1+=9(0+17)

    Var(X)=97982

Densite de
X+Y
quand
X
et
Y
independants

  • X
    : densite
    f
  • Y
    : densite
    g
  • Z=X+Y
    : densite $h
    • h
      est la convolution de
      f
      et
      g

      h(x)=+f(xy)g(y)dy

Exemple de distribution uniforme

  • XU([1,2])
  • YU([4,5])

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

    f(x)g(y)0x[1,2] et y[4,5]

    h(x)=+f(y)h(xy)dy=+f(xy)g(y)dy

    Soit
    x0
    fixe, on calcule
    h(x0)=+f(x0y)g(y)dy
    .
    f(x0y)g(y)0{1x0y24y5{x02 yx014 y5

Vert:

x02 yx01
Rouge
4 y5

  • Cas
    x01<4
    (
    x0<5
    ):
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • Pas de
      y
      qui convient
    • h(x0)=+0dx=0
  • Cas
    5x02
    (
    x07
    ):
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • Pas d'intersection
    • h(x0)=0
  • Cas
    4x025x01
    :
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • h(x0)=x02511dx=[x]x025=5(x02)=7x0
  • Cas
    x024x015
    (
    5x6
    ):
    • h(x0)=4x011dy=[y]4x01=x014=x05

Finalement:

  • x[5,6]
    ,
    h(x0)=x05
  • x[6,7]
    ,
    h(x0)=7x0
  • Ailleurs,
    h(x0)=0