MHB Calculate Data Points to Match Given Totals

  • Thread starter Thread starter micromichele
  • Start date Start date
  • Tags Tags
    Data Match Points
AI Thread Summary
The discussion revolves around a complex problem of matching totals from different data sets after applying a multiplication and rounding process. Each data point is multiplied by 4.86 and then rounded down, leading to discrepancies when comparing two methods of calculating totals. The key insight is that rounding operations do not commute, resulting in expected mismatches between the two methods. A suggested solution is to avoid rounding intermediate results and instead only round the final output for display purposes. This approach can help achieve more accurate totals without the inconsistencies caused by premature rounding.
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
 
Mathematics 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 :)
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top