Measuring and hedging the basis risk by Functional Demographic Models