Okay, I have two lists of numbers, and have calculated a regression line line for the dataset along with "R-squared". Now that I have that, I have a question. I want predict a value from this line, but want to know the range of confidence of the value that I get out of it. Is there some sort of forumla for finding the range of the values from the predicted value?
Example:
In list one, I have the values {1,2,3,4,5,6,7,8,9,10}
In list two, I have the values {2,3,5,7,11,13,17,19,23,29}
I calculate the regression line to be y = 2.939x - 3.267
The "R-squared" is ~.97256
Now, if I put in the value (11) into this regression equation, I get the value 29.067. I am sure that the true value of the 11th number in the list is 31. How would I find a 95% Confidence Interval for the value of 29.067. That is, between what two numbers can I be 95% sure that the true value of the 11th number in list two is bewteen these two numbers? I need this as a function with variables so that I can use the equation in much larger lists.