viewof numSamples = Inputs.range([1, 50], {
value: 5,
step: 1,
label: "Number of samples (N)"
})
viewof originalNoise = Inputs.range([0.05, 1.0], {
value: 0.14,
step: 0.01,
label: "Original noise (σ in °C)"
})
reducedNoise = originalNoise / Math.sqrt(numSamples)
improvementFactor = reducedNoise > 0 ? originalNoise / reducedNoise : 0
html`<div style="background: var(--bs-light, #f8f9fa); padding: 20px; border-radius: 8px; border-left: 4px solid #16A085; margin-top: 15px; font-family: Arial, sans-serif;">
<h4 style="color: #2C3E50; margin-top: 0;">Noise Reduction Results</h4>
<table style="width: 100%; border-collapse: collapse; margin-top: 10px;">
<tr style="background: #e8f5f2;">
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; font-weight: bold; color: #2C3E50;">Original Noise (σ)</td>
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; color: #2C3E50;">${originalNoise.toFixed(3)}°C</td>
</tr>
<tr>
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; font-weight: bold; color: #2C3E50;">Samples Averaged (N)</td>
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; color: #2C3E50;">${numSamples}</td>
</tr>
<tr style="background: #e8f5f2;">
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; font-weight: bold; color: #2C3E50;">Reduced Noise (σ/√N)</td>
<td style="padding: 10px; border-bottom: 1px solid #d4e9e2; color: #16A085; font-weight: bold;">${reducedNoise.toFixed(3)}°C</td>
</tr>
<tr>
<td style="padding: 10px; font-weight: bold; color: #2C3E50;">Improvement Factor</td>
<td style="padding: 10px; color: #E67E22; font-weight: bold;">${improvementFactor.toFixed(2)}×</td>
</tr>
</table>
<p style="margin-top: 15px; color: #555; font-size: 14px; font-style: italic;">
Formula: Reduced Noise = σ / √N. Note that doubling improvement requires 4× samples (e.g., 2× improvement needs N=4, 3× needs N=9).
</p>
</div>`Noise Reduction Calculator
Noise Reduction Calculator
animation
sensing
data-processing
Try Increase Number of samples (N) from 5 while holding Original noise (σ in °C) at 0.14.
Observe For the initial 5 samples, Reduced Noise is 0.063°C and the Improvement Factor is 2.24×.
Explain The estimate divides Original noise (σ in °C) by the square root of Number of samples (N), so the default improvement is the square root of 5.
Technical boundaries. The square-root rule assumes independent samples with equal noise variance. The calculator takes 1–50 samples and does not model correlated noise, bias or the response delay caused by averaging.
Try It: Noise Reduction Calculator