Why doesn't discont=true work in this case?

October 02 2011 by DJJerome1976 75
false
Maple 15

3


I am trying to plot the cdf of a binomial random variable, which has jump discontinuities at each of the integers with positive probability mass. Typically, when plotting a piecewise function, one would prefer not to have Maple connect all the points of discontinuity with a vertical line, and discont=true achieves that. Why doesn't the following command yield the expected results:

with(Statistics):

with(plots):

X:=RandomVariable(Binomial(25,.65)):

F:=x->CDF(X,x):

plot(F(x),x=-1..27,y=0..0.5,gridlines=true,discont=true)

 

The plot I get still has vertical lines connecting the jump discontinuities.

 

Any ideas/help will be greatly appreciated, thanks!

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account