When given a continuous random variable $X$ with a density function, for example $f(x) = .075x +.2,$ for $3 \le x \le 5$ and $0$ otherwise, how would you graph the y-values?
I am fairly sure you'll graph the $y$ values between 3 and 5 on the $x$-axis, and all other $y$ values are $0,$ but between desired values, how do I come up with the $y$-graph? Maybe this is just going right over my head.
Note: I'm also pretty the sure the range is technically infinite between 3 and 5, but how do I know where to start and stop? Not sure if I'm making sense.
Comment: Using the
curvefunction in R statistical software, I got the plot below.But you should do exactly as @Paul says in his Comment. Then you should check to see that the area under the 'curve' is $1,$ as required for a density function. Can you find $P(X \le 4)?$