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.
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 14E
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images
Recommended textbooks for you
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
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
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
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage