I am currently solving one classification problem using logistic regression algorithm.

I want to know how the logistic regression model calculates the **variables of his formula** out of his all the variable in the data and why it’s are different from all the coefficients mention in the summary.

I also want to know the what does **degree of freedom** means in the summary.