r - How to plot a constant function Probability Density Function -


i have function this:

f(x) = 1/b-a  = 5% , b =15% , x = rate of return. 

i plot probability density function of this.

what have tried:

i know need use dname() density or probability function not know name pass this.

as roman suggests, how following:

curve(dunif(x, min = 5, max = 15),0,20,n=101,xlab='expected return',ylab='density') 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -