Linear regression values

 
Can someone tell me how I can get the linear regression vallue    OBJPROP_PRICE2   for the hour graph and the minute graph? What should the code look like? Many thanks, Marius