nataliaburrey / Forecasting

Forcasting With Net Prophet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen Shot 2021-06-07 at 6 13 12 PM

"In this Challenge, I will assume the role of growth analyst at MercadoLibre-most popular e-commerce site in Latin America. With a task of analyzing the company's financial and user data i need to find a clever ways to make the company grow. Using my new skills of forecasting future with Prophet, i will try to predict search traffic and translate it into the ability to successfully trade the stock "

Forecasting

Forecasting With Prophet

Challenge 11

!!! Go to "How to install" in order to properly run the code.

Table of content

Overview of the project and project goals

The goal is to create a Jupyter notebook that contains your data preparation, analysis, and visualizations for all the time series data that the company needs to understand. Text and comments to document my findings, and answered the question prompts in the instructions, plot the results so that we can visually show illustrate the predictions.

Screen Shot 2021-06-07 at 6 17 15 PM

Software version control

Libraries

  • Pandas - is a software library designed for data analytics that makes it easier to work with data from practically any type of file. Pandas supplies powerful tools for working with time data in particular, and time is a key aspect of financial analysis. Analysts typically compare and measure financial assets—from single stocks to large portfolios—across time.
  • Prophet - is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.
  • Following libraries were imported
# Import the required libraries and dependencies
import pandas as pd
from pathlib import Path
import holoviews as hv
from fbprophet import Prophet
import hvplot.pandas
import datetime as dt
%matplotlib inline

The following code is also promped us to install nesessary libriries right in google colab:

Screen Shot 2021-06-07 at 6 20 56 PM

Interfaces

  • Google Colab The Facebook Prophet library can be difficult to install on some machines, so in this module you'll also get aquainted with Google Colab - an IDE that allows you to run Jupyter Notebooks in the cloud.

Work with GitHub

  • Repository created on GitHub
  • Files were committed using command line
  • Our repository is organized, and includes Resources folder with CSV project files,
  • Jupyter Notebook with code runs without errors.
  • Answers on nesassary questions are included

How to install

  • Save remote repo from GitHub to your computer (Desktop): in Terninal type:
cd desktop

git clone https://github.com/nataliaburrey/Forecasting.git

now you can find repo on your desktop

  • We will run a Jupyter Notebook in Google Colab
  • Choose [ forecasting_net_prophet.ipynb ] file in Forecasting folder to see the analysis report.

Screen Shot 2021-06-07 at 6 28 55 PM

The following code in the document promts you to Choose appropriate CSV file to access the data

from google.colab import files
uploaded = files.upload()

Particularly in "Step 1: Find Unusual Patterns in Hourly Google Search Traffic"

Screen Shot 2021-06-07 at 9 56 59 PM

and "Step 3: Relate the Search Traffic to Stock Price Patterns"

Screen Shot 2021-06-07 at 10 00 02 PM

Results and summary of the analysis

  • Step 1.

Screen Shot 2021-06-07 at 10 04 19 PM

  • Step 2.

Screen Shot 2021-06-07 at 10 05 12 PM

  • Step 3.

Screen Shot 2021-06-07 at 10 06 26 PM

  • Step 4.

Screen Shot 2021-06-07 at 10 08 14 PM

  • Explore the correlation:

Screen Shot 2021-06-07 at 10 08 58 PM

  • Forcast with Prophet

Screen Shot 2021-06-07 at 10 09 53 PM

  • Slice and explore the data:

Screen Shot 2021-06-07 at 10 12 18 PM

Screen Shot 2021-06-07 at 10 10 46 PM

Helps recruiters

The project was created in collaboration with Berkeley Fintech Bootcamp team: Allan Hall, Joel Gonzales.

Tutor Lavina Tang helped me to polish my code and tought me how to run separate parts of code to see if it works every step.

AskBCS Learning Assistant channel was used to troubleshoot some of the accuring problems outside of the classroom

License

MIT

About

Forcasting With Net Prophet


Languages

Language:Jupyter Notebook 100.0%