Determining parameters of a function from its outputs

In summary, the problem at hand involves finding the values of the inputs {a_1,b_1,c_1,d_1,a_2,b_2,c_2,d_2,a_3,b_3,c_3,d_3,a_4,b_4,c_4,d_4} for a given function f(a,b,c,d) when the outputs {g_1,g_2,g_3,g_4} are known. This can be approached using a system of equations or an optimization algorithm, depending on the complexity of the function. However, in the case of the given example function T(a,b,c,d) = a/(4*pi*c)*Ei(b^2/(4*c/(d*e
  • #1
nkinar
76
0
Suppose that I have a function [tex]f(a,b,c,d) = g[/tex], where [tex]{a,b,c,d}[/tex] are four independent variables and [tex]g[/tex] is the dependent variable. Now let's say that I evaluate the function four times, each time using different inputs, and the function produces four different outputs:

[tex]f(a_1,b_1,c_1,d_1) = g_1 [/tex]
[tex]f(a_2,b_2,c_2,d_2) = g_2 [/tex]
[tex]f(a_3,b_3,c_3,d_3) = g_3 [/tex]
[tex]f(a_4,b_4,c_4,d_4) = g_4 [/tex]

Using a system of equations (linear or non-linear), is there a way to determine the values of the inputs [tex]a_1,b_1,c_1,d_1,a_2,b_2,c_2,d_2,a_3,b_3,c_3,d_3,a_4,b_4,c_4,d_4[/tex] if I know the function [tex]f(a,b,c,d)[/tex] and the values of the outputs [tex] g_1,g_2,g_3,g_4 [/tex] for these inputs?

What type of algorithm could I use to determine the values of the inputs? Is there a good reference available?
 
Last edited:
Mathematics news on Phys.org
  • #2
There is probably some nice theorem in mathematics (multivariable inverse function theorem, or something like that) which tells you if this is or is not possible.

But I suspect you are looking for something a little more practical, am I right?
In that case, I would say it heavily depends on the function (I doubt that it is possible - in a practical calculational sense - for a general function, but perhaps for simple linear functions you can do it.

So can you give us a bit more info... telling us what f is exactly would help a lot, for instance.
 
  • #3
Sure, CompuChip; thank you very much for your response.

Here's an example function:

[tex]
T(a,b,c,d)= \frac{a}{4 \pi c} E_i \left( \frac{b^2}{ 4 \frac{c}{de}t } \right)
[/tex]

In the above expression, [tex]a,b,c,d[/tex] are the independent variables, and [tex]e,t[/tex] are known constants. The [tex]E_i[/tex] function is the exponential integral. I would consider this to be a non-linear equation.

Perhaps Levenberg-Marquardt optimization could be used, or some sort of non-linear curve fitting?
 
  • #4
Hmm, I was hoping for ... well, f(a, b, c, d) = a b + c - 2d, or something like that :P
I didn't expect an exponential integral, that's definitely non-linear :)
Is the c in the prefactor also one of the variables, or is "4 pi c" some physical constant?

Actually I think there is little chance of you being able to do anything useful here, except perhaps feed it to a program like Mathematica, asking it to numerically solve for a, b, c, d, and keep your fingers crossed (or do it "by hand" with your favorite optimisation technique, as you proposed).
 
  • #5
CompuChip said:
Hmm, I was hoping for ... well, f(a, b, c, d) = a b + c - 2d, or something like that :P

Yeah, I was hoping for something like that as well! ;-) The variable c in the prefactor is also one of the variables.

I agree that using an optimization technique seems to be the way to deal with this expression. I'll be able to explore this idea further in the following weeks as I start to work more with the mathematics.

Thank you very much for your response!
 
  • #6
What about two equations in two unknowns:

f(x,y) = sin(x)sin(y)

I give you outputs f(a,b) = 0, f(c,d) = 0. No hope I would say.
 
  • #7
Ah, yes - that is a good example of a function where it doesn't work; thanks for posting this, LCKurtz. But I think that if the four outputs [tex]g_1,g_2,g_3,g_4[/tex] are different and unique, then perhaps optimization could be used. Perhaps uniqueness of the outputs implies that the inputs can be found.
 
  • #8
This question is equivalent to finding the roots of function of four variables as you are essentiually settinbg f(a,b,c,d) - g = 0 and solving for (a, b,c,d). If the g1,g2,g3,g4 are close to each other finding one might help find the others. Do you need only one input for each g or the set of all inputs s.t f (a,b,c,d) = g. Is there any interval you want the solutions to be in?

You talk about uniqueness of the outputs. Is it given that no matter what four different inputs you use that f will always give four different outputs? Then f has an inverse/your solutions will be unique. In addition if this is true many versions of Newton's method should work.
 
Last edited:
  • #9
Thanks, deluks917. I still need to explore the mathematics of this problem further, but I do agree that a root-finding algorithm such as Newton's method may be useful.
 
  • #10
I believe the problem as originally stated can be viewed as an underdetermined system of equations (i.e. there are more unknowns than equations). If there is a solution there are likely infinitely many of them. One option is to find the minimum norm solution (i.e. optimization approach as has already been mentioned). The math is straightforward:

http://www.stanford.edu/class/ee263/lectures/min-norm.pdf

The fact that the function is non-linear in an of itself doesn't necessarily pose a problem, but the exponential integral might. What is the independent variable of the exponential integral?
 
Last edited:
  • #11
hotvette, thank you very much for your response.

Looking back at the original equation, I would like to determine [tex]{a,b,c,d}[/tex] from a dataset.

[tex]

T(a,b,c,d)= \frac{a}{4 \pi c} E_i \left( \frac{b^2}{ 4 \frac{c}{de}t } \right)

[/tex]

The idea that I've been toiling with for quite a long time is how to determine the parameters [tex]{a,b,c,d}[/tex] given a number of observations. Suppose that I am to re-write the equation as a physical problem.

[tex]

\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r^2}{ 4 \alpha t } \right)

