π
<-
Chat plein-écran
[^]

[FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Regroupement de tous les tutoriaux Nspire.

[FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Bisam » 10 Jun 2013, 15:07

Read this tutorial in English here.


Comment utiliser la loi normale et la loi binomiale
sur votre calculette ?


Les fonctions dont je parle ci-dessous sont disponibles sur presque toutes les calculettes TI.
On les trouve sur les Nspire (CAS ou non), sur les 82stats.fr, les 83+/84+ (ci-dessous nommées z80), et on peut aussi les installer sur TI92+, TI89 Titanium ou V200 (ci-dessous nommées 68k) (regarder à cette adresse pour savoir comment).

Pour utiliser ces fonctions, il suffit d'aller les chercher dans le catalogue :
  • Sur Nspire, appuyer sur :nsbi:
  • Sur z80, appuyer sur :f21: :f102:
  • Sur 68k, appuyer sur
    Catalog
    puis
    F3


Sur z80, les noms des fonctions sont légèrement différents de ceux indiqués. Faites un petit effort d'imagination en attendant que j'ai mis à jour le tuto...


1. Les fonctions relatives à la loi normale sont :

  • normCdf (ou normFdR en français, pour Fonction de Répartition)
    normCdf(a,b) renverra la probabilité
    $mathjax$\mathbb{P}(a<X<b)$mathjax$
    suivant la loi normale centrée réduite.
    normCdf(a,b,m,s) renverra la probabilité
    $mathjax$\mathbb{P}(a<X<b)$mathjax$
    suivant la loi normale de moyenne m et d'écart-type s.

    Astuce : Pour calculer
    $mathjax$\mathbb{P}(X<b)$mathjax$
    , il suffit de taper normCdf(-∞,b) et pour calculer
    $mathjax$\mathbb{P}(X>a)$mathjax$
    , il suffit de taper normCdf(a,∞) .


    Sur z80, remplacer ∞ par E99
    Sur Nspire non-CAS, remplacer ∞ par 9E999

  • normPdf (ou normDdP en français, pour Distribution de Probabilité)
    normPdf(x) renverra la valeur
    $mathjax$\frac{e^{-\frac{x^2}{2}}}{\sqrt{2\pi}}$mathjax$
    de la densité de probabilité de la loi normale centrée réduite.
    normPdf(x,m,s) renverra la valeur
    $mathjax$\frac{e^{-\frac{(x-m)^2}{2s^2}}}{s\sqrt{2\pi}}$mathjax$
    de la densité de probabilité de la loi normale de moyenne m et d'écart-type s.


  • invNorm
    invNorm(p) renverra la valeur de b telle que
    $mathjax$\mathbb{P}(X<b)=p$mathjax$
    , suivant la loi normale centrée réduite.
    invNorm(p,m,s) renverra la valeur de b telle que
    $mathjax$\mathbb{P}(X<b)=p$mathjax$
    , suivant la loi normale de moyenne m et d'écart-type s.

    Astuces : Pour trouver une valeur b telle que
    $mathjax$\mathbb{P}(-b<X<b)=p$mathjax$
    , suivant la loi normale centrée réduite, on peut ruser en remarquant que
    $mathjax$\mathbb{P}(-b<X<b)=\mathbb{P}(X<b)-\mathbb{P}(X\leq -b)=\mathbb{P}(X<b)-(1-\mathbb{P}(-X<b))=2\mathbb{P}(X<b)-1$mathjax$
    car X et -X suivent la même loi dans ce cas. Ainsi, il suffit de taper invNorm((p+1)/2)
    De même, pour trouver une valeur b telle que
    $mathjax$\mathbb{P}(m-b<X<m+b)=p$mathjax$
    , suivant la loi normale de moyenne m et d'écart-type s, il suffit de taper invNorm((p+1)/2,m,s)-m


  • randNorm (ou normAléa en français)
    randNorm() renverra au hasard une valeur prise par une variable aléatoire suivant la loi normale centrée réduite.
    randNorm(m,s) renverra au hasard une valeur prise par une variable aléatoire suivant la loi normale de moyenne m et d'écart-type s.
    randNorm(m,s,N) renverra au hasard une liste de N valeurs prises par une variable aléatoire suivant la loi normale de moyenne m et d'écart-type s.
    randNorm(0,1,N) renverra au hasard une liste de N valeurs prises par une variable aléatoire suivant la loi normale centrée réduite.


  • shadNorm (ou ombrNorm en français)
    shadNorm(a,b) trace la gaussienne centrée réduite et hachure la zone entre X=a et X=b.
    shadNorm(a,b,m,s) trace la gaussienne de moyenne m et d'écart-type s et hachure la zone entre X=a et X=b.


2. Les fonctions relatives à la loi binomiale sont :

  • binomCdf (ou binomFdR en français, pour Fonction de Répartition)
    binomCdf(N,p) renverra la fonction de répartition d'une loi binomiale de paramètres N et p sous la forme d'une liste des probabilités
    $mathjax$\mathbb{P}(X\leq k)$mathjax$
    lorsque k varie de 0 à N.
    binomCdf(N,p,a,b) renverra la probabilité
    $mathjax$\mathbb{P}(a<X≤b)$mathjax$
    (ou encore
    $mathjax$\mathbb{P}(X\leq b)-\mathbb{P}(X\leq a)$mathjax$
    ) pour une loi binomiale de paramètres N et p.

    Astuce : Pour calculer
    $mathjax$\mathbb{P}(X\geq a)$mathjax$
    , il suffit de calculer
    $mathjax$\mathbb{P}(a-1 < X \leq N)$mathjax$
    , en tapant donc binomCdf(N,p,a-1,N)


  • binomPdf (ou binomDdP en français, pour Distribution de Probabilité)
    binomPdf(N,p) renverra la liste des probabilités
    $mathjax$\mathbb{P}(X=k)$mathjax$
    lorsque k varie de 0 à N pour une loi binomiale de paramètres N et p.
    binomPdf(N,p,k) renverra la probabilité
    $mathjax$\mathbb{P}(X=k)$mathjax$
    pour une loi binomiale de paramètres N et p.


  • randBin (ou binAléa en français)
    randBin(N,p) renverra au hasard une valeur entière entre 0 et N prise par une variable aléatoire suivant une loi binomiale de paramètres N et p.
    randBin(N,p,nb) renverra au hasard une liste de nb valeurs entières entre 0 et N prise par une variable aléatoire suivant une loi binomiale de paramètres N et p.


Vous pouvez aussi trouver plein d'autres fonctions, par exemple sur la loi de Poisson, la loi géométrique, le test du Chi2, le test ANOVA, etc...

Pour conclure, Alain Charles a également conçu d'excellents programmes pour les intervalles de fluctuation. Vous en trouverez la liste ICI. Choisissez celui qui est adapté à votre calculette !
Lisez ce tutoriel en français à cette adresse.


How to use normal and binomial distributions on your calculator ?


The functions I am talking about in this tutorial are available on almost any TI calculator. They can be found on Nspire (CAS or not), on 82stats, on 83+/84+, and you can even install them on TI92+, TI89 Titanium or V200 (check here to know how).

To use them, just fetch them in the catalog :
  • On Nspire, press :nsbi:
  • On z80, press :f21: :f102:
  • On 68k, press
    Catalog
    then
    F3


On z80, the names of the functions are slightly different from the ones listed below. Use your imagination until I get this tutorial up to date...


1. Functions dealing with normal distribution are :

  • normCdf (Cumulative Distribution Function)
    normCdf(a,b) will calculate the probability
    $mathjax$\mathbb{P}(a<X<b)$mathjax$
    using standard normal distribution.
    normCdf(a,b,m,s) will calculate the probability
    $mathjax$\mathbb{P}(a<X<b)$mathjax$
    using normal distribution with mean m and deviation s.

    Tip : To calculate
    $mathjax$\mathbb{P}(X<b)$mathjax$
    , just type normCdf(-∞,b) and for
    $mathjax$\mathbb{P}(X>a)$mathjax$
    , just type normCdf(a,∞).


    On z80, use E99 instead of ∞.

  • normPdf (Probability Density function)
    normPdf(x) will calculate the value
    $mathjax$\frac{e^{-\frac{x^2}{2}}}{\sqrt{2\pi}}$mathjax$
    of probability density of standard normal distribution.
    normPdf(x,m,s) will calculate the value
    $mathjax$\frac{e^{-\frac{(x-m)^2}{2s^2}}}{s\sqrt{2\pi}}$mathjax$
    of probability density of normal distribution with mean m and deviation s.

  • invNorm
    invNorm(p) will compute the value of b for which
    $mathjax$\mathbb{P}(X<b)=p$mathjax$
    , according to standard normal distribution.
    invNorm(p,m,s) will compute the value of b for which
    $mathjax$\mathbb{P}(X<b)=p$mathjax$
    , according to normal distribution with mean m and deviance s.

    Tips : To find a value b for which
    $mathjax$\mathbb{P}(-b<X<b)=p$mathjax$
    , according to standard normal distribution, you can notice that
    $mathjax$\mathbb{P}(-b<X<b)=\mathbb{P}(X<b)-\mathbb{P}(X\leq -b)=\mathbb{P}(X<b)-(1-\mathbb{P}(-X<b))=2\mathbb{P}(X<b)-1$mathjax$
    for X and -X both follow standard normal distribution. Hence, just typeinvNorm((p+1)/2)
    Following, if you wish to find b for which
    $mathjax$\mathbb{P}(m-b<X<m+b)=p$mathjax$
    , according to normal distribution with mean m and deviance s, just type invNorm((p+1)/2,m,s)-m


  • randNorm
    randNorm() will randomly return a value of a random variable following standard normal distribution.
    randNorm(m,s) will randomly return a value of a random variable following normal distribution with mean m and deviance s.
    randNorm(m,s,N) will randomly return a list of N values taken by a random variable following normal distribution with mean m and deviance s.
    randNorm(0,1,N) will randomly return a list of N values taken by a random variable following standard normal distribution.


  • shadNorm
    shadNorm(a,b) graphs the Gaussian standard curve and shades underneath it from X=a to X=b.
    shadNorm(a,b,m,s) graphs the Gaussian curve with mean m and deviance s and shades underneath it from X=a to X=b.


2. Functions dealing with binomial distributions are :

  • binomCdf (Cumulative distribution function)
    binomCdf(N,p) will return a list of probabilities
    $mathjax$\mathbb{P}(X\leq k)$mathjax$
    for k from 0 to N, for the binomial distribution with parameters N and p.
    binomCdf(N,p,a,b) will return the value of probability
    $mathjax$\mathbb{P}(a<X\leq b)$mathjax$
    (or
    $mathjax$\mathbb{P}(X\leq b)-\mathbb{P}(X\leq a)$mathjax$
    ) for the binomial distribution with parameters N and p.

    Tip : To get the value of
    $mathjax$\mathbb{P}(X\geq a)$mathjax$
    , just compute
    $mathjax$\mathbb{P}(a-1<X\leq N)$mathjax$
    by typing binomCdf(N,p,a-1,N)


  • binomPdf (Probability distribution function)
    binomPdf(N,p) will return a list of probabilities
    $mathjax$\mathbb{P}(X=k)$mathjax$
    for k from 0 to N, for the binomial distribution with parameters N and p.
    binomPdf(N,p,k) will return the value of probability
    $mathjax$\mathbb{P}(X=k)$mathjax$
    for the binomial distribution with parameters N and p.


  • randBin
    randBin(N,p)will randomly return an integer value between 0 and N taken by a random variable following binomial distribution with parameters N and p.
    randBin(N,p,nb)will return a list of nb integer values between 0 and N taken by a random variable following binomial distribution with parameters N and p..


You can also find many other functions, dealing with, for example, Poisson distribution, geometric distribution, Chi2 test, ANOVA test, etc...

As a conclusion, Alain Charles also made some excellent programs for fluctuation intervals. Here is their list. Just choose the one adapted fo your calc !
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5665
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Adriweb » 10 Jun 2013, 15:15

Joli :)

Au passage, je suppose que c'est valable littéralement exactement sur Nspire, donc si c'est effectivement le cas, n'hésite pas à simplement copier coller le topic dans le forum Tutos Nspire :)
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80.3%
 
Posts: 14617
Images: 1218
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby AlexisVieira » 11 Jun 2013, 21:37

Good job with this tutorial :)
I'm Portuguese, sorry about bad English :s
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby caporal » 15 Jun 2013, 20:35

