2 Part Question for a Newbie:
1.) Assume I have a vector that I suspect is already logNormal (I didn't transform it) and I want to get the mean and variance. From what I understand from reading the wikipedia entry on lognormal distributions, I need to find the mean and the stdev of the normal distribution in order to calculate the mean and variance of the lognormal distribution. Does this mean I have to transform my vector into a normal distribution to get the mean and sigma inputs I will use to calculate the log distribution?
2.) I’m trying to learn how to calculate the probability that the number of units of cars sold will be between x and y assuming the the underlying distribution is lognormal.
here is a sample vector (in R):
cars <- c(4950,2475,2017,917,1100,825,1650,1283,1008,1283,642,550,788,825,715,1082,1118,77 0,605,825)
What I'm looking for is the formula for finding the probability that the units of cars sold will be between, say, 750 and 800. (and if anyone can help me with the R code I would be very grateful).