Calculating the Weighted Average of Two Graphs

  • Thread starter Thread starter jlkamikaze
  • Start date Start date
  • Tags Tags
    Average Graphs
AI Thread Summary
To calculate the X and Y coordinates of a third graph using a weighted average of two graphs (R and V) with different starting and ending X coordinates, a more refined approach is needed than simply averaging the coordinates. The initial formulas proposed do not account for the differing intervals of the graphs, which complicates the calculation. A suggestion is to only use values from the overlapping intervals for averaging, while applying the specified weights of 55% for R and 45% for V. However, the challenge remains in effectively integrating the data points across the non-overlapping sections. Further context about the intended application could provide additional insights for a more tailored solution.
jlkamikaze
Messages
3
Reaction score
0
i have an excel file containing 2 graphs [R & V], and their x & y coordinates in 4 separate lists [the X coordinates of R, the X coordinates of V, the Y coordinates of R, the Y coordinates of V]

i need to calculate the X & Y coordinates of a 3rd graph through a weighted formula that takes 55% of the R coordinates into account + 45% of the V coordinates into account

the tricky part is that R & V start and end at different X coordinates...
for example R starts at x=0 and ends at x=10
while V starts at x=5 and ends at x=15

can anyone help define a better formula for this?
here is what i have so far:
X = (Xr+Xv)/2
Y = (Yr)*0.55 + (Yv)*0.45
the problem with these equations is they don't take into account the different start and end positions of the two graphs

thank you for any help in advance! best regards!
 
Mathematics news on Phys.org
Just to clarify what you are asking, would this be the same type of problem:

Graph A gives high temperature data for Jan 1 thru Jan 20, graph B gives high temperature for Jan 10 through Jan 31. You want a graph for the whole month, weighting the readings differently. Is that similar to what you are wanting to do?
 
to clarify:
imagine graph A starting at Jan 1 [point M] and ending at Jan 20 [point N]
imagine graph B starting at Jan 10 [point O] and ending at Jan 31 [point P]

i want to generate a set of points that take on a weighted average of the points from graphs A & B but also starts at point M and ends at point P
 
jlkamikaze said:
to clarify:
imagine graph A starting at Jan 1 [point M] and ending at Jan 20 [point N]
imagine graph B starting at Jan 10 [point O] and ending at Jan 31 [point P]

i want to generate a set of points that take on a weighted average of the points from graphs A & B but also starts at point M and ends at point P

Well, you can't calculate the average of two numbers when you don't have two numbers. The only sensible thing to do is to use the values from graph A and B on the intervals where that is all you have, and average the values for the places where you have two readings. Whether that is acceptable I guess depends on what you are doing.
 
i get what your saying in only using values for the common interval between both graphs

but I am supposed to somehow use weighted averages to weight the data points as well as the difference between the intervals. fairly complicated ugh

thank you btw!
 
jlkamikaze said:
i get what your saying in only using values for the common interval between both graphs

but I am supposed to somehow use weighted averages to weight the data points as well as the difference between the intervals. fairly complicated ugh

thank you btw!

I guess I would need more context about what you are doing to see if I would have any other suggestions. At this point it doesn't make much sense to me.
 
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...
Thread 'Imaginary Pythagorus'
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