Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Data range detection?

by atcroft (Abbot)
on Apr 13, 2015 at 08:06 UTC ( [id://1123246]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Data range detection?
in thread Data range detection?

I may be thinking of this too simplistically, but could you not do something along the lines of:

For each type of proposed pattern,

  • Specify functions Fx and Fy as the functions to apply to the x and y values, respectively.
  • Given that for a straight line, (y2 - y1) = m(x2 - x1), use the equation of a line in the form ( Fy(y2) - Fy(y1) ) = m ( Fx(x2) - Fx(x1) )
  • Use the first and last data values to compute a value m
  • Compute the estimated values for the internal data points
  • Compute the error of the estimated values
  • Select proposed pattern based on the one providing the smallest error

Is this a realistic idea, or am I thinking too simply?

Hope that helps.

Replies are listed 'Best First'.
Re^4: Data range detection?
by BrowserUk (Patriarch) on Apr 13, 2015 at 08:12 UTC
    Select proposed pattern based on the one providing the smallest error.... Is this a realistic idea, or am I thinking too simply?

    No. I don't think you are.

    The first thing that popped into my mind when I read your post was: chi-square test.

    Not quite sure how (or which variation) to use it yet, but I think could be a starting point. Thanks.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1123246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found