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.
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
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
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
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
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman