Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 151862

Techniques for analyzing the relationship between one (or more) "dependent" variables and "independent" variables.

1 vote
0 answers
84 views

Can you predict the residuals from a regularized regression using the same data?

However, what if instead of OLS I run a regularized least squares (elastic net, lasso, ridge, etc.) regression. … Would that give me any information I didn't already have when I originally ran the regularized regression? …
badmax's user avatar
  • 2,251
2 votes
1 answer
255 views

Do you trust an OLS estimated coefficient when it's not statistically significant?

Suppose you add a feature $x$ to an OLS model. The AIC goes down by 100 but the new feature is not statistically significant. The expanded model should be preferred overall but is the estimated coeffi …
badmax's user avatar
  • 2,251
3 votes
1 answer
76 views

How can you do regression when two groups of variables sum to each other?

Suppose I have a model like this: $$ y = \beta_1x_1 + \beta_2x_2 + \beta_3z_1 +\beta_4z_2 + \epsilon $$ where $\epsilon$ is noise. It so happens that $$x_1 + x_2 = z_1 + z_2$$ but there is no othe …
badmax's user avatar
  • 2,251
1 vote
1 answer
36 views

What can I do if scaling doesn't break correlation for quadratic terms?

Suppose I have this model: $$y = \beta_1x + \beta_2x^2 + \epsilon$$ I would like to fit it using OLS. In my data the correlation between $x$ and $x^2$ is $0.91$. After I rescale $x$ to zero mean and u …
badmax's user avatar
  • 2,251
1 vote
2 answers
472 views

Why does minimizing absolute value and squares of residuals in a regression give different a...

We are minimizing either the $1$ norm of the residuals, least absolute value, or the $2$ norm, least squares. Least absolute value: $$\min_\beta||y - x \beta||_1$$ Least squares: $$\min_\beta||y …
badmax's user avatar
  • 2,251
2 votes
1 answer
77 views

Do I need to adjust for confounding when the confounder is not causal?

Suppose I have a model like $$y =\alpha + x_1\beta $$ and that there exists another variable, $x_2$, that is correlated with both $y$ and $x_1$. However, changing $x_1$ will cause changes in $x_2$ …
badmax's user avatar
  • 2,251
1 vote
0 answers
31 views

DFBeta Measures for Subsets of Variables

I need to calculate the DFBETA statistics for a logistic regression. The number of columns in the $X$ matrix is $3000$ and the number of records is in the millions. …
badmax's user avatar
  • 2,251
0 votes
0 answers
68 views

How do you make dummies for collinear categorical variables?

How do I set up the dummies to fit a linear regression model? …
badmax's user avatar
  • 2,251
4 votes
1 answer
732 views

Which of the Gauss-Markov assumptions does error-in-variables violate?

The Gauss-Markov theorem states that for a linear model $$y = X \beta + \epsilon $$ if both of the conditions are true $$\operatorname E[\epsilon \mid X] = 0$$ $$\operatorname{Var}(\epsilon) = \sig …
badmax's user avatar
  • 2,251
1 vote
3 answers
52 views

Why does pre-summing variables lead to a different OLS fit?

Suppose I have an OLS model like this: $$y = \beta_1x_1 + \beta_2x_2 + \epsilon$$ If you sum the variables first, $x_3 = x_1 + x_2$ and fit $$y = \beta_3x_3 +\epsilon$$ I expect that $\beta_3$ is the …
badmax's user avatar
  • 2,251
1 vote
1 answer
7 views

What is the relevant asymptotic when regressing rates?

Suppose I am modeling some quantity $y$ as a function of a covariate $x$, using a model from the linear family. $$ y = \beta x + \epsilon $$ For simplicity let's assume $x$ is categorical with $2$ val …
badmax's user avatar
  • 2,251
1 vote
2 answers
75 views

Do trees work with fat data sets?

I have a data set of $200$ observations of $10,000$ features. I want to use this data to make numeric predictions of a target variable $y$. Will trees, in particular XGBoost, be useful here? I feel li …
badmax's user avatar
  • 2,251
5 votes
2 answers
64 views

If you're only interested in predicting $Y$ when $X>n$, should you use all $X$ in a regressi...

Suppose you have data on $X$ and $Y$. You're interested in predicting $Y$ but you're only interested in $Y$ when $X > n$. Should you use all values of $X, Y$ pairs or just the ones where $X > n$?
badmax's user avatar
  • 2,251
1 vote
1 answer
1k views

Why use the square transform to reduce left skew?

Suppose all the data is positive. Squaring it means that the bigger values in the hump will get multiplied by a bigger number than the smaller values in the tail. Doesn't that just exacerbate the prob …
badmax's user avatar
  • 2,251
5 votes
1 answer
299 views

Do linear models with shrinkage maintain the "controlling for" property of the predictors?

Suppose I run a linear model with shrinkage, say elastic net, and only 2 coefficients remain. The model then looks like $$y = \beta_1 x_1 + \beta_2 x_2 + \epsilon$$ Can I say that $\beta_1$ is the i …
badmax's user avatar
  • 2,251

15 30 50 per page