Skip to main content
100%

LOESS

✓ Published0🌍 Public
CCurran Kelleher
Last edited Dec 2, 2015
Created on Dec 2, 2015

This example demonstrates the LOESS (locally weighted regression) smoothing technique on noisy sinusoidal data. The visualization displays 100 randomly generated data points, each represented by a small circle, with a smooth black trend line overlaid to show the underlying pattern. The data is simulated, with x values evenly spaced from 0 to 1 and y values following a sine wave with added random noise. LOESS regression is applied using the science.js library with a bandwidth of 0.2, producing a smooth curve that captures the data’s trend. The chart includes axes, uses an SVG rendering, and is built with D3.js v3 and science.js.

AI-generated description

This is a copy of work done by Jason Davies that demonstrates use of science.js. It is posted here simply so it can be studied. The original example code can be found at science.js/examples/loess. Slight modifications were made so it displays well on bl.ocks.org.

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1984930&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->

Similar vizzes