Investment Analysis — Stock Research

Experimenting with stock selection and portfolio optimization using fundamental indicators.

alpha2phi
4 min readJun 11

--

Investment Analysis — Stock Selection

We will experiment with stock selection and portfolio optimization using fundamental indicators.

This article is part of the Investment Analysis series.

The source code is available in this repository.

The content of this article is not investment advice. Investment involves risk. Always use your judgment for any investment decision.

Getting Started

In this article, we will look at using our coding skills to prepare a finance dataset, define and develop criteria for stock selection, and use optimization techniques to help us derive the stock portfolio.

Dataset

Let’s get started with the dataset. Below is a snapshot of the dataset we will be using.

The dataset is prepared using the approaches described in this article.

The updated notebook is available here.

Stock Dataset

The statistics and details of the stocks in the dataset are retrieved using the yahooquery_downloader.py script, as shown below.

  • The script retrieves stock information from Yahoo Finance and downloads them into an Excel file.
  • We will be looking at more than 16 000 stocks, with 149 fields comprising different information for each stock, as shown below.
Stock Statistics

A snapshot of the downloaded dataset is shown below.

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.