How to find the formula within an oscillating data patern?
Results 1 to 2 of 2

Thread: How to find the formula within an oscillating data patern?
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jul 2019
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default How to find the formula within an oscillating data patern?

    Hi,

    I have a large pool of data and if I graph the data i can see an oscillating patern. How can I let Excel find the oscillating formula?

    Cheers,

    Dutchmountain

  2. #2
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Location
    Bountiful, UT
    Posts
    8,316
    Post Thanks / Like
    Mentioned
    41 Post(s)
    Tagged
    5 Thread(s)

    Default Re: How to find the formula within an oscillating data patern?

    Welcome to the Board.

    Hard to say without seeing your data. Curve-fitting is inherently tricky. You say that you have an oscillating pattern. This suggests a SIN function. The general formula of a sine is:

    y = a*SIN(b*x+c)+d

    You could set up a formula with those 4 coefficients in cells A1:A4 (for example). Then copy the formula down the rows where your data is, using the x value from your data. Then have another formula next to that formula which has the square of the difference between the original y value and the calculated y value from your formula. Finally, have one final formula that sums up the sum of the squares.

    Now set up the Solver. You can either Google how to do that, or come back here and ask. But the gist of it is to set up the Solver so that it calculates what the minimum value of your sum of squares cell is, by varying the A1:A4 values.


    But all this is just an outline, it could be much trickier. You might need to worry about converting your values to radians. The formula might be something weird like SIN(x)*COS(x)+SIN(a*x^2+b*x+c). There could be a lot of analysis involved. Things like knowing what the data represents could help. Good luck!
    Cheers,
    Eric

    When you eliminate the impossible, whatever remains, however improbable, must be the truth.

    -Posting guidelines, forum rules, terms of use, FAQs, BB codes, See how to search the forum
    -Post a screen shot with the HTML Maker

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •