Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Goal We want to flex our programming muscles a little bit and make sure that we can render our quarto documents. We are going to

Goal
We want to flex our programming muscles a little bit and make sure that we can render our
quarto documents.
We are going to randomly generate some observations from a Normal distribution and then
create a histogram.
You will choose the mean and standard deviation for this Normal distribution along with the
sample size; you have an INFINITE number of choices!!
Requirements
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.seed(1234)(but replace the 1234 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 50 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
1
Create a new code chunk and give it a label. In this chunk:
create a histogram of obs
make sure to give your histogram a title and ensure that the axis labels are appropriate (capital letters, actually describe what the axis is, etc.. )
Make a heading (#) called Discussion
Write a sentence or two about what you expected the histogram to look like and whether
this histogram meets those expectations or not.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions