Regression Analysis - Constructing a Model ((Need ))

Fjolvar
Messages
156
Reaction score
0
Hello,

I am trying to construct a general function/method based on two sets of minimum/maximum data point constraints, which can take on new values in different situations. The only known data for this general function is the starting point (y-axis intercept) and the x-range. The rate of change over time must equal zero, so the amount increased/decreased must be compensated within the x-range. Optimally will vary as little as possible, as long as it meets the constraints.

I attached a figure of an example plot. The minimum constraint data points are marked as the 'necessary' function. The maximum constraint data points are marked as 'maximal.' The function marked as 'case 2' is an example of the general function that would satisfy the constraints.

I would appreciate any advice or suggestions on how to approach this problem as I've had very little success so far. Thank you in advance.
 

Attachments

  • Example Graph.jpg
    Example Graph.jpg
    14 KB · Views: 497
Last edited:
Physics news on Phys.org
In my opinion, a procedure for solving this general type of problem would boil down to having a computer program that minimizes a function of several variables subject to many constraints using a numerical method. There are many methods known for solving this type of problem, but they are not methods where you apply a relatively simple formula that produces the answer.

Let my try to interpret your description of the problem as mathematics.

We are given data for two functions y_{lower}, y_{upper} that are defined on N points {x_0,x_1,...x_N}. We want to find a function f(x) satisfying:

N inequality constraints:

y_{lower}(x_i) \lt f(x_i) \lt y_{upper}(x_i) for i = 1,2..N

Two equality constraints:

f(x_0) = f(x_N) = y_0 for some number y_0

You want f(x) to vary as little as possible One way to express that in mathematics is to say that we want to minimize the mean square distance between f(x) and the line between (x_0,y_0) and (x_n,y_0).

So the "objective function" is \frac{1}{N} \sum_{i=1}^N (f(x_i) - y0)^2

If you know the mathematical definition of "a function", you know that functions can be defined with symbols or words and combinations thereof. So trying to solve the above problem for "the" best function is intractable because there is such a great variety in functions.

To make the problem tractable. we could assume it comes from a family of functions, such as quadratic function, that is defined by a few parameters.

If we assume f(x) = Ax^2 + Bx + C and also treat y_0 as a variable, the problem becomes:

Minimize \frac{1}{N} \sum_{i=1}^N (f(x_i) - y0)^2
with respect to the variables, A,B,C,y_0
subject to the constraints
y_{lower}(x_i) \lt f(x_i) \lt y_{upper}(x_i) for i = 1,2..N
f(x_0) = f(x_N) = y_0 for some number y_0

This format ( Minimize...with respect to...subject to the constraints) is a standard way to state optimization problems. There are methods of solving such problems that resemble organized forms of trial and error: "simulated annealing", "genetic programming". There are algorithms that rely on calculus and "if ...then..." decisions", such as "the conjugate gradient method", versions of it that handle constraints.
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top