<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995</link>
    <title>MATLAB Central Newsreader - Coding Probability Density (that is a large summation)</title>
    <description>Feed for thread: Coding Probability Density (that is a large summation)</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 12 May 2008 13:52:06 -0400</pubDate>
      <title>Re: Coding Probability Density (that is a large summation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995#431562</link>
      <author>Peter Perkins</author>
      <description>OR Stats wrote:&lt;br&gt;
&amp;gt; I suppose the confusion is how to express the density when&lt;br&gt;
&amp;gt; symbolically it is 100+ terms...   &lt;br&gt;
&lt;br&gt;
OR, I don't have enough information to know the right answer, but if you cannot &lt;br&gt;
write it as a vectorized expression, then you can write a loop.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 10 May 2008 14:59:03 -0400</pubDate>
      <title>Re: Coding Probability Density (that is a large summation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995#431360</link>
      <author>OR Stats</author>
      <description>I suppose the confusion is how to express the density when&lt;br&gt;
symbolically it is 100+ terms...   &lt;br&gt;
&lt;br&gt;
"OR Stats" &amp;lt;stats112@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g02ju0$46k$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks for your suggestion, Peter.  How would I express the&lt;br&gt;
&amp;gt; likelihood estimation in MATLAB when the density itself is&lt;br&gt;
&amp;gt; 100 some terms?  Do I have an alternative to coding all 100&lt;br&gt;
&amp;gt; terms?  f1(a,k)*f2(x,a,k), where k is my index, which is&lt;br&gt;
&amp;gt; unrelated to my data points x themselves.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Peter Perkins &amp;lt;Peter.PerkinsRemoveThis@mathworks.com&amp;gt; wrote&lt;br&gt;
&amp;gt; in message &amp;lt;g02dh4$l7t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; OR Stats wrote:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; It can be thought of as an optimization problem for which&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; the parameters need to be recovered when the x's are&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; observed.  E.g.,  density function f with unknown&lt;br&gt;
&amp;gt; parameter a:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; f(x) =  Sum _k=0 to 100_    { f1(a,k)*f2(x,a,k)}&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Both f1 and f2 can be expressed analytically.  But clearly&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; it is unfortunate that f(x) is an infinite summation&lt;br&gt;
of the&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; two functions multiplied together.  Since I am&lt;br&gt;
interested in&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; is using my observed 'x''s to estimate 'a'.  How can I do&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; this estimation in MATLAB?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; In theory, this is no different than any other maximum&lt;br&gt;
&amp;gt; likelihood problem, and &lt;br&gt;
&amp;gt; &amp;gt; could be solved using, for example, FMINSEARCH, FMINCON,&lt;br&gt;
&amp;gt; MLE (in the Statistics &lt;br&gt;
&amp;gt; &amp;gt; Toolbox), or others.  In practice, who knows what&lt;br&gt;
&amp;gt; statistical and numeric &lt;br&gt;
&amp;gt; &amp;gt; properties this likelihood function has.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hope this helps.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 09 May 2008 22:41:04 -0400</pubDate>
      <title>Re: Coding Probability Density (that is a large summation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995#431308</link>
      <author>OR Stats</author>
      <description>Thanks for your suggestion, Peter.  How would I express the&lt;br&gt;
likelihood estimation in MATLAB when the density itself is&lt;br&gt;
100 some terms?  Do I have an alternative to coding all 100&lt;br&gt;
terms?  f1(a,k)*f2(x,a,k), where k is my index, which is&lt;br&gt;
unrelated to my data points x themselves.&lt;br&gt;
&lt;br&gt;
Peter Perkins &amp;lt;Peter.PerkinsRemoveThis@mathworks.com&amp;gt; wrote&lt;br&gt;
in message &amp;lt;g02dh4$l7t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; OR Stats wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; It can be thought of as an optimization problem for which&lt;br&gt;
&amp;gt; &amp;gt; the parameters need to be recovered when the x's are&lt;br&gt;
&amp;gt; &amp;gt; observed.  E.g.,  density function f with unknown&lt;br&gt;
parameter a:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; f(x) =  Sum _k=0 to 100_    { f1(a,k)*f2(x,a,k)}&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Both f1 and f2 can be expressed analytically.  But clearly&lt;br&gt;
&amp;gt; &amp;gt; it is unfortunate that f(x) is an infinite summation of the&lt;br&gt;
&amp;gt; &amp;gt; two functions multiplied together.  Since I am interested in&lt;br&gt;
&amp;gt; &amp;gt; is using my observed 'x''s to estimate 'a'.  How can I do&lt;br&gt;
&amp;gt; &amp;gt; this estimation in MATLAB?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In theory, this is no different than any other maximum&lt;br&gt;
likelihood problem, and &lt;br&gt;
&amp;gt; could be solved using, for example, FMINSEARCH, FMINCON,&lt;br&gt;
MLE (in the Statistics &lt;br&gt;
&amp;gt; Toolbox), or others.  In practice, who knows what&lt;br&gt;
statistical and numeric &lt;br&gt;
&amp;gt; properties this likelihood function has.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope this helps.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 09 May 2008 20:51:48 -0400</pubDate>
      <title>Re: Coding Probability Density (that is a large summation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995#431297</link>
      <author>Peter Perkins</author>
      <description>OR Stats wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; It can be thought of as an optimization problem for which&lt;br&gt;
&amp;gt; the parameters need to be recovered when the x's are&lt;br&gt;
&amp;gt; observed.  E.g.,  density function f with unknown parameter a:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; f(x) =  Sum _k=0 to 100_    { f1(a,k)*f2(x,a,k)}&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Both f1 and f2 can be expressed analytically.  But clearly&lt;br&gt;
&amp;gt; it is unfortunate that f(x) is an infinite summation of the&lt;br&gt;
&amp;gt; two functions multiplied together.  Since I am interested in&lt;br&gt;
&amp;gt; is using my observed 'x''s to estimate 'a'.  How can I do&lt;br&gt;
&amp;gt; this estimation in MATLAB?&lt;br&gt;
&lt;br&gt;
In theory, this is no different than any other maximum likelihood problem, and &lt;br&gt;
could be solved using, for example, FMINSEARCH, FMINCON, MLE (in the Statistics &lt;br&gt;
Toolbox), or others.  In practice, who knows what statistical and numeric &lt;br&gt;
properties this likelihood function has.&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 09 May 2008 11:34:03 -0400</pubDate>
      <title>Coding Probability Density (that is a large summation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168995#431232</link>
      <author>OR Stats</author>
      <description>Hello M-Community:&lt;br&gt;
&lt;br&gt;
I am fitting a density to my data.  I would therefore like&lt;br&gt;
to estimate parameters of the density function based on my&lt;br&gt;
data.  The density, however, is expressed as a summation. &lt;br&gt;
It is not one of the preconfigured densities found in MATLAB.  &lt;br&gt;
&lt;br&gt;
The summation has 100 terms and cannot be re-expressed in&lt;br&gt;
simpler form.  And rather than literally writing every term,&lt;br&gt;
it would be easier to write a loop.  But how may I code this&lt;br&gt;
estimation as such in MATLAB?&lt;br&gt;
&lt;br&gt;
It can be thought of as an optimization problem for which&lt;br&gt;
the parameters need to be recovered when the x's are&lt;br&gt;
observed.  E.g.,  density function f with unknown parameter a:&lt;br&gt;
&lt;br&gt;
f(x) =  Sum _k=0 to 100_    { f1(a,k)*f2(x,a,k)}&lt;br&gt;
&lt;br&gt;
Both f1 and f2 can be expressed analytically.  But clearly&lt;br&gt;
it is unfortunate that f(x) is an infinite summation of the&lt;br&gt;
two functions multiplied together.  Since I am interested in&lt;br&gt;
is using my observed 'x''s to estimate 'a'.  How can I do&lt;br&gt;
this estimation in MATLAB?&lt;br&gt;
&lt;br&gt;
Thanks in advance for your thoughts and suggestions.&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
