Path: news.mathworks.com!not-for-mail
From: "Nancy Hammond" <nahammond@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: syntax for lognpdf(X,mu,sigma)
Date: Fri, 28 Aug 2009 20:38:21 +0000 (UTC)
Organization: RCF Economic &#38; Financial
Lines: 11
Message-ID: <h79f7t$4t8$1@fred.mathworks.com>
Reply-To: "Nancy Hammond" <nahammond@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251491901 5032 172.30.248.38 (28 Aug 2009 20:38:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 Aug 2009 20:38:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1441668
Xref: news.mathworks.com comp.soft-sys.matlab:566864


When  x = log(X) ~ N(mu,sigma),  X ~ LN(mu, sigma)

I don't find the  documentation clear about the data argument in lognpdf

After fitting parameters for X~N(mu,sigma), I get 
probabilities > 1 for p =  lognpdf(X,mu, sigma)
probabilities < 1 for p =  lognpdf((log(X)-mu)/sigma,0,1)

Thanks

nh