Master Markowitz Portfolio Optimization (Efficient Frontier) in Python using Pandas

What is Markowitz Portfolios Optimization (Efficient Frontier)? The Efficient Frontier takes a portfolio of investments and optimizes the expected return in regards to the risk. That is to find the optimal return for a risk. According to investopedia.org the return is based on the expected Compound Annual Growth Rate (CAGR) and risk metric is the … Read more

NumPy: Compute Mandelbrot set by Vectorization

What will we cover in this tutorial? Understand what the Mandelbrot set it and why it is so fascinating. Master how to make images in multiple colors of the Mandelbrot set. How to implement it using NumPy vectorization. Step 1: What is Mandelbrot? Mandelbrot is a set of complex numbers for which the function f(z) … Read more

NumPy: How does Sexual Compulsivity Scale Correlate with Men, Women, or Age?

Background According to wikipedia, the Sexual Compulsivity Scale (SCS) is a psychometric measure of high libido, hypersexuality, and sexual addiction. While it does not say anything about the score itself, it is based on people rating 10 questions from 1 to 4. The questions are the following. The questions are rated as follows (1=Not at … Read more