Salut, je vient tout juste de m'inscrire pour te signaler des erreurs, cela serrait bete de porter à confusion les gens qui ne feront pas attention, alors voila:
ormCdf (ou normDdP en français, pour Distribution de Probabilité)
CODE: TOUT SÉLECTIONNER
normCdf(a,b)
renverra la probabilité P(a<X<b) suivant la loi normale centrée réduite.
CODE: TOUT SÉLECTIONNER
normCdf(a,b,m,s)
renverra la probabilité P(a<X<b) suivant la loi normale de moyenne m et d'écart-type s.

Astuce : Pour calculer P(X<b), il suffit de taper
CODE: TOUT SÉLECTIONNER
normCdf(-oo,b)
et pour calculer P(X>a), il suffit de taper
CODE: TOUT SÉLECTIONNER
normCdf(a,oo)
où oo représente le symbole "infini".


normPdf (ou normFdR en français, pour Fonction de Répartition)
CODE: TOUT SÉLECTIONNER
normPdf(x)
renverra la valeur e^(-x^2/2)/√(2*π) de la densité de probabilité de la loi normale centrée réduite.
CODE: TOUT SÉLECTIONNER
normPdf(x,m,s)
renverra la valeur e^(-(x-m)^2/(2s^2))/(s*√(2*π)) de la densité de probabilité de la loi normale de moyenne m et d'écart-type s.

