Skip to main content

Confidence Level and Confidence Interval

Being confident make one's self more reassured. Briefly, explanations below are for two sided confidence levels/intervals in order to simplify the idea. Saying "two sided" gives initial impression that there is something like two limits, yeah they are: upper and lower limits where the confidence interval lies in between.

Example: Let's look at the population of a specific mobile phone model. Suppose we are now interested in the 'weight' property. We found that weight property follows a normal distribution with mean value of 120 grams and a standard deviation of 1.4 grams.

Weight ~ Normal (Mu, Sigma) = Normal (120, 1.4)

This understanding means that majority of mobiles tested will weigh very closely to 120 grams. Yes, there should be fluctuations above and below the mean value but surely that still relatively close to mean value.

Suppose a question: do you expect weights like: 121, 119.5, 122.1, 118.9?
Answer: Yes, I surely expect such values.

Another question: do you expect weights like: 158, 67, 140.8, 82.5?
Answer: No! This seems impossible.

For any normal distribution, values goes to + and - infinity. But, as we seen, it has no sense to consider those values away from the mean value as they mostly will not occur (in statistics we say they have extremely low probability).

Here it comes: confidence level means we consider only those values (within the confidence interval) that will mostly be seen. The most popular confidence level is 95% which means we focus on 95% of possible data/values. Far values away from mean value mostly will not be seen, thus we sacrificed by them (5% of data).

The 5% is usually called as alpha which means the percentage of sacrificed data due to being so far of mean value. When having two sided confidence interval, alpha is divided into to halves (0.025 each): upper and lower, which is logical to represent upper and lower far values.

For example above, simple calculations lead to find the 95% confidence interval which is [117.26, 122.74] defining [lower, upper] limits respectively. This result simply means that 95% of mobiles will be found to weigh between 117.26 and 122.74 grams.
Note: the confidence interval depends on the population variance or standard deviation. Larger variance means wider confidence interval and vice versa.
___

Comments

Popular posts from this blog

The "Sample"

Anytime you aim to perform a study on the entire population, you will surely find that this task will be: Much time and/or efforts consuming as populations are normally huge . Impossible if the population is infinite (such as products). Here comes the role of taking samples. Yes! we just take a sample from the whole population, perform the study on the chosen sample, apply the results back to our population. This is the core of  inferential statistics because what we do is to infer parameters/properties of the population using information from a small sample. Well, this does not mean we will obtain 100% exact accurate estimations or inferences. But to be as close as possible, sample elements should be taken randomly ! At least, being random in sample selection will mostly include the diversity of information/facts within our population.

Understanding the distribution of sample mean (x_bar)

Cool, say now we have a huge population with characteristics ( Mu, Sigma^2 ). When doing a study by sampling, we take a random sample ( size n items ) and then perform the study on the sample and conclude results back for the population. From Central Limit Theorem, we know that the sample mean will always follow a normal distribution  apart from what the population distribution is, such that: x_bar ~ N (Mu, Sigma^2/n) or say: Expected (x_bar) = Mu Variance (x_bar) = Sigma^2/n Well, let's see a simple illustrating example: Suppose we have a population with mean Mu=100 . Now, we have taken a sample, and computed the sample mean, x_bar. We mostly will have x_bar near 100 but not exactly 100. OK, let take another 9 separate samples... suppose these results: First sample --> x_bar = 99.8 Second sample --> x_bar = 100.1 .. .. .. 10th sample --> x_bar = 100.3 What we see that the sample mean is usually close to real population mean, that

Conclusions of Hypothesis Testing

A general hypothesis is defined as following (eg a hypothesis on the population mean): H0: Mu = Mu0 H1: Mu !=  Mu0 OK, apart from we have a two or one sided hypothesis, after performing the checking and statistical tests: our conclusion should be one of the following: Rejecting the null hypothesis (H0). Failing to reject the null hypothesis (H0). The following statements for conclusions are not accurate : Accepting the null hypothesis (H0). Accepting the alternative hypothesis (H1). But why? When we fail to reject H0, it does not mean we accept H0 as a fact because we still could not prove it as a fact. But what happened is that we failed to prove it to be false. This goes like following: we have suspected new factors may affected the population mean, then we have taken all possible evidences and checking, but all checking failed to prove our suspects. As well, rejecting H0 does not mean accepting H1 as a fact. What happens in this case is we p