Compute the mean of the beta distribution with parameters p and q.
Use numeric parameters.
Generate a random sample of size 100000 drawn from the above distribution and compute the sample mean.
Compute the standard error of the sample mean for the normal distribution with parameters 5 and 2.
Create a beta-distributed random variable and compute the mean of .
Verify this using simulation.
Compute the mean of a weighted data set.
Consider the following Matrix data set.
We compute the mean of each of the columns.