Question: what are the units of the independent variable and dependent variable?
Answer: If one wants to estimate the cost of living of an individual, then the factors such as salary, age, marital status, etc. are independent variables, while the cost of living of a person is highly dependent on such factors. Therefore, they are designated as the dependent variable.