Assume that the stock price is currently trading at $S_0$. It is known that the stock price follows a binomial tree, such that its price will be either $S_0e^{\theta_u}$ or $S_0e^{−\theta_d}$ over the next month. The monthly risk-free rate is $r$ and is continuously compounded. Let's say that I have the simulated monthly price paths as an input. By the paths I can calculate the $r$ and $p=\frac{e^{r\Delta t}-d}{u-d}$.
Now my question is how do I calibrate $\theta_d$, $\theta_u$, and $p$. In order to do so, I think I need to utilize the binomial properties and the method of moments (maybe to get the $\sigma$?). The ultimate goal is to get an analytical solution for each one.