Moving average & st.dev. with outliers
✓ Published0🌍 Public
PPatrick Wojda
Last edited Jan 17, 2020
Created on Oct 15, 2018
A D3.js visualization plots 100 random integers as points, with a steel-blue moving average line computed over a 10-point window via the custom `sma` function. Red points mark outliers where the distance from the moving average exceeds the rolling standard deviation, calculated by the `standardDeviation` function. The chart also renders a semi-transparent standard-deviation band around the average using D3's area and line generators. The raw data array appears as small monospace text at the top, while the SVG output is generated with d3.scaleLinear, d3.randomIrwinHall, and d3.curveCatmullRomOpen.
AI-generated descriptionBuilt with blockbuilder.org