Sur ma Ti 89 Titanium, les fonctions sont inversés c'est à dire ( à travers un exemple):
normFdR(a,b,m,s)
normDdP(x,m,s)
sont les véritables utilisations.

Il est également à noté un petit m qui traine:
De même, pour trouver une valeur b telle que P(m-n<X<m+b)=p, suivant la loi normale de moyenne m et d'écart-type s, il suffit de taper
CODE: TOUT SÉLECTIONNER
invNorm((p+1)/2,m,s)-m
User avatar
caporal
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 40%
 
Posts: 1
Joined: 15 Jun 2013, 20:32
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Terminale S si

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Bisam » 16 Jun 2013, 15:17

Merci beaucoup pour ce retour.
Effectivement, j'avais inversé FdR et DdP, et fait une petite faute de frappe sur le dernier point évoqué.

C'est maintenant corrigé.
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5665
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Bisam » 31 May 2014, 20:20

Je viens de mettre un peu de Latex dans tout cela, maintenant que l'on a cela à notre disposition...
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5665
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Lofty » 05 Jun 2015, 11:02

merci :)
User avatar
LoftyPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 94.9%
 
Posts: 4
Joined: 20 Apr 2015, 16:22
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Terminale s

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby dydou94 » 21 Jun 2015, 21:44

