Message Boards Message Boards

[?] Plot the following function?

Posted 6 years ago

Consider the following code:

f[b_] = ProbabilityDistribution[ b Exp[-bx] , {x, 0.01, \[Infinity]},   Assumptions -> b > 0];
Plot[PDF[f[1.5], x], {x, 0, 2}, PlotRange -> All]
POSTED BY: jawad hussain
2 Replies
Posted 6 years ago

Thank You Hans Milton. It works

POSTED BY: jawad hussain
Posted 6 years ago

I think you are missing a space between b and x in -bx. Or an explicit multiplication operator.

f[b_] = ProbabilityDistribution[b Exp[-b*x], {x, 0.01, \[Infinity]}, Assumptions -> b > 0];

Plot[PDF[f[1.5], x], {x, 0, 2}]

enter image description here

POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract