Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: Probability in a bi-variate normal gaussian distribution Date: Mon, 4 Nov 2013 13:24:06 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 33 Message-ID: <l5875m$pdb$1@newscl01ah.mathworks.com> References: <l4ok0j$m45$1@newscl01ah.mathworks.com> <l4qf2i$qob$1@newscl01ah.mathworks.com> <l4qibj$a78$1@newscl01ah.mathworks.com> <l4qjua$20j$1@newscl01ah.mathworks.com> <l4tm1n$ias$1@newscl01ah.mathworks.com> <l4tu1q$ihq$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: rubyext-03-ls.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1383571446 26027 172.20.102.179 (4 Nov 2013 13:24:06 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Mon, 4 Nov 2013 13:24:06 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 3799640 Xref: news.mathworks.com comp.soft-sys.matlab:804749 "Torsten" wrote in message <l4tu1q$ihq$1@newscl01ah.mathworks.com>... > "marco" wrote in message <l4tm1n$ias$1@newscl01ah.mathworks.com>... > > "Torsten" wrote in message <l4qjua$20j$1@newscl01ah.mathworks.com>... > > > "marco" wrote in message <l4qibj$a78$1@newscl01ah.mathworks.com>... > > > > Dear Torsten, > > > > > > > > thank you very much. I'm sorry if my question can look trivial but these are my first steps in the statistical world. > > > > > > > > Regards > > > > > > > > Marco > > > > > > It's not trivial, but it's well-studied. > > > In my opinion, the chance to get well-tested matlab code for your problem by a google search is quite high. > > > > > > Best wishes > > > Torsten. > > > > Torsten, I looked for this by google but I did not find any matlab code able to solve my problem. Probably my searches are unsuccessfully because i'm searching in the wrong way. Could you suggest me some starting point ? I'd really appreciate it. > > > > Thanks in advance > > Here is FORTRAN code which can easily be converted to MATLAB code: > http://www.dtic.mil/dtic/tr/fulltext/u2/a102466.pdf > > Best wishes > Torsten. ... and if your impression is that this method is too time-consuming to program, just triangulate your (bounded) polygon and calculate S=sum_i area(T_i)*f(x_i) where T_i is the i-th triangle and f(x_i) is the probability density function evaluated at the barycenter of T_i. Best wishes Torsten.