[/tex]

In the equation above, [tex]\Delta T(q,k,r,\alpha)[/tex] is the change in temperature at a given radius [tex]r[/tex] from a heater needle that has been inserted into a medium. The time [tex]t[/tex] is the time since [tex]t=0[/tex] that the heater needle has been warming up. The heat liberated is [tex]q[/tex], the thermal conductivity of the medium is [tex]k[/tex], and [tex]\alpha[/tex] is the thermal diffusivity.

Now suppose that I collect a series of measurements, [tex]{\Delta T_1, \Delta T_2, \Delta T_3, \Delta T_4}[/tex] taken at different radii [tex]{r_1,r_2,r_3,r_4}[/tex] from the heater needle. I can also measure the change in temperature at different times [tex]{t_1,...,t_n}[/tex], where [tex]n[/tex] is the total number of time points.

With this information, can I determine the [tex]q,k,r,\alpha[/tex] parameters? If not, what information would I need?
 
  • #12
Similar problems for heat conduction are described in James V. Beck and Kenneth J. Arnold's 1977 book, "Parameter Estimation in Engineering and Science."

On pg. 434, the authors write, "Without prior information the minimum number of measurements n needed to estimate p parameters is n = p. In this case X is a square matrix."

On pg. 432, the authors also state, "X represents the sensitivity matrix."
 
  • #13
nkinar said:
Sure, CompuChip; thank you very much for your response.

Here's an example function:

[tex]
T(a,b,c,d)= \frac{a}{4 \pi c} E_i \left( \frac{b^2}{ 4 \frac{c}{de}t } \right)
[/tex]

In the above expression, [tex]a,b,c,d[/tex] are the independent variables, and [tex]e,t[/tex] are known constants. The [tex]E_i[/tex] function is the exponential integral. I would consider this to be a non-linear equation.

Perhaps Levenberg-Marquardt optimization could be used, or some sort of non-linear curve fitting?

