Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15147 > unrolled thread

Re: User-defined Probability Mass Function

Started byPeter Klamser <klamser@googlemail.com>
First post2013-07-08 03:19 +0000
Last post2013-07-08 03:19 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: User-defined Probability Mass Function Peter Klamser <klamser@googlemail.com> - 2013-07-08 03:19 +0000

#15147 — Re: User-defined Probability Mass Function

FromPeter Klamser <klamser@googlemail.com>
Date2013-07-08 03:19 +0000
SubjectRe: User-defined Probability Mass Function
Message-ID<krdb4g$ept$1@smc.vnet.net>
With ProbabilityDistribution you define a function, that Mathematica handles
as a arbitrary ProbabilityDistribution you can define.

Mathematica offers you the transformation from a PDF to a CDF (cumulative
distribution function). That is the part of the functional programming
concept of Mathematica.

What you search, I think, is bfitting the Parameters of a classic PDF
to the data you offer:

xv={-2.1, 3.45, 7};
yv={0.5,0.3,0.2};
xyv=Transpose[{xv,yv}];
ListPlot[Transpose[{xv,yv}]]
NonlinearModelFit[xyv,PDF[ChiDistribution[\[Nu]],x],{\[Nu]},x]

Kind regards wishes Peter

Sehr geehrter Herr Frau ,



Freundliche Gr=FC=DFe sendet

Dr. Peter Klamser


2013/7/6  <bruce.colletti@gmail.com>:
> The questions below can presumably be answered in terms of
ProbabilityDistribution, so here goes...
>
> How do I create a distribution for the discrete random variable whose
support is {-2.1, 3.45, 7} having corresponding probabilities {0.5, 0.3,
0.2}?
>
> What if the support is {-2.1, 3.45, pi}?
>
> If ProbabilityDistribution cannot support these, then what?
>
> Thanks.
>
> Bruce
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web