Python Forum
Need advice on simple equation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need advice on simple equation
#1
Hello everyone,

I believe my following question would be simple to you, but I need some direction since things need confirmation after reading throughout the internet.

I have the following equation:

Y[int(i-start_of_day_instant)] = (I0 * np.sin((h[int(i-start_of_day_instant)])) * (c0 + (c1 * C[int(i-start_of_day_instant)]) + (c2 * (C[int(i-start_of_day_instant)]**2)) + (c3 * ((D[int(i-start_of_day_instant)]) - (D3[int(i-start_of_day_instant)]))) + (c4 * R[int(i-start_of_day_instant)]) + (c5 * (V[int(i-start_of_day_instant)]))) + d)/k

I have a data set for variables values vs output Y.
And my goal is to find the values for the coefficients, c0 to c5 as well as d, I0 and k. So that later on, I can use this equation to predict the value of Y by substituting values of C,D,D3,R and V.
I first tried to approximate that as a multilinear regression problem and used the matrixes operations to find the coefficients but they yielded some non sense results at substitution.
Any advice how I can tackle this would be appreciated.
Thanks
Reply
#2
formatting your math will make it a lot easier to read, always use bbcode tags.
Y[int(i - start_of_day_instant)] = (
    I0
    * np.sin((h[int(i - start_of_day_instant)]))
    * (
        c0
        + (c1 * C[int(i - start_of_day_instant)])
        + (c2 * (C[int(i - start_of_day_instant)] ** 2))
        + (
            c3
            * ((D[int(i - start_of_day_instant)]) - (D3[int(i - start_of_day_instant)]))
        )
        + (c4 * R[int(i - start_of_day_instant)])
        + (c5 * (V[int(i - start_of_day_instant)]))
    )
    + d
) / k
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020