nustalgic / Unsupervised-Learning

Combined financial Python programming skills with the new unsupervised learning skills that I acquired. You’ll create a Jupyter notebook that clusters cryptocurrencies by their performance in different time periods. Plotted the results so I can visually show the performance to the board.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crypto Clustering

Module 10 Challenge

10-5-challenge-image.png

Background

In this Challenge, I’ll assume the role of an advisor in one of the top five financial advisory firms in the world. Competitors are fierce, so you want to propose a novel approach to assembling investment portfolios that are based on cryptocurrencies.

Instead of basing my proposal on only returns and volatility, I'll include other factors that might impact the crypto market—leading to better performance for my portfolio.


Technologies

The data we're analyzing comes from a jupyter notebook that we've created and imported files to. We'll be using Python to run and read our data.


Installation Guide

In order for us to get the data we need we must import pandas, plots and the csv files we want to observe.

# Import required libraries and dependencies
import pandas as pd
import hvplot.pandas
from path import Path
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler

Usage

To find the information needed we build a jupyter notebook and run various functions to pull the data from csv files.

# Plot a line chart with all the inertia values computed with 
# the different values of k to visually identify the optimal value for k.
elbow_plot = df_elbow.hvplot.line(x="k", y="inertia", title="Elbow Curve", xticks=k)
elbow_plot

Elbow Curve for Optimal Clusters

elbow-curve.png


Contributors

Brought to you by Elgin Braggs Jr.


License

MIT

About

Combined financial Python programming skills with the new unsupervised learning skills that I acquired. You’ll create a Jupyter notebook that clusters cryptocurrencies by their performance in different time periods. Plotted the results so I can visually show the performance to the board.

License:MIT License


Languages

Language:Jupyter Notebook 100.0%