Bonjour,

super tuto ça m'a beaucoup aidé et je voulais vous remercier pour tous les détails ! :) B-)
User avatar
dydou94
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 40%
 
Posts: 2
Joined: 19 Jun 2015, 21:39
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby flo1211 » 22 May 2016, 12:12

Bonjour a tous;
Alors voila j'ai une question assez bête mais qui me bloque pas mal depuis plusieurs jours :'(
Tout d'abord j'ai une TI N'spire CX cas avec la dernière mise a jours (4.2.0.532). Quand vous mettez que pour tracé la gaussienne il faut taper shadNorm ou ombrNorm et bien j'ai essayer de taper les deux, une fois dans le scratchpad et une autre fois dans un classeur ou j'ai insérer une page de calcul, et il ne se passe rien, la commande n'est pas reconnue car elle reste en italique... Et je ne peut donc pas avoir la représentation graphique de ma gaussienne... :'(
Merci d'avance.
User avatar
flo1211
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 80%
 
Posts: 6
Joined: 27 Sep 2014, 15:26
Location: Auvers St Georges
Gender: Male
Calculator(s):
MyCalcs profile
Class: Terminale S Spé Math

Re: [FR/EN][TUTO] Loi normale et loi binomiale (utilisation)

Unread postby Bisam » 22 May 2016, 22:50

Effectivement, j'ai fait un tuto qui se voulait général, regroupant les commandes pour toutes les calculettes TI... mais cette commande n'a pas été conservée sur la Nspire.

Tu peux néanmoins tracer la gaussienne en tapant normPdf(x) dans une fenêtre graphique.
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5665
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Next

Return to Tutoriaux

Who is online

Users browsing this forum: No registered users and 81 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1641 utilisateurs:
>1631 invités
>6 membres
>4 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)