View source: R/normal_pdf_movie.R
normal_pdf_movie | R Documentation |
A movie to show how the probability density function (p.d.f.) of the normal
distribution varies as the mean and/or variance of the distribution
are changed. For more continuous distributions, including the exponential
and uniform distributions, use smovie::movies()
and click on the
Continuous menu.
This is based on the continuous
function.
(If you have not installed the smovie
package then use
install.packages("smovie")
to install it.)
normal_pdf_movie(
starting_mean = 0,
starting_var = 1,
delta_mean = 0.1,
delta_var = 0.1
)
starting_mean |
A numeric scalar. The value of the mean used to produce the first plot of the p.d.f. |
starting_var |
A positive numeric scalar. The value of the variance used to produce the first plot of the p.d.f. |
delta_mean |
A numeric scalar. The amount by which the value of the mean is increased/decreased after one click of the +/- button for the mean. |
delta_var |
A numeric scalar. The amount by which the value of the variance is increased/decreased after one click of the +/- button for the variance. |
The values of the mean and/or variance can be changed using the +/- buttons in the panel. For the purposes of this movie, the variance cannot be reduced below a value of 0.1.
Nothing is returned, only the animation is produced.
stat0002movies
: general information about the movies.
normal_areas_movie
: normal central probability areas
movie.
normal_pdf_movie()
normal_pdf_movie(delta_var = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.