WOLFRAM NOTEBOOK

Some wierd behavoir when trying to use a PDF


First: Creation of my Distribution

Plot of a Graphic to test my distribtuion
In[]:=
Plot[Sin[x],{x,0,2π}]
Out[]=
In[]:=
Plot[Sin[x],{x,0,3π/2}]
Out[]=
In[]:=
Plot[1+Sin[x],{x,0,3π/2}]
Out[]=
In[]:=
preFfdp=1+Sin[x]
Out[]=
1+Sin[x]
In[]:=
myDistFunc=preFfdp/Integrate[preFfdp,{x,0,3π/2}]
Out[]=
1+Sin[x]
1+
3π
2
In[]:=
myDist=ProbabilityDistribution[myDistFunc,{x,0,3π/2}]
Out[]=
ProbabilityDistribution
1+Sin[x.]
1+
3π
2
,x.,0,
3π
2
In[]:=
PDF[myDist,x]
Out[]=
1+Sin[x]
1+
3π
2
0<x<
3π
2
0
True

Second: Test of my Distribution

First, make a plot
In[]:=
Plot[PDF[myDist,x],{x,0,3π/2}]
Out[]=
Now test other probability related Wolfram Languajes Functions
In[]:=
Plot[{PDF[myDist,x],CDF[myDist,x]},{x,0,3π/2}]
Out[]=

An then .. something weird happens when making Plots

In[]:=
Plot[PDF[myDist,x],{x,0,1}]Plot[PDF[myDist,x],{x,0,2}]Plot[PDF[myDist,x],{x,0,3}]Plot[PDF[myDist,x],{x,0,3.5}]Plot[PDF[myDist,x],{x,0,3π/2}]
Out[]=
Out[]=
Out[]=
Out[]=
Out[]=

Depending on the Plotting Range, I see the PDF starting from a Different vertical postion at x = 0.
Why is this?

Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.