Question: Create a new quarto document and fill in the info ( like your name and an appropriate title! ) Make a heading ( # )
Create a new quarto document and fill in the info like your name and an appropriate
title!
Make a heading # called Simulation
Make a subheading ## called Simulate from a Normal Distribution
Create a code chunk and give it a label. In this chunk:
use set.seedbut replace the with any number you like
choose the number of observations you want to generate and assign this value to
the variable n choose n at least or larger
create a variable mu and assign your chosen mean to this value
create a variable sigma and assign your chosen standard deviation to this value
using the rnorm function and your values of n mu and sigma, assign your randomly
generate observations to a variable called obs
Make a subheading ## and called Histogram of Simulated Values
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
