Calculate Data Points to Match Given Totals

  • Context: MHB 
  • Thread starter Thread starter micromichele
  • Start date Start date
  • Tags Tags
    Data Match Points
Click For Summary
SUMMARY

The discussion focuses on the mathematical challenge of aligning two different methods of calculating totals from data sets, specifically when using a multiplier of 4.86 followed by rounding down. The key insight is that the operation of rounding down does not commute with addition, leading to discrepancies in results. It is established that to avoid mismatches, one should refrain from rounding intermediate results and only round the final output for display purposes. Excel is recommended for formatting fields to maintain precision in calculations while displaying rounded results.

PREREQUISITES
  • Understanding of basic arithmetic operations and rounding principles
  • Familiarity with Excel functions and formatting options
  • Knowledge of mathematical notation, particularly the floor function
  • Experience with data manipulation and analysis techniques
NEXT STEPS
  • Explore Excel's advanced formatting options for precision in calculations
  • Learn about the implications of rounding in mathematical operations
  • Investigate alternative methods for data aggregation without rounding
  • Study the properties of the floor function and its impact on summation
USEFUL FOR

This discussion is beneficial for data analysts, mathematicians, and Excel users who need to ensure accuracy in calculations involving rounding and data aggregation.

micromichele
Messages
2
Reaction score
0
Hello! I have a super tricky problem for everyone I truly hope there is an answer to this.

I have different data sets all of which are a different amount of number per set (total points per set)
Each number is multiplied by 4.86 then rounded down. Then the total is added

Alternatively the sum of the data points is multiplied by 4.86 then rounded down.

Just to add another note in case it was confusing so first set
189 needs to be 184
second set
2906 needs to be 2903
third
1219 needs to be 1215
fourth
102 needs to be 101

I need these two numbers to match and I can not figure out how I have attached a photo to help with this.
math problem.png
 
Physics news on Phys.org
Let's denote the result of rounding down $x$ by $\lfloor x\rfloor$. This operation and addition do not commute, which means that in general $\lfloor x_1+x_2\rfloor\ne\lfloor x_1\rfloor+\lfloor x_2\rfloor$. One can only guarantee that $\lfloor x_1+x_2\rfloor\ge\lfloor x_1\rfloor+\lfloor x_2\rfloor$. The same holds for more than two numbers. Here $x_i$ denote the numbers from you datasets multiplied by 4.86. Therefore your mismatches are expected (provided the computations are correct), and you cannot make the results to coincide any more than you can make 2 + 2 equal 5.
 
A possible solution is to not round down.
It is good practice to never round intermediate results. And final results are usually rounded to appropriate precision only for display.
In Excel you can format fields to show data with a desired precision while the calculations still work with unrounded numbers.
 
Thank you for you replies and help :)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 8 ·
Replies
8
Views
1K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K