We can only make educated guesses about what will happen next, but a tool called the "yield curve" is helpful for forecasting. In fact, not only can it give you a snapshot of what's happening with ...
Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize, and with many additional classes and methods for curve fitting.