I am always having difficulty understanding what degree of freedom really is. I know that when I post this question people are going to tell me to do some research myself but I did it and I am still having problem understanding it. I watched youtube videos and read articles ...etc but I still do not understand.
To be specific, let me tell you where I am stuck.
For example
If we have a sample size of 3
{x1,x2,x3} is the set of sample values
At the same time, we assume that we know the sample mean is going to be equal to be 2
knowing there are 3 variables, the first 2 variables can be anything.
Say,
x1 = 1,
x2 = 4.
With simple calculation we know x3 must be 1 for the sample mean to become 2. In another word, when first and second variables are determined, the third variable must be specific value(not free to be any value) to meet the fact that sample mean must be 2.
Ok, until this point everything makes sense to me.
When it comes to calculating the variance, I am totally confused. In each and every videos and articles I watched and read always says the same thing. The reason why degree of freedom for estimating the variance is N-1, which N is the sample size. The reason for that is because we know the sample mean is going to equal to specific value in the first place. This logic sound quite contradicting to me!!
The reason why we need a sample mean instead of the population mean is because we do not know the value of population mean in the first place. Now you are telling me that we know the sample mean is going to be specific value as if we already know the population mean? In another word, if we don't know what the population mean is, how are we possibly going to know what value our sample mean is even close to?
Does not the entire concept just sound contradicting? Maybe it is just because of my lack of knowledge but if that is the case, can anyone help me out by explaining to me the concept in simple English?
To summarise the question:
I do not understand why in the first example, we want to assume the sample mean is going to be 2, since in reality when we draw a sample from a population we don't even know the population mean, so how are we going to know sample mean is going to be 2?
@ImATurtle, Thanks for your detailed answer. In response to your answer, I understood that knowing the sample mean is necessary for calculating sample variance. However, my problem is I don't really get how you are going to know the sample mean before you even know all your sample values in the first place. For example, given sample values are {2,3,4,5,6}, we know that the sample mean is 4 only after you draw the sample and do the calculation . The five sample values were freely drawn from the population without doubt. Yet, people keep on saying that we know the sample mean will be 4, therefore after drawing the sample values 2,3,4,5, we know the fifth value is 6. So, what make it possible for us to predict the sample mean is going to be 4 before we even start drawing samples from population?