Optimizing Round-Off Accuracy in Source Spectrum Calculations

  • Thread starter Thread starter DEvens
  • Start date Start date
  • Tags Tags
    Stupid
Click For Summary
SUMMARY

The forum discussion focuses on optimizing round-off accuracy in source spectrum calculations, specifically when calculating the source spectrum per cubic meter from a total volume of 100,016 cubic meters. The analysis reveals that due to rounding to three significant digits, a consistent fractional difference of 1.6E-4 occurs across forty values. This phenomenon is attributed to the rounding behavior of the original data, where the terminal digit is always zero, leading to cumulative errors in calculations. The discussion highlights the importance of understanding round-off errors, referencing Ed Lorenz's work on weather model predictions as a cautionary tale.

PREREQUISITES
  • Understanding of source spectrum calculations
  • Familiarity with numerical analysis and round-off errors
  • Proficiency in spreadsheet software for data manipulation
  • Knowledge of significant figures and their impact on calculations
NEXT STEPS
  • Research methods to minimize round-off errors in numerical computations
  • Explore the implications of significant figures in scientific data reporting
  • Learn about advanced spreadsheet techniques for accurate data analysis
  • Investigate the historical context of round-off errors in computational models, particularly in meteorology
USEFUL FOR

Data analysts, scientists involved in computational modeling, and anyone interested in improving accuracy in numerical calculations will benefit from this discussion.

DEvens
Homework Helper
Education Advisor
Gold Member
Messages
1,246
Reaction score
508
TL;DR
Quirk of calculation produced a consistent round-off value over man data entries
So the sequences was the following.

Data was provided for a parameter in a standardized situation. This was a source spectrum for a total volume of material.

We needed the source spectrum per cubic meter. There are 100,016 cubic meters in the total volume. Simple division.

So then I come along and compare what was calculated to what the other analyst put in the file. And, since we only keep 3 digits (the stats will erase anything more) I am expecting there to be small differences. So I copy-paste the data into a spreadsheet, take the difference, and divide by the original value.

And every single fractional difference is 1.6E-4. Forty values in a row. Hmm... Hmmm... Oh yes. The original data for the total volume is 3 digits. So the terminal digit is always zero. So the way roundoff works, that divide-by 100,016, then the round-off bumps it up by 1.6E-4 every time.
 
Computer science news on Phys.org
Round off leads to chaos as detailed in the story of its discovery. In particular, listen to the story of Ed Lorenz and how round-off changed his weather model predictions (at 4:45 mark)

 
  • Like
Likes   Reactions: Merlin3189

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
9
Views
3K