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

In summary: 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!
  • #1
tunage
4
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
  • #2
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/
 
  • #3
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:
  • #4
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.
 
  • #5
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.
 
  • #6
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.
 

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

What do you mean by "volume" in a data set?

Volume in a data set refers to the amount of space that a particular element or group of elements takes up in the data set. It can also refer to the frequency or quantity of occurrence of a particular element or group of elements in the data set.

How do you determine the volume of an element in a data set?

The volume of an element in a data set can be determined by counting the number of times the element appears in the data set or by calculating the percentage of the data set that the element makes up.

Can you provide an example of finding the two elements with the greatest volume in a data set?

Sure. Let's say we have a data set of fruits and their quantities in a basket: apples (15), bananas (10), oranges (5), and grapes (20). The two elements with the greatest volume in this data set would be apples and grapes, as they have the highest quantities.

Why is it important to know the elements with the greatest volume in a data set?

Knowing the elements with the greatest volume in a data set can help us understand the distribution and patterns within the data. It can also help us make informed decisions and predictions based on the most commonly occurring elements in the data set.

Are there any limitations to using volume as a measure in a data set?

Yes, there can be limitations to using volume as a measure in a data set. For example, if the data set is heavily skewed towards one or a few elements, the volume may not accurately represent the overall distribution of the data. It is important to assess the data set and consider other measures, such as mean or median, to get a more comprehensive understanding.

Similar threads

Replies
8
Views
1K
Replies
24
Views
2K
Replies
5
Views
2K
Replies
19
Views
2K
Replies
4
Views
4K
Replies
1
Views
4K
Replies
1
Views
4K
Back
Top