« Découvrir Scilab/Statistiques » : différence entre les versions
Contenu supprimé Contenu ajouté
m <source> -> <syntaxhighlight> (phab:T237267) |
→Fonctions de distribution et de répartition de lois statistiques : coefficients binomiaux |
||
Ligne 117 :
: <math>\mathtt{f}(k + 1) = \begin{pmatrix} n \\ k \end{pmatrix} \cdot p^k \cdot (1 - p)^{n - k}
= \mathrm{C}^k_n \cdot p^k \cdot (1 - p)^{n - k}</math>
Notez que les coefficients binomiaux C<sup>''k''</sup><sub>''n''</sub> s'obtiennent eux avec la commande <code>b = nchoosek(n, k)</code>.
La fonction de répartition s'obtient avec <code>cdfbin()</code> :
<syntaxhighlight lang="scilab">
|