I was faced with a problem of automatically detecting regions of continuity in a vector. I have a lot of these vectors, hundreds. oneOne example of such vector is here: http://pastebin.com/UiSkJ7Dahere
So basically. Basically looking at the vector, one can see that there are regions of continuity, then it breaks, jumps some value, and then has another region of continuity and so on.
this works wonderfully and uses the 95% confidence interval to find the start and end points of the indexes of the regions.
I I know it worksworks; I just want to know why and how it works.
Statistics Statistics is not my strong point, so I have been reading in detail anything I can find related to the provided solution. Can anyone strong in statistics shed some lightStatistics is really fascinating me as to how one can make assumptions intelligently based on thisa sample and find them to be true.
I want to fully understand the working of the solution provided. Based on what I have read and understood, this is my understanding of the explanation (Pleaseplease note I have no base in stats at all, so I may be going very basic here). Can anyone strong in statistics shed some light on this?
So to begin aA 95% confidence interval is basically saying that I am 95% sure that given mean of a probability is within these limits [a, b].
And And this can be calculated with the formula:
x +- 1.96 (std/sqrt(n))
where x $x \pm 1.96 (std/\sqrt n)$ where $x$ is the mean, std$std$ is tehthe standard deviation and n$n$ is the sample size.
And And this confidence interval applies to a normal distribution only.
So now that I have my basics done, let me try to explain my understanding of the solution.
judgingJudging by my vector and, the samples were observed to be normally distributed samples (between the jumps). Knowing that these are normal distributions, simply finding their confidence intervals will give the start and end pointendpoint of a normally distributed sample.
And And that is what is going on in this line:
where find,find
finds the indexesindices of the points where the confidence interval equation holds true, but why the differecedifference vector, dv dv
? and why use it in the condition statement?
Why Why even create a difference vector? andAnd why use it in the line above?
This is based on what I read today, so I may be way off. Sorry for such a long read but amAm I on the right path? Is my understanding correct.
Statistics is really fascinating me as to how intelligently one can make assumptions based on a sample and find them to be true.
? Thank you.