Online Insurance Learning