« Découvrir Scilab/Statistiques » : différence entre les versions

Contenu supprimé Contenu ajouté
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
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">