Donuts
Donuts
  • Threads: 24
  • Posts: 171
Joined: Oct 17, 2014
September 28th, 2015 at 11:45:40 AM permalink
Confidence Intervals.

Are regressions a valid way of analyzing longitudinal data for a data set with thousands of data points?

For example, If I wanted to track the daily movement on a stock price over the last 10 years would having too large of a sample size be detrimental?

I was playing around with an arbitrary exchange traded fund, VTI, and found that when I use a linear regressions I get extremely tight confidence intervals due to the large sample size.

Here's the output from the data set I'm using. The regression line itself is accurate, but note how the confidence intervals are extremely tight and not actually representative of reality. I also tried a 99% confidence interval and the numbers didn't change much.




Is there a better stats tool out there for this kind of analysis?
Wizard
Administrator
Wizard
  • Threads: 1518
  • Posts: 27039
Joined: Oct 14, 2009
September 28th, 2015 at 12:29:28 PM permalink
I think you should use exponential regression rather than linear. You should also make it configurable at what point to start. A topic I debate myself over is how far back should I go in analyzing NFL data. The further back you go, the more data you have, but the data gets stale. I'm sure there is the same problem with stocks. Let the user worry about it.

This may not be the best forum to discuss this in great depth. Keep in mind we had thousands of posts here arguing over the answer to this question:

If you roll two dice until at least one of them is a two, then on that roll, what is the probability that both of them are a two?
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
Donuts
Donuts
  • Threads: 24
  • Posts: 171
Joined: Oct 17, 2014
September 28th, 2015 at 1:34:58 PM permalink
Quote: Wizard

I think you should use exponential regression rather than linear. You should also make it configurable at what point to start. A topic I debate myself over is how far back should I go in analyzing NFL data. The further back you go, the more data you have, but the data gets stale. I'm sure there is the same problem with stocks. Let the user worry about it.

This may not be the best forum to discuss this in great depth. Keep in mind we had thousands of posts here arguing over the answer to this question:

If you roll two dice until at least one of them is a two, then on that roll, what is the probability that both of them are a two?



What's your reasoning behind switching to an exponential regression?
I was playing around with the data a bit and found a polynomial regression actually has the best fit, but it tends to be extremely inaccurate at the tails so its not really usable.


Isn't it just 11/36 chance to roll a single 2, 1/11 chance to roll the doubles?
Which conveniently comes out to 1/36 when multiplied together?
OnceDear
OnceDear
  • Threads: 64
  • Posts: 7534
Joined: Jun 1, 2014
September 28th, 2015 at 2:27:23 PM permalink
Quote: Wizard

This may not be the best forum to discuss this in great depth. Keep in mind we had thousands of posts here arguing over the answer to this question:

If you roll two dice until at least one of them is a two, then on that roll, what is the probability that both of them are a two?



Mike, you bu663r !!!!! Why, Why, Why???
Months of therapy and just as I start to sleep nights, you rake it up again.
And now, in another thread, we have Mr M telling us how he would statistically prove that dice are, or are not biased. He'd no doubt set one of them as a Deuce.

I'm going to have to stay away from this insanity for a while. Let me know when its over :o)
Psalm 25:16 Turn to me and be gracious to me, for I am lonely and afflicted. Proverbs 18:2 A fool finds no satisfaction in trying to understand, for he would rather express his own opinion.
QuasiIntellectu
QuasiIntellectu
  • Threads: 0
  • Posts: 12
Joined: Sep 20, 2015
September 28th, 2015 at 2:36:37 PM permalink
Quote: OnceDear

Months of therapy and just as I start to sleep nights, you rake it up again.

Didn't they tell you? The internet is where you argue with, and laugh at, people to whom you would never wish to speak normally.
... it lies between the pit of man's fears and the summit of his knowledge.
Doc
Doc
  • Threads: 46
  • Posts: 7287
Joined: Feb 27, 2010
September 29th, 2015 at 8:01:00 AM permalink
Quote: QuasiIntellectu

The internet is where you argue with, and laugh at, people to whom you would never wish to speak normally.


http://www.gocomics.com/bc/2015/09/27
Wizard
Administrator
Wizard
  • Threads: 1518
  • Posts: 27039
Joined: Oct 14, 2009
September 29th, 2015 at 6:10:56 PM permalink
Quote: Donuts

What's your reasoning behind switching to an exponential regression?



Because the value of any investment should grow exponentially.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
Wizard
Administrator
Wizard
  • Threads: 1518
  • Posts: 27039
Joined: Oct 14, 2009
September 29th, 2015 at 6:16:14 PM permalink
Quote: OnceDear

Mike, you bu663r !!!!! Why, Why, Why???



Sorry about that. We have some very smart minds on this forum, for which I'm very proud. Unfortunately, everybody has an equal voice and those in camp 1/6 have the same right to speech as everybody else. To answer the why question, I was trying to warn the OP that not everybody here has the best of mathematical credentials, and those with the worst credentials tend to do a lot of talking.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
Doc
Doc
  • Threads: 46
  • Posts: 7287
Joined: Feb 27, 2010
October 1st, 2015 at 7:04:10 AM permalink
Quote: Wizard

Quote: Donuts

What's your reasoning behind switching to an exponential regression?

Because the value of any investment should grow exponentially.


I think that justification should only apply to stock prices if you add to the current price the value of all dividends paid since the beginning of the analysis period. It doesn't seem reasonable to expect an investment to grow exponentially if you keep siphoning off the earnings.
  • Jump to: