Linear Regression, Statistics, Machine Learning, Data Science, Technology.
confidence interval depends on the sample size as well, given that it is calculated using the standard error, which is based on sample size. The confidence level is defined before the start of the experiment because it will affect how big the margin of error will be at the end of the experiment.