first of all, I'm not a statistician nor a data scientist, but a software developer. Thus, although I do have some (old) knowledge in statistics and probabilities, my vocabulary may not be very accurate.
I'm working on an app in which we must draw incomes from a parametrized distribution such as lognormal, gamma, Weibull, etc. (the choice is to be made yet). We need to fit that distribution before we raw values. The available input data are quantiles, most often (but not always) the 1st to 9th deciles.
I'm looking for a mathematical way to perform the fit that wil later be implemented in Python/SciPy. I know there are least-square methods to do so but I'd prefer to use maximum-likelihood methods. What I was thinking of is the following. Let us call $q_i$ the available (observed) quantiles, each for a "rank" $x_i$. If the sample is $N$-sized, and with $F$ being the CDF of the distribution, then the probability to draw $Nx_i$ values less or equal to $q_i$ is: $$P(n=Nx_i)={{N}\choose{Nx_i}}F(q_i)^{Nx_i}(1-F(q_i))^{N(1-x_i)}$$ From there I was thinking to maximize the following "likelihood" estimator: $$\mathcal{L(a_1, a_2, ...)}=\sum_i x_i\ln{F(q_i; a_1, b_2, ...)}+(1-x_i)\ln{(1-F(q_i; a_1, a_2, ...))}$$ where $a_1$, $a_2$, $...$ are the distribution parameters.
Now, admittedly, I'm not quite sure the approach is correct. What do you think of it? In particular, should I consider not the likelihood for $Nx_i$ values to belong to $(-\infty, q_i]$ but rather the likelihood for $N(x_{i+1}-x_i)$ values to fall in the $(q_i, q_{i+1}]$ interval?
Also, feel free to correct my terms and considerations. E.g., I'd be glad to learn how to call the $x_i$'s rigorously.
EDIT: here comes another estimator to maximize given $I$ observed quantiles $q_0$, $q_1$... $q_{I-1}$. This one is based on the likelihood to find $Nx_0$ items up to $q_0$, then $N(x_1-x_0)$ of the remaining items in the $(q_0, q_1]$ interval, and so on: $$\mathcal{L}_2=x_0\ln{F(q_0)}+(1-x_{I-1})\ln(1-F(q_{I-1}))+\sum_{i=0}^{i=I-2}(x_{i+1}-x_i)\ln(F(q_{i+1})-F(q_i))$$ Would $\mathcal{L}_2$ be more or less relevant than $\mathcal{L}$? Explanations will obviously be welcome!