On Thu, Aug 31, 2017 at 6:35 AM, Ode Idoko via Python-list
<python-list@python.org> wrote:
>
> I am running a master degree programme and very new to programming including 
> python. I have been given a project to write a python program on exponential 
> smoothing of some selected stocks. The program should user the user to input 
> alpha, display the graph of the original data and "smoothed data".
>
> On the same python program, I am to develop a linear regression model to 
> predict the next period, showing correlation coefficients to indicate the 
> strength of the model.
>
> I have been able to write a program which returns some values but no graph 
> and also having difficulties with the linear regression.

SciPy (https://www.scipy.org/) will provide a linear regression for
you. In particular, see
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html

Matplotlib (https://matplotlib.org/) is a good tool for plotting graphs.

I suggest starting with those.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to