::Free Statistics and Forecasting Software::

v1.1.20
 
 

:: Maximum-likelihood Fitting - Lognormal Distribution - Free Statistics Software (Calculator) ::

The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the meanlog and meansd parameter of the Lognormal distribution fitted against any data series that is specified. The computation is performed by means of the Maximum-likelihood method. In addition the PPCC Plot (Probability Plot Correlation Coefficient Plot) is shown.

Enter (or paste) your data delimited by hard returns.

Send output to:
Data:
 
minimum value of sdlog parameter 
maximum value of sdlog parameter 
Chart options
Width:
Height:


Cite this software as:
Wessa P., (2006), Maximum-likelihood Lognormal Distribution Fitting (v1.0.0) in Free Statistics Software (v1.1.20), Office for Research Development and Education, URL http://www.wessa.net/rwasp_fitdistrlnorm.wasp/
The R code is based on :
Venables, W. N. and Ripley, B. D. (2002), Modern Applied Statistics with S., Fourth edition., Springer.
Source code of R module
1library(MASS)
2PPCC <- function(meanlog, sdlog, x)
3{
4x <- sort(x)
5pp <- ppoints(x)
6cor(qlnorm(pp, meanlog=meanlog, sdlog=sdlog), x)
7}
8par1 <- as.numeric(par1)
9par2 <- as.numeric(par2)
10if (par1 < 0.1) par1 <- 0.1
11if (par1 > 50) par1 <- 50
12if (par2 < 0.1) par2 <- 0.1
13if (par2 > 50) par2 <- 50
14par1h <- par1*10
15par2h <- par2*10
16sortx <- sort(x)
17c <- array(NA,dim=c(par2h))
18for (i in par1h:par2h)
19{
20c[i] <- cor(qlnorm(ppoints(x), meanlog=0,sdlog=i/10),sortx)
21}
22bitmap(file="test1.png")
23plot((par1h:par2h)/10,c[par1h:par2h],xlab="sdlog",ylab="correlation",main="PPCC Plot - Lognormal")
24dev.off()
25(f<-fitdistr(x, "lognormal"))
26xlab <- paste("Lognormal(meanlog=",round(f$estimate[[1]],2))
27xlab <- paste(xlab,", sdlog=")
28xlab <- paste(xlab,round(f$estimate[[2]],2))
29xlab <- paste(xlab,")")
30bitmap(file="test2.png")
31qqplot(qlnorm(ppoints(x), meanlog=f$estimate[[1]], sdlog=f$estimate[[2]]), x, main="QQ plot (Lognormal)", xlab=xlab )
32grid()
33dev.off()
34load(file="createtable")
35a<-table.start()
36a<-table.row.start(a)
37a<-table.element(a,"Parameter",1,TRUE)
38a<-table.element(a,"Estimated Value",1,TRUE)
39a<-table.element(a,"Standard Deviation",1,TRUE)
40a<-table.row.end(a)
41a<-table.row.start(a)
42a<-table.element(a,"meanlog",header=TRUE)
43a<-table.element(a,f$estimate[1])
44a<-table.element(a,f$sd[1])
45a<-table.row.end(a)
46a<-table.row.start(a)
47a<-table.element(a,"sdlog",header=TRUE)
48a<-table.element(a,f$estimate[2])
49a<-table.element(a,f$sd[2])
50a<-table.row.end(a)
51a<-table.end(a)
52table.save(a,file="mytable.tab")

To cite Wessa.net in publications use:
Wessa, P. (2009), Free Statistics Software, Office for Research Development and Education,
version 1.1.20, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.20
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2009  
 
 

Home Page
Equation Plotter
Time Series Analysis
Financial Databases
Multiple Regression
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Latest News
Archive (old versions)
FAQ
About Wessa.net

Black&White
Blue Theme

Google
Web wessa.net

All rights reserved. Academic license for non-commercial use only.

 
This website is kindly sponsored by:
Bandwidth Monitoring | Get a business or technology degree near you