📈Python for finance series
Identifying Outliers
How to find and visualize outliers in your dataset by Pandas
Warning: There is no magical formula or Holy Grail here, though a new world might open the door for you.
📈Python For Finance Series
- Identifying Outliers
- Identifying Outliers — Part Two
- Identifying Outliers — Part Three
- Stylized Facts
- Feature Engineering & Feature Selection
- Data Transformation
- Fractionally Differentiated Features
- Data Labelling
- Meta-labeling and Stacking
In Part one and Part two, I introduced the mean and standard deviation (std) to set the outliers boundary. Here we are going to use Exponential Moving Average (EMA) as the boundary. The method is the same as before, the difference lays in the way of calculating the EMA mean and std.
1. Data preparation
Again we reuse the same dataset as before. The following code snippet will get you started. If you have been following these series along, you can ignore this part and jump to the next section straight away.