Leverage Influential Point and Outlier: Diagnostics (2024)

In this post, a discussion about diagnostics for a Leverage Influential point and outlier will be made. In a regression analysis, certain observations may play a role in influencing the outcomes of the fitted model and its estimates. These observations may be classified as outliers, leverage, and influential points.

Outlier Leverage Influential Point

The explanation of outlier leverage influential point is described as under:

  • Outliers: An outlier is an extreme observation that differs considerably from the other observations. An outlier may be due to the recording error and the model cannot explain them. However, outlier(s) may contain some important information. An outlier may be in $x$-space, $y$-space, or both.
  • Leverage: An unusual $x$ value is called a leverage point. The leverage point affects the model summary statistics (such as $R^2$, standard error, etc.), but has little impact on the estimates of the regression coefficients. A leverage point has an unusual predictor value and is different from the bulk of the observations.
  • Influence: An unusual $y$ value (and may be an extreme $x$ value), is called an influence point. An influence point has a noticeable impact on the estimated regression coefficients and may change the direction of the slope.
Diagnostics for Outliers leverage and influential points
image taken from: https://www.cbsd.org/

Diagnostics for Outlier Leverage Influential Point

There are some methods to detect/ identify the outlier leverage influential point

Outliers

Outliers must be treated very carefully. Outliers may be detected by examining the

  • Normal Quantile Plots (departer from normality)
  • Residual Plots (magnitude of the residuals)
  • Scaled residuals (a potential outlier if magnitudes > 3)
Outlier Detection using Box Plot

Leverage Point

The diagonal elements of the “hat matrix” have an important role in detecting influential observations. $$h_{ii} = x’_i (X’X)^{-1}x_i,$$ where $X$ is matrix of regressors and $x’_i$ is the ith row of the $X$ matrix.

A large diagonal element is an indicator of influential observation as they are remote in $x$-space. Any observation exceeding the average size of the diagonal element of the hat matrix ($\overline{h} = \frac{p}{n}=2h$) is considered as a leverage point, where $p$ is the number of parameters in the model.
It is also useful to observe the studentized residuals in conjunction with $h_{ii}$ (that is, look for large hat diagonal and large residual values).

Note that not all of the leverage points are influential unless they have large residuals. Therefore, observations having large $h_{ii}$ values and large residuals are likely to be R.

Influential Points

  • Cook’s Distance: The Cook’s Distance is the Deletion Diagnostic that is used to measure the influence of the $i$th observation by removing it from the regression analysis. It is based on all $n$ points, $\hat{\beta}, and the estimates based on the deletion of the $i$th point, $\hat{\beta}_{(i)}$.
  • DFBETAS is another Deletion Diagnostic used to measure how the change in each of the $\hat{\beta}j$ is due to influential observation. A large value of DFBETAS indicates that the $i$th observation is considerably an influential observation on the $j$th regression coefficient. If $|DFBETAS{j, i} > \frac{2}{\sqrt{n}}$ then the $i$th observation warrants further examination.
  • DFFITS is another deletion diagnostic measure used to measure the deletion influence of the $i$th observation on the predicted or fitted values. DFFITS is the number of standard deviations that the fitted values change if ith observations are removed. If $|DFFITS_i|>\frac{2}{\sqrt{\frac{p}{n}}}$ then the $i$th observation warrants further examination.

Note that the case deletion diagnostics do not provide any information about the overall prediction of the estimation. However, the performance of the model can be measured by using the Generalized Variance (GV) and Covariance Ratio.

In summary, the Outliers, Leverage Points, and Influential Observations are certain data points (observations) that deviate (distant) from the expected patterns. On the other hand, the outliers are extreme values that lie far away from the other data points, while leverage points exert a strong influence on the regression models.

Read more about Regression Diagnostics

R Programming Language

Important Sampling Quiz with Answers 9

The Online sampling Quiz with Answers is about the Basics of Sampling and Sampling Distributions. It will help you understand the basic concepts of sampling methods and distributions. This Sampling Quiz will help the students prepare for different exams related to education or jobs. Most of the MCQs on this page cover MCQ Sampling Quiz with Answers, Probability Sampling and Non-Probability Sampling, Mean and Standard Deviation of Sample, Sample size, Sampling error, Sample bias, Sample Selection, etc.

Sampling Quiz with Answers

Multiple Choice Questions about Sampling and Sampling Distributions

1. If a statistician randomly samples 50 observations in each population category then his sample will be ———-.

 
 
 
 

2. In cluster sampling, elements of selected clusters are classified as

 
 
 
 

3. Which ONE of the following is the main problem with using non-probability sampling techniques?

 
 
 
 

4. Which of the following sampling methods is the best way to select a group of people for a study if you are interested in making statements about the larger population?

 
 
 
 

5. Cluster sampling, stratified sampling, and systematic sampling are types of

 
 
 
 

6. The average of cluster means is the unbiased estimator of a population mean when

 
 
 
 

7. A procedure in which the number of elements in a stratum is not proportional to the number of elements in populations is classified as

 
 
 
 

8. All of the following are true about cluster sampling except

 
 
 
 

9. In a double sampling plan, if the number of defects are in between the two numbers C1 and C2 then

 
 
 
 

10. In systematic sampling, the value of $k$ is classified as

 
 
 
 

11. There are 50 students in a class. A data analyst wants to know if a majority of students like the instructor. They decided to survey the 15 students who earned an A in the class because these students were paying attention to the instructor. Which of the following statements best describes this sample?

 
 
 
 

12. In which of the following non-random sampling techniques does the researcher ask the research participants to identify other potential research participants?

 
 
 
 

13. When Hartley-Ross proposed the unbiased ratio estimator?

 
 
 
 

14. In systematic sampling, when $N=18$ with $n=3$ what will be the value of $k$?

 
 
 
 

15. The auxiliary variable is also called

 
 
 
 

16. Sampling in qualitative research is similar to which type of sampling in quantitative research?

 
 
 
 

17. The listing of elements in a population with identifiable numbers is classified as

 
 
 
 

18. If we took the 500 people attending a school in a city, divided them by gender, and then took a random sample of males and a random sampling of females, the variable on which we divide the population is called the

 
 
 
 

19. Which of the following would usually require the largest sample size because of its efficiency?

 
 
 
 

20. The human resources department at company XYZ has 42 workers in int. To find out some information about the group as a whole, we want to take a sample of 7 of those workers to interview. If we have an ordered list of workers numbered 1 through 42, and we start at worker number 3, which worker would be included in our sample?

 
 
 
 


Sampling Quiz With Answers

  • A procedure in which the number of elements in a stratum is not proportional to the number of elements in populations is classified as
  • Cluster sampling, stratified sampling, and systematic sampling are types of
  • The listing of elements in a population with identifiable numbers is classified as
  • There are 50 students in a class. A data analyst wants to know if a majority of students like the instructor. They decided to survey the 15 students who earned an A in the class because these students were paying attention to the instructor. Which of the following statements best describes this sample?
  • When Hartley-Ross proposed the unbiased ratio estimator?
  • Which of the following sampling methods is the best way to select a group of people for a study if you are interested in making statements about the larger population?
  • The auxiliary variable is also called
  • The average of cluster means is the unbiased estimator of a population mean when
  • In cluster sampling, elements of selected clusters are classified as
  • Sampling in qualitative research is similar to which type of sampling in quantitative research?
  • Which of the following would usually require the largest sample size because of its efficiency?
  • All of the following are true about cluster sampling except
  • The human resources department at company XYZ has 42 workers in int. To find out some information about the group as a whole, we want to take a sample of 7 of those workers to interview. If we have an ordered list of workers numbered 1 through 42, and we start at worker number 3, which worker would be included in our sample?
  • If a statistician randomly samples 50 observations in each population category then his sample will be ———-.
  • In which of the following non-random sampling techniques does the researcher ask the research participants to identify other potential research participants?
  • In systematic sampling, when $N=18$ with $n=3$ what will be the value of $k$?
  • In systematic sampling, the value of $k$ is classified as
  • If we took the 500 people attending a school in a city, divided them by gender, and then took a random sample of males and a random sampling of females, the variable on which we divide the population is called the
  • In a double sampling plan, if the number of defects is in between the two numbers C1 and C2 then
  • Which ONE of the following is the main problem with using non-probability sampling techniques?
Sampling Quiz with Answers

MCQs Test Preparation Website

Type I and Type II Errors Examples

The post covers the Type I and Type II Errors examples.

Hypothesis testing helps us to determine whether the results are statistically significant or occurred by chance. Hypothesis testing is based on probability, therefore, there is always a chance of making the wrong decision about the null hypothesis (a hypothesis about population). It means that there are two types of errors (Type I and Type II errors) that can be made when drawing a conclusion or decision.

Errors in Statistical Decision-Making

To understand the errors in statistical decision-making, we first need to see the step-by-step process of hypothesis testing:

  1. State the null hypothesis and the alternative hypothesis.
  2. Choose a level of significance (also called type-I error).
  3. Compute the required test statistics
  4. Find the critical value or p-value
  5. Reject or fail to reject the null hypothesis.

When you decide to reject or fail to reject the null hypothesis, there are four possible outcomes–two represent correct choices, and two represent errors. You can:
• Reject the null hypothesis when it is actually true (Type-I error)
• Reject the null hypothesis when it is actually false (Correct)
• Fail to reject the null hypothesis when it is actually true (Correct)
• Fail to reject the null hypothesis when it is actually false (Type-II error)

These four possibilities can be presented in the truth table.

Type I and Type II Errors Examples

Type I and Type II Errors Examples: Clinical Trial

To understand Type I and Type II errors, consider the example from clinical trials. In clinical trials, Hypothesis tests are often used to determine whether a new medicine leads to better outcomes in patients. Imagine you are a data professional and working in a pharmaceutical company. The company invents a new medicine to treat the common cold. The company tests a random sample of 200 people with cold symptoms. Without medicine, the typical person experiences cold symptoms for 7.5 days. The average recovery time for people who take the medicine is 6.2 days.

You conduct a hypothesis test to determine if the effect of the medicine on recovery time is statistically significant, or due to chance.

In this case:

  • Your null hypothesis ($H_0$) is that the medicine has no effect.
  • Your alternative hypothesis ($H_a$) is that the medicine is effective.

Type I Error

A Type-I error (also known as a false positive) occurs when a true null hypothesis is rejected. In other words, one can conclude that the result is statistically significant when in fact the results occurred by chance. To understand this, let in your clinical trial, the results indicate that the null hypothesis is true, which means that the medicine has no effect. In case, you make a Type-I error and reject the null hypothesis, it means that you incorrectly conclude that the medicine relieves cold symptoms while the medicine was (actually) ineffective.

The probability of making a Type I error is represented by $\alpha$ (the level of significance. Typically, a 0.05 (or 5%) significance level is used. A significance level of 5% means you are willing to accept a 5% chance you are wrong when you reject the null hypothesis.

Reduce the risk of Type I error

To reduce your chances of making Type I errors, it is advised to choose a lower significance level. For example, one can choose the significance level of 1% instead of the standard 5%. It will reduce the chances of making a Type I error from 5% to 1%.

Type II Error

A Type II error occurs when we fail to reject a null hypothesis when it is false. In other words, one may conclude that the result occurred by chance, however, in fact, it didn’t. For example, in a clinical study, if the null hypothesis is false, it means that the medicine is effective. In case you make a Type II Error and fail to reject the null hypothesis, it means that you incorrectly conclude that the medicine is ineffective while in reality, the medicine relieves cold symptoms.

The probability of making a Type II error is represented by $\beta$ and it is related to the power of a hypothesis test (power = $1- \beta$). Power refers to the likelihood that a test can correctly detect a real effect when there is one.

Note that reducing the risk of making a Type I error means that it is more likely to make a Type II error or false negative.

Reduce your risk of making Type II Error

One can reduce the risk of making a Type II error by ensuring that the test has enough power. In data work, power is usually set at 0.80 or 80%. The higher the statistical power, the lower the probability of making a Type II error. To increase power, you can increase your sample size or your significance level.

Potential Risks of Type I and Type II Errors

As a data professional, it is important to be aware of the potential risks involved in making the two types of errors.

  • A Type I error means rejecting a true null hypothesis. In general, making a Type I error often leads to implementing changes that are unnecessary and ineffective, and which waste valuable time and resources.
    For example, if you make a Type I error in your clinical trial, the new medicine will be considered effective even though it is ineffective. Based on this incorrect conclusion, ineffective medication may be prescribed to a large number of people. While other treatment options may be rejected in favor of the new medicine.
  • A Type II error means failing to reject a false null hypothesis. In general, making a Type II error may result in missed opportunities for positive change and innovation. A lack of innovation can be costly for people and organizations.
    For example, if you make a Type II error in your clinical trial, the new medicine will be considered ineffective even though it’s effective. This means that a useful medication may not reach a large number of people who could benefit from it.

In summary, as a data professional, it helps to be aware of the potential errors built into hypothesis testing and how they can affect the final decisions. Depending on the certain situation, one may choose to minimize the risk of either a Type I or Type II error. Ultimately, it is the responsibility of a data professional to determine which type of error is riskier based on the goals of your analysis.

R Language Quick Reference

Easy Hypothesis Testing Questions MCQs 7

Online MCQs Hypothesis Testing Questions with Answers. The Hypothesis Testing Quiz is important for the preparation of examinations and different statistical job tests in Government/ Semi-Government or Private Organization sectors. These tests are also helpful in getting admission to different colleges and Universities.

Please go to Easy Hypothesis Testing Questions MCQs 7 to view the test

Hypothesis Testing Questions MCQs

The goal of hypothesis testing is to assess the evidence against the null hypothesis (a statement about population also called claimed hypothesis). If the evidence is strong enough (based on the sample information), one can reject the null hypothesis and conclude that the alternative hypothesis is more likely to be true. However, it is important to remember that we never truly “prove” the alternative hypothesis; one can only reject the null hypothesis.

Hypothesis Testing Questions MCQs

  • Statistical inference is divided into two major branches as given below
  • The probability of accepting the true null hypothesis is called
  • The probability of rejecting a true null hypothesis is called
  • If a false hypothesis is accepted, it is called
  • Hypothesis testing and estimation are major classifications of
  • The hypothesis that is tested for the possible purpose of rejection is called
  • In testing of the hypothesis, the sampling distribution of the test statistics is based on the assumption that
  • Which of the following cannot be considered as a hypothesis ($H_0$)
  • The alternative hypothesis may be of the form
  • The null hypothesis always contains some sign of
  • Which of the following is not the composite hypothesis
  • The critical region is the part of the sampling distribution for which the null hypothesis is
  • The null hypothesis ($H_0$) is
  • One-sided and two-sided tests are based on
  • If the alternative hypothesis is of the form $H_1:\theta < \theta_0$ then the test will be
  • If the alternative hypothesis is of the form, $H_1: \theta \ne \theta_0$ then the test will be
  • If the population standard deviation is not known and the sample size is large ($n\ge 30$) then the test statistic to be used is
  • In the t-test, we use
  • For testing of the hypothesis about population proportion, we use
  • The ———— of a test is the maximum probability with which we are willing to a risk of Type-I error.
Hypothesis Testing Questions with Answers

Computer MCQs Online Test

R Programming Language