Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Could you please help me in this problem?

I have 3 independent variables, $(T,H,t)$, as inputs and one output $P$ ( I have all data for these inputs and the output, done experimentally measured every hour during one year).

I want to find a formula of this form: $$P = f ( T , H , t )$$ where $t$ is the time in hours and it is always in the $x$-axis (index), $T$ is temperature, $H$ is humidity, and $P$ is power.

I have all the data, and when I draw them in the same graph during one year, meaning that $P$, $T$, and $H$ vs. hours. I found that the behavior of $P$ is oscillating, making a sinusoidal shape over the entire, year as you can see from the following ($P$ and time only):alt text

So, if I make a zoom view to this figure, for example from the $2000$th hour of the year to the $3000$th hour, it is clear that it almost has the same shape but it is oscillating.

So, it keeps oscillating and increasing up to the peak point and then it starts decreasing till the end of the year.

But this is only for only one independent variable which is time in hours.

Now, how if we include the effect of temperature and humidity and draw these vectors along with the power vs. time, to see how power is changing with respect to $T$, $H$, and $t$ rather than $t$ only: alt text

So, how can I predict the structure of the formula that relates $P$ with $T$, $H$, and $t$?

Is there any approach that you advise me to follow?

Sorry for this long question and any help from you is highly appreciated. I read many papers but I could not know how to solve the problem.


share|cite|improve this question note that P is not changed from the previous case but its shrinking down is only for scaling since humidity values are much higher than power values causing P and T appear as small curves comparing to H. – user4700 Dec 13 '10 at 4:12
I fixed your formatting and added the graph. – Arturo Magidin Dec 13 '10 at 4:17
Have you tried Fourier-transforming your data (after subtracting any possible linear trends)? – J. M. Dec 13 '10 at 4:21
Unfortunately, No. Actually I do not have good background about dealing with Fourier-transforming ... For the 2nd figure: P is in blue , T is in red , H is in black. I have done a mistake in legend. – user4700 Dec 13 '10 at 13:10

It seems you have one independent variable (t) and three dependent variables (P, H, and T) in that you do not have independent control of H and T. This does not prevent finding a relation that would allow you to predict P based on H and T.

Looking at your data from year 2000, P and T overlay very closely. A naive point of view would be to predict that P is a linear function of T and H doesn't matter.

First, you need to decide if you think the oscillations are data or noise. If they are noise, you should filter them out. The easiest, but far from the best, approach is just to average a number of data points. There is discussion of filtering in Numerical Recipes as well as any numeric analysis book. As suggested by J.M., doing an FFT makes this much easier, and there are routines to do that.

After any filtering, you can write P in some functional form involving T, H, and t and use a multidimensional minimizer to find the best fit.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.