R Project 4 Version 5 Graphing a Normal Distribution Part 1. Generate a plot of the standard normal density function (PDF). (C 1) We want the r-values to be a sequence from -4.15 to 4.15 by 0.02. Store these as xvals1. (C 2) To generate the associated y-values from the standard normal distribution, we input the xvals1 from (C 1) into the probability density function from a standard normal distribution. Store these as yvals1. (C 3) Create a plot of the above r-values and y-values. While creating your plot, Your graph should be a continuous line. • The line should be the color "green4". You MUST use the specific color name that we have provided. Set the title of the plot to be "Standard Normal Density Function". Set the z-axis label to be "Standard Normal Variable". Set the y-axis label to be "Density". (Graph 1) After you finish (C 3), save your plot. You will submit it when you submit your code. Part 2. Generate a plot of the Normal Cumulative Distribution Function (CDF), where X - N(H = 625, o2 = 784) (C 4) We want the z-values to be a sequence from 520 to 720 by 4. Store these as xvals2. (C 5) To generate the associated y-values from the cumulative normal distribution (P(X < z)), we input the xvals2 from (C 4) into the (cumulative) probability function from the normal distribution provided to you. Store these as yvals2. (C 6) Create a plot of the above r-values and y-values. While creating your plot, Your graph should be a continuous line. • The line should be the color "lightgoldenrod3". You MUST use the specific color name that we have provided. • Set the title of of the plot to be "Normal CDF Function". • Set the z-axis label to be "Normal Variable". Set the y-axis label to be "Cumulative Probability". (C 7) Save the values 0.03,0.20,0.50,0.80, 0.97 as a single vector named cumul.pbty. (C 8) Overlay dotted horizontal lines at the probabilities indicated in (C 7). Use the color "magental". You MUST use the specific color name that we have provided.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
(C 9) We want to find the r-values associated with the cumulative probabilities given in
(C 7), meaning, we want to solve P(X < k) for k, where the values of the probability
P(X < k) are the values given in (C 7). This is called finding quantiles / percentiles.
Save your vector of quantiles as quantile values.
To do this, you'll use the appropriate function from the normal distribution, and for
your first input, use the vector you created in (C 7).
(C 10) Overlay dashed vertical lines at x = quantile_values. Use the color
"aquamarine4". You MUST use the specific color name that we have provided.
(Graph 2) After you finish (C 10), save your plot. You will submit it when you submit your
code.
Transcribed Image Text:(C 9) We want to find the r-values associated with the cumulative probabilities given in (C 7), meaning, we want to solve P(X < k) for k, where the values of the probability P(X < k) are the values given in (C 7). This is called finding quantiles / percentiles. Save your vector of quantiles as quantile values. To do this, you'll use the appropriate function from the normal distribution, and for your first input, use the vector you created in (C 7). (C 10) Overlay dashed vertical lines at x = quantile_values. Use the color "aquamarine4". You MUST use the specific color name that we have provided. (Graph 2) After you finish (C 10), save your plot. You will submit it when you submit your code.
R Project 4 Version 5
Graphing a Normal Distribution
Part 1. Generate a plot of the standard normal density function (PDF).
(C 1) We want the r-values to be a sequence from -4.15 to 4.15 by 0.02. Store these as
xvals1.
(C 2) To generate the associated y-values from the standard normal distribution, we input
the xvals1 from (C 1) into the probability density function from a standard normal
distribution. Store these as yvals1.
(C 3) Create a plot of the above r-values and y-values. While creating your plot,
Your graph should be a continuous line.
• The line should be the color "green4". You MUST use the specific color name
that we have provided.
Set the title of the plot to be "Standard Normal Density Function".
Set the r-axis label to be "Standard Normal Variable".
Set the y-axis label to be "Density".
(Graph 1) After you finish (C 3), save your plot. You will submit it when you submit your
code.
Part 2. Generate a plot of the Normal Cumulative Distribution Function (CDF), where
X - N(H = 625, o? = 784)
(C 4) We want the r-values to be a sequence from 520 to 720 by 4. Store these as xvals2.
(C 5) To generate the associated y-values from the cumulative normal distribution
(P(X < x)), we input the xvals2 from (C 4) into the (cumulative) probability
function from the normal distribution provided to you. Store these as yvals2.
(C 6) Create a plot of the above r-values and y-values. While creating your plot,
Your graph should be a contimuous line.
The line should be the color "lightgoldenrod3". You MUST use the specific color
name that we have provided.
• Set the title of of the plot to be "Normal CDF Function".
Set the r-axis label to be "Normal Variable".
Set the y-axis label to be "Cumulative Probability".
(C 7) Save the values 0.03,0.20,0.50, 0.80, 0.97 as a single vector named cumul_pbty.
(C 8) Overlay dotted horizontal lines at the probabilities indicated in (C 7). Use the color
"magental". You MUST use the specific color name that we have provided.
Transcribed Image Text:R Project 4 Version 5 Graphing a Normal Distribution Part 1. Generate a plot of the standard normal density function (PDF). (C 1) We want the r-values to be a sequence from -4.15 to 4.15 by 0.02. Store these as xvals1. (C 2) To generate the associated y-values from the standard normal distribution, we input the xvals1 from (C 1) into the probability density function from a standard normal distribution. Store these as yvals1. (C 3) Create a plot of the above r-values and y-values. While creating your plot, Your graph should be a continuous line. • The line should be the color "green4". You MUST use the specific color name that we have provided. Set the title of the plot to be "Standard Normal Density Function". Set the r-axis label to be "Standard Normal Variable". Set the y-axis label to be "Density". (Graph 1) After you finish (C 3), save your plot. You will submit it when you submit your code. Part 2. Generate a plot of the Normal Cumulative Distribution Function (CDF), where X - N(H = 625, o? = 784) (C 4) We want the r-values to be a sequence from 520 to 720 by 4. Store these as xvals2. (C 5) To generate the associated y-values from the cumulative normal distribution (P(X < x)), we input the xvals2 from (C 4) into the (cumulative) probability function from the normal distribution provided to you. Store these as yvals2. (C 6) Create a plot of the above r-values and y-values. While creating your plot, Your graph should be a contimuous line. The line should be the color "lightgoldenrod3". You MUST use the specific color name that we have provided. • Set the title of of the plot to be "Normal CDF Function". Set the r-axis label to be "Normal Variable". Set the y-axis label to be "Cumulative Probability". (C 7) Save the values 0.03,0.20,0.50, 0.80, 0.97 as a single vector named cumul_pbty. (C 8) Overlay dotted horizontal lines at the probabilities indicated in (C 7). Use the color "magental". You MUST use the specific color name that we have provided.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman