Help needed!

 
Hey guys,
I really need your help to do 3 things:

1) Closing price for the last 100 days;
2) Average daily variation based on those last 100 days;
3) Linear Regression, to compare this average variation of an asset A with an asset B

You guys already did something like that, were you able to help me?