# ::Free Statistics and Forecasting Software::

v1.2.1

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

All rights reserved. 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: Browser Blue - Charts White Browser Black/White CSV Data[reset data] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432 minimum value of sdlog parameter maximum value of sdlog parameter Chart options Width: Height: Title: Label y-axis: Label x-axis:

 Source code of R module library(MASS) library(car) PPCC <- function(meanlog, sdlog, x) { x <- sort(x) pp <- ppoints(x) cor(qlnorm(pp, meanlog=meanlog, sdlog=sdlog), x) } par1 <- as.numeric(par1) par2 <- as.numeric(par2) if (par1 < 0.1) par1 <- 0.1 if (par1 > 50) par1 <- 50 if (par2 < 0.1) par2 <- 0.1 if (par2 > 50) par2 <- 50 par1h <- par1*10 par2h <- par2*10 sortx <- sort(x) c <- array(NA,dim=c(par2h)) for (i in par1h:par2h) { c[i] <- cor(qlnorm(ppoints(x), meanlog=0,sdlog=i/10),sortx) } bitmap(file="test1.png") plot((par1h:par2h)/10,c[par1h:par2h],xlab="sdlog",ylab="correlation",main="PPCC Plot - Lognormal") dev.off() (f<-fitdistr(x, "lognormal")) sub <- paste("Lognormal(meanlog=",round(f\$estimate[[1]],2)) sub <- paste(sub,", sdlog=") sub <- paste(sub,round(f\$estimate[[2]],2)) sub <- paste(sub,")") r <- fitdistr(log(x), "normal") bitmap(file="test2.png") myhist<-hist(log(x), col=par1, breaks="Sturges", main=main, ylab=ylab, xlab="ln(x)", sub=sub, freq=F) curve(1/(r\$estimate[2]*sqrt(2*pi))*exp(-1/2*((log(x)-r\$estimate[1])/r\$estimate[2])^2), min(log(x)), max(log(x)), add=T) dev.off() bitmap(file="test3.png") qqPlot(x, dist="lnorm", main="QQ plot (Lognormal) with confidence intervals") grid() dev.off() load(file="createtable") a<-table.start() a<-table.row.start(a) a<-table.element(a,"Parameter",1,TRUE) a<-table.element(a,"Estimated Value",1,TRUE) a<-table.element(a,"Standard Deviation",1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,"meanlog",header=TRUE) a<-table.element(a,f\$estimate[1]) a<-table.element(a,f\$sd[1]) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,"sdlog",header=TRUE) a<-table.element(a,f\$estimate[2]) a<-table.element(a,f\$sd[2]) a<-table.row.end(a) a<-table.end(a) table.save(a,file="mytable.tab")
 Top | Output | Charts | References

 Cite this software as: Wessa P., (2021), Maximum-likelihood Lognormal Distribution Fitting (v1.0.4) in Free Statistics Software (v1.2.1), 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.
 Top | Output | Charts | References