MHB I need the two elements with the greatest volume in a data set

tunage
Messages
4
Reaction score
0
I have very large data sets:
coins & amount
i.e. {10 & 11, 9 & 7, 8 & 9, 4 & 5, 3 & 1} graphed would show greater volume to the left side while {1 & 0, 2 & 3, 2 & 1, 4 & 6, 9 & 10} would reflect greater volume on the right, and {1 & 4, 2 & 3, 12 & 10, 4 & 4, 3 & 2} would reflect a surge in the middle of the data set.
I need to calculate the volume and know the location of the two elements that have the greatest volume.
 
Mathematics news on Phys.org
tunage said:
I have very large data sets:
coins & amount
i.e. {10 & 11, 9 & 7, 8 & 9, 4 & 5, 3 & 1} graphed would show greater volume to the left side while {1 & 0, 2 & 3, 2 & 1, 4 & 6, 9 & 10} would reflect greater volume on the right, and {1 & 4, 2 & 3, 12 & 10, 4 & 4, 3 & 2} would reflect a surge in the middle of the data set.
I need to calculate the volume and know the location of the two elements that have the greatest volume.

If I understand your requirements correctly I think the following would be OK.

For the first set $\frac{1\times 10\times 11+2\times 9\times 7+3\times 8\times 9+4\times 4\times 5+5\times 3\times 1}{ 10\times 11+9\times 7+8\times 9+4\times 5+3\times 1}=2.04..$

The 2.04 indicates your "greater volume to the left side".

This may be of interest: http://archives.math.utk.edu/visual.calculus/5/work.2/
 
M R said:
If I understand your requirements correctly I think the following would be OK.

For the first set $\frac{1\times 10\times 11+2\times 9\times 7+3\times 8\times 9+4\times 4\times 5+5\times 3\times 1}{ 10\times 11+9\times 7+8\times 9+4\times 5+3\times 1}=2.04..$

The 2.04 indicates your "greater volume to the left side".

This may be of interest: http://archives.math.utk.edu/visual.calculus/5/work.2/

Thank you for your response.
I tried it with the 3rd example and I don't see where it would help.
--> (1*1*4+2*2*3+3*12*10+4*4*4+5*3*2)/(1*4+2*3+12*10+4*4+3*2)
ans =
3.0921
But more importantly I need the element location.
Yes, I am pretty sure I need an integral or a summation for the volume but I think I am going to need quadratics for my second max and probably my first.
 
Last edited:
tunage said:
Thank you for your response.
I tried it with the 3rd example and I don't see where it would help.
--> (1*1*4+2*2*3+3*12*10+4*4*4+5*3*2)/(1*4+2*3+12*10+4*4+3*2)
ans =
3.0921
But more importantly I need the element location.
Yes, I am pretty sure I need an integral or a summation for the volume but I think I am going to need quadratics for my second max and probably my first.

If your locations are 1,2,3,4 and 5 then a result of 3.09 is pretty much your "surge in the middle".

Still, I'm not sure that what I'm suggesting is what you need.
 
M R said:
If your locations are 1,2,3,4 and 5 then a result of 3.09 is pretty much your "surge in the middle".

Still, I'm not sure that what I'm suggesting is what you need.

That is a very interesting math hack.
I am running some test on it now.
 
tunage said:
That is a very interesting math hack.
I am running some test on it now.
Works perfect. It does everything I need it to do. I don't even need the second max because of how the numbers work.

Thank you VERY much!

I think I remember seeing this back in Physics.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top