For this example, each output has its own unique solution. You can't use a linear system equation in the form of Ax = b to solve this example because you're dealing with the same equation (same coefficient) only with different outputs. Which implies that the inputs (a*(b^2)*d*e)/(c^2) must have different unique values.
 
  • #14
Okay, thanks for pointing this out, RobertT. I suppose that I have to try something else, as per post #11 or #12 above.
 
  • #15
nkinar said:
Okay, thanks for pointing this out, RobertT. I suppose that I have to try something else, as per post #11 or #12 above.

To solve for a, b, c, d and e you need 4 more different equations than that function T that describe their relationships. Only then can you use Ax = b to find each unknown!
 
  • #16
Ah, okay; what about the following. Suppose that I change the radius [tex]r_1,r_2,r_3,r_4[/tex], and take samples at four separate distances. Would this qualify as "different enough" to have a system of four non-linear equations?

[tex] \Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_1^2}{ 4 \alpha t } \right)


[/tex]

[tex] \Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_2^2}{ 4 \alpha t } \right)


[/tex]

[tex] \Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_3^2}{ 4 \alpha t } \right)


[/tex]

[tex] \Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_4^2}{ 4 \alpha t } \right)


[/tex]
 
  • #17
nkinar said:
Ah, okay; what about the following. Suppose that I change the radius [tex]r_1,r_2,r_3,r_4[/tex], and take samples at four separate distances. Would this qualify as "different enough" to have a system of four non-linear equations?

[tex]


\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_1^2}{ 4 \alpha t } \right)


[/tex]

[tex]


\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_2^2}{ 4 \alpha t } \right)


[/tex]

[tex]


\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_3^2}{ 4 \alpha t } \right)


[/tex]

[tex]


\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r_4^2}{ 4 \alpha t } \right)


[/tex]

No, they are all the same function! In this case, to find the inputs q,k,r,\alpha you need three more functions that are different than [tex]


\Delta T(q,k,r,\alpha)= \frac{q}{4 \pi k} E_i \left( \frac{-r^2}{ 4 \alpha t } \right)


[/tex]
 
Last edited:
  • #18
Okay, thanks Robert; I think that I understand now. Essentially what is required are four unique functions that describe some sort of physical relationship between the required quantities. The key here is that the functions must be different.

Once again, thank you.
 
  • #19
nkinar said:
Okay, thanks Robert; I think that I understand now. Essentially what is required are four unique functions that describe some sort of physical relationship between the required quantities. The key here is that the functions must be different.

Once again, thank you.

Yes! :)
 

1. How do you determine the parameters of a function from its outputs?

Determining the parameters of a function from its outputs is done by using a process called "curve fitting". This involves using a mathematical model to find the best-fit parameters that can produce the given set of outputs.

2. What is the purpose of determining the parameters of a function?

Determining the parameters of a function is important because it allows us to understand and analyze the relationship between the inputs and outputs of a function. This can help us make predictions, optimize processes, and solve problems in various fields such as science, engineering, and economics.

3. What are some common methods for determining the parameters of a function?

Some common methods for determining the parameters of a function include least squares regression, maximum likelihood estimation, and Bayesian inference. These methods use different approaches and assumptions to find the best-fit parameters for a given set of outputs.

4. Can the parameters of a function be determined with 100% accuracy?

No, it is not possible to determine the parameters of a function with 100% accuracy. This is because the outputs of a function may contain some level of uncertainty or variability due to measurement errors, experimental limitations, or natural variations in the data.

5. What are some challenges in determining the parameters of a function?

Some challenges in determining the parameters of a function include dealing with noisy or incomplete data, choosing an appropriate mathematical model, and dealing with overfitting or underfitting of the data. It also requires understanding the underlying principles and assumptions of the methods used for parameter estimation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
787
  • Calculus and Beyond Homework Help
Replies
8
Views
975
Replies
4
Views
2K
Replies
8
Views
1K
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
8
Views
1K
  • General Math
Replies
1
Views
1K
  • Linear and Abstract Algebra
Replies
1
Views
1K
  • Linear and Abstract Algebra
Replies
7
Views
2K
Replies
6
Views
3K
Back
Top