Question
In statistics, the concept of a normal distribution isintroduced. For example, in the U.S., the average height ofan adult male is 70 inches, while the
- In statistics, the concept of a normal distribution isintroduced. For example, in the U.S., the average height ofan adult male is 70 inches, while the average height of an adultfemale is 65 inches. The standard deviation is ameasure of the variability in heights. The standard deviationof males is 4 inches, and the standard deviation of females is 3.5inches. (Data from:https://www.usablestats.com/lessonsormal). A curve calledthe probability density function, also called a Bell Curvebecause of its shape, illustrates the distribution of heightswithin the entire population. The equation of the probabilitydensity function is:
p=1?2?e-1/2x-?2?2
Where x = the independentvariable (the height in this case)
? = the mean (theaverage height)
? = the standard deviation
Use MATLAB to create a graph thatshows the probability density functions of male and female heightson a single graph.
- Begin by creating an array of x (height) values.
- Create an array of p values using the equationand ? and? values for males
- Plot x on the horizontal axisand p on the vertical axis
- Issue the hold on command
- Create a second array of p values using the equationand ? and? values for females
- Plot x on the horizontal axisand p on the verticalaxis
How do know what upper and lowervalues to use for the initial values of heights? Usetrial-and-error and use the up-arrow key to repeat the subsequentcommands. Select values that show both bell curves very closeto zero at the left and right edges of on the graph.
= 1 2 e-1/2((x-)/0)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started