Shahid Latif

Expected Returns (Finance/Risk Management) using PyPortfolioOpt

Today we will calculate expected returns from historical data. We will calculate Mean historical return, Exponential Moving Average (EMA) historical return, and historical return using Capital Asset Pricing Model (CAPM). We will also calculate Variance, Standard Deviation and Correlation using Statistics library. #expectedreturn #stockmarket #exponentialmovingaverage #capm #variance #standarddeviation #correlation #pypfopt

Read More

Dimensional Model Report using Adventure Works sample data

Today we will show you how to: – Import data from MS Excel – Create dimensional model – Create relational data model – Create hierarchies – Create charts, diagrams, slices, matrix and maps – Create measures using Data Analysis Expressions (DAX) We will use Adventure Works sample data available at GitHub for this tutorial https://github.com/microsoft/powerbi-desktop-samples/blob/main/AdventureWorks%20Sales%20Sample/AdventureWorks%20Sales.xlsx…

Read More

Machine Learning, Classification using Nearest Centroid Classifier

In this tutorial, we will show you how to: – Read a csv file using Pandas library – Create and train a Nearest Centroid Classifier sklearn.neighbors – Use Principal component analysis (PCA) to compress dataframe – Predict #Iris dataset using Nearest Centroid Classifier – Create Visualizations using matplotlib #python #machinelearning #matplotlib #sklearn #scikitlearn #nearestcentroid #nearestcentroidclassifier…

Read More

Support Vector Machine for Classification

In this tutorial, we will show you how to: – Read a csv file using Pandas library – Create and train a Support Vector Machine (SVM) – Use Principal component analysis (PCA) to compress dataframe – Predict #Iris dataset using Support Vector Classification – Create Visualizations using matplotlib #python #machinelearning #matplotlib #sklearn #scikitlearn #supportvectormachine

Read More