How would I code for the affine model to extract pure inflation expectations from data on nominal and real yields of bonds? I want to extract the risk premium and convexity of risk preferences from the break even inflation to get pure expectations.
I have been told to use python for this but have limited experience.