Description Usage Arguments Details Value Examples
Empirical versus theoretical cumulative distribution plot.
1 2 3 4 5 6 7 |
n |
Number of samples |
t |
Layout x-axis grid with a function such as t = seq(0, 1, by = .01) |
remp |
Take random samples from a distribution such as remp = runif(n) |
ptrue |
Get theoretical cumulative distribution with a function like ptrue = punif(t) |
... |
Add extra arguments such as plot title and axis labels |
Based on the OCW example: https://www.youtube.com/watch?v=8fEETchU7NM&t=1458s
A plot with the empirical and true cdfs
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.