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.

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter13: Probability And Calculus
Section13.2: Expected Value And Variance Of Continuous Random Variables
Problem 13E
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
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage