Statistics/Basic: Difference between revisions
Content deleted Content added
Added Kotlin |
+Stata |
||
Line 3,636: | Line 3,636: | ||
0.9:=============================================================== |
0.9:=============================================================== |
||
</pre> |
</pre> |
||
=={{header|Stata}}== |
|||
For a uniform distribution on [0,1], the mean is 1/2 and the variance is 1/12 (hence the standard deviation is 0.28867513). With a large sample, one can check the convergence to these values. |
|||
<lang stata>. clear all |
|||
. set obs 100000 |
|||
number of observations (_N) was 0, now 100,000 |
|||
. gen x=runiform() |
|||
. summarize x |
|||
Variable | Obs Mean Std. Dev. Min Max |
|||
-------------+--------------------------------------------------------- |
|||
x | 100,000 .4991874 .2885253 1.18e-06 .9999939</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |