Questions tagged [cooks-distance]
A measure of the influence of a single observation in regression modelling.
69
questions
3
votes
0
answers
33
views
Does Cook's distance follow an $F$-distribution?
The question is pretty much contained in the title: in a linear model $Y=X\beta +\epsilon$, with $\epsilon\sim N_n(0,\sigma^2 I_n)$, does the Cook's distance, defined as
$$
D_i:=\frac{\frac{1}{p}||X(\...
0
votes
1
answer
84
views
R Cook's distance vs leverage/(1-leverage) plot
One of the R plots for a diagnostic of linear model lm() is a plot Cook's distance vs. $\dfrac{h_{ii}}{1 - h_{ii}}$. My question ...
0
votes
1
answer
36
views
Explaining Cook's Distance
Does Cooks Distance tell us how much the estimated parameter values change when the ith observation is removed or how much the fitted values change when the ith observation is removed?
I'm being told ...
2
votes
1
answer
78
views
Cook's distance for GLM
In Applied Logistic Regression by Hosmer, Lemeshow and Sturdivant (2013), the formula for Cook's distance in a logistic regression is given as,
$$\Delta\beta_j = \frac{r_{sj}^2h_j}{1-h_j}$$
where $r_{...
0
votes
0
answers
16
views
Interpretation of residual vs fitted & cooks distance plots
I am having a difficult time interpreting this model. I am investigating whether hypertension is a risk factor for having low birthweight babies.
I ran a multivariable logistic regression's model with ...
0
votes
0
answers
34
views
Transforming predictors for multiple regression in R
I am trying to perform a multiple regression in R. However I am having hard time to interpret the plots or decide what kind of transformation might be needed.
Here is a scatterplot matrix with all my ...
1
vote
1
answer
27
views
Are the assumptions of collinearity and no influential observations relevant when all predictor (independent) variables are categorical?
In order to run a simple linear model (e.g. using lm() function in R) I am under the impression that the following assumptions must be met:
Normality of residuals
Homoscedasticity
No collinearity (...
1
vote
0
answers
146
views
Analysis on Cook's distance when residuals are not normal
I have found in the slides of my course about linear regression a sentence that I couldn't understand properly which is the following one: "If residuals are not normal, analysis on Cook's ...
0
votes
0
answers
90
views
Outlier in pearsons residuals after removing influential observations - How to remove?
I'm trying to run a GLM with multiple continuous preditor variables in R, cook's distance shows influential observations, I remove these and check my residuals for the model and have the outlier shown ...
1
vote
0
answers
212
views
Cook's distance threshold in R
Short question: Which method is used in R to determine the threshold of the Cook's distance?
For example in the demand '''ols_plot_cooksd_bar''' there is drawn a threshold line.
0
votes
0
answers
39
views
How to find 'influential points' in multivariate data with weak covariance
Part-1: I have used PCA and Mahalanobis distance to find outliers. But in both cases, only the highest or lowest values are detected as outliers. I am looking for a way that any data point that does ...
0
votes
1
answer
161
views
Linear Algebra Treatment of Cook's Distance (or any situation involving deleting an observation)
I'm having trouble reconciling the idea of "deleting" a fitted value from a vector of fitted values in order to calculate the Cook's Distance. This notion is also troubling me in all of the ...
2
votes
0
answers
242
views
Cook's distance for other then linear regression methods
I am curious when I can use cook's distance. I read here that it is only used for linear regression, but then on another site that it can be used for regression trees. So when is it appropriate to use ...
0
votes
0
answers
581
views
Cook's distance, not plotting an observation with leverage one. What is this?
I am doing some regression diagnostics in R.
I use plot() function and look at the four graphs. However, when I reach Cook's distance graph, I receive a warning ...
3
votes
0
answers
2k
views
Understanding Residuals vs Leverage plot in terms of meeting regression assumptions
Can someone help me understand the Residuals vs Leverage plot in terms of meeting the assumption of independence/influence for multiple linear regression models?
My understanding is that the ...
1
vote
0
answers
194
views
Addressing an observation which exceeds Cook's Distance
During my data analysis, I've been modelling the effect of 13 predictor variables on one response variable, house prices. When looking into possible transformations for my predictor variables, I was ...
1
vote
0
answers
1k
views
Is Cook's Distance a reliable way to find influential points?
I used Cook's Distance to identify influential points on several datasets and found model performance doesn't improve at all after removing them. So I wonder if Cook's Distance is a reliable way to ...
3
votes
1
answer
3k
views
Difference between DFBETA with DFFITS / Cook’s distance
A description of DFBETA is on the Wikipedia page: https://en.wikipedia.org/wiki/Influential_observation along with DFFITS and Cook’s distance.
Cook’s distance and DFFITS are conceptually identical and ...
3
votes
3
answers
2k
views
When to remove outliers?
I am currently doing a linear regression model. At the suggestion of my professor, we have looked at Cook’s distance to identify outliers. Here is the Cook’s distance plot using R. From what I ...
9
votes
2
answers
3k
views
Why the `cooks.distance()` function doesn't detect an obvious outlier?
I have the next plot:
I want to detect outliers to delete them. I apply next code to detect them and delete them:
...
5
votes
1
answer
1k
views
The algebraic equivalence of two expressions for Cook's distance
I have read several times across different sources now that the definition of Cook's Distance, which is
$$D_i=\frac{\sum_{j=1}^n(\hat{y}_j-\hat{y}_{j(i)})^2}{ps^2}$$
(where $\hat{y}_j$ is the jth ...
0
votes
1
answer
170
views
Finding the Case with the Highest Influence
I'm new to regression and diagnostics so if this seems a bit basic/unnecessarily long-winded that's why.
I perform a multiple regression of a response variable on four predictor variables. There are ...
1
vote
0
answers
901
views
Cooks distance and categorical features
I try to detect outliers by cook´s distance for a regression. If I only use numeric features as explanatory variables it works fine. However, if I add categorical features to the explanatory features ...
7
votes
2
answers
1k
views
Identifying outliers in the data
Sample data
...
1
vote
0
answers
260
views
Sensitivity Measures for GEE Model
Is there any method (e.g. like Cooks D) implemented in R to identify leverage points for GEE Models? I used geepack to fit my models and would like to do a sensitivity analysis now. However, I don't ...
0
votes
1
answer
1k
views
Cooks Distance Confusion
I know there are a lot of questions along this vein, but none seem applicable to the data I have.
Essentially I have run a one-way ANOVA using a variable composed of 4 different groups (A:D) and the ...
1
vote
0
answers
67
views
How to find an optimal combination of predictors in predicting outcome?
It is a marketing project in which I need to compare the effectiveness of six different marketing tools in terms of sales. the tools are like "No. of times a salesman personally visit to the customer",...
8
votes
2
answers
19k
views
Cook's distance vs. hat values
What exactly does Cook's distance measure? And how is this different from what hat values measure?
I know hat values measure how distant a point it form its corresponding fitted point. I also know ...
2
votes
2
answers
2k
views
A better Outlier Detection approach! [duplicate]
Currently I am using Cook's distance to detect outliers in multivariate data. Is there any better approach than Cook's distance for the same?
0
votes
0
answers
691
views
Can I use Cook's distance to detect outliers without a Dependent Variable?
I asked a previous question that I think was not worded well and long so I'm trying again!
I have 3 different tasks and performance for 20 levels in each task, therefore, performance for 60 levels in ...
1
vote
1
answer
4k
views
Should I remove the influential points in this case?
I build a linear model from a small dataset with
...
2
votes
1
answer
5k
views
Plotting Cook's Distance Lines [closed]
I've currently created a plot using Python showing leverage vs residuals of some data. I want to plot Cook's Distance lines like shown in Case 2.
How would I go ahead with this?
4
votes
1
answer
9k
views
Understanding Cook's Distance
I'm trying to use Cook's Distance in order to detect outliers in high-dimensional datasets.
However, I've found some troubles in order to do such thing. Usually, once I've built the linear model and ...
6
votes
1
answer
172
views
Outliers in Linear Regression that ONLY revert significance
When doing linear regression, all sorts of influence checks (Cook's Distance, leverage, dffits, dfbetas, covratio) can be conducted on the data points. Each of these are literature-supplied with some ...
2
votes
0
answers
564
views
How to calculate Cook's distance for `lm.ridge` objects in R
How can I calculate Cook's distance for lm.ridge objects?
I first created a glmnet object and carried out ridge regression ...
1
vote
0
answers
88
views
Justification for Dummy Variable When Cook's < 1
For a class project, I have a data set of restaurants and health inspection scores. I want to indicate if a restaurant was closed or not due to violations as this seems to be a significant predictor ...
5
votes
1
answer
2k
views
Casewise diagnostics and testing assumptions for a mixed effect logistic regression in R
I am modelling a binary outcome (Buried), that has two predictors: Offset (a 3 level factor) and width (continuous predictor). In addition, multiple data points came from the same unit -- a chamber, ...
2
votes
2
answers
422
views
What to do with an outlier that once removed prevent model convergence?
So, I'm performing generalized linear mixed models with a poisson distribution and an offset. When looking at the Cook's distance, I found gigantic values (above 3000). When removing the concerned ...
4
votes
1
answer
484
views
Can Cook's distance plot only be used for least squares regression?
If Cook's distance can only be used for least squares regression, what are some alternatives that will give me a similar plot for a Gamma model or any regression model from the exponential family?
0
votes
2
answers
1k
views
How do I remove outliers in dataset?
I have a data-set (185 rows) with 20 predictors and 1 dependent variable.
I have applied Cook's distance and then 4/N formula to remove some of the outliers in 1st iteration. Should I do this ...
5
votes
1
answer
1k
views
Do points with high Cook's distance necessarily have a high standardized residual, and vice-versa?
I have two questions below:
Could a data point be an influential point if its cook distance is outstanding(greater than 4/(n-p-1)) while its standardised residual is less than 2? It looks like to me ,...
3
votes
1
answer
1k
views
Diagnostics for generalized additive model vs linear model
I am doing an analysis in R and I have the model:
lm(birthrate~education+employment+lo(latitude, longitude),data=data2).
It seems to be a generalized additive ...
2
votes
1
answer
227
views
Influential case - to remove or not to remove?
I'm doing a multiple regression analysis with 3 predictor variables (RELAT, SSS and FAITH), and the criterion variable is SSE. I have found that SSS is a mediator between RELAT and SSE, and FAITH is a ...
8
votes
2
answers
5k
views
Cook's distance in detecting outliers
According to my understanding, Cook's distance measures the influence of each observation by excluding points when fitting a model. So I assume it could be an reasonable approach for outlier detection?...
1
vote
2
answers
1k
views
Inference of Cook's Distance Plot
What can we infer from cook's distance or the cook's distance plot of regression model?
How can it be used to refine model further ?
Should we remove the values which are high influencers or lie ...
3
votes
0
answers
129
views
Multiple Regression Assumptions
This may seem like a basic question, but I'm verifying the assumptions for a multiple regression and have some trouble wrapping my head around homoscedasticity. I have a few questions listed below:
1)...
0
votes
0
answers
1k
views
Outlier detection in multivariate data
I have a table with thirty variables and am interested in finding the outliers (rows). Assuming that my variables are independent I am hesitant whether I should use Cook's distance as it requires to ...
3
votes
0
answers
78
views
Is there a bound of percentage/number of influential points for a given size sample?
Consider for a given data set of size $N$, and we do a linear regression analysis on it. We know that we can define influential points among this dataset by setting a threshold value on the Cook's ...
2
votes
0
answers
329
views
Interpreting linearity in regression when there are outliers
I am trying to determine whether this regression meets all of the assumptions one needs to adhere to when carrying out a multiple linear regression. In looking at the residual plots below, it seems to ...
21
votes
1
answer
81k
views
Removing outliers based on cook's distance in R Language
I have this R code for linear regression:
fit <- lm(target ~ age+sales+income, data = new)
How to identify influential observations based upon cook's distance ...