I have been trying to study on how to test significance for a correlation coefficient. So far I have seen that we calculate a value t and then either use p-value or critical value from the t-table to determine its significance.
Now I confused regarding these t-table and p-value. Most of the t-tables I find online have values up to 30 and then there are large jumps, so what if I have a sample size of n=33, so how do I find the critical value at df=31. As for p-value I have found online calculators that do the calculation, but I can't seem to find the formula used to calculate it. How is this p-value calculated?
Also I am not clear with what exactly df is? why am I subtracting 2 from n? why not n?
Moving on, why are the alternative hypothesis always p not equal 0, why can't it be a one tailed test, with say p > 0, trying to prove that it is a positive correlation ? If I can do that, then how exactly do my steps change? Do I just halve the p-value ? What are the changes in steps if I use the critical value method ?
There are other places where I have seen the same questions were asked, but I am sorry I couldn't get myself clear with this topic from those, and as they were fairly old, I thought it will be best if I create a new question.