# Questions tagged [regression]

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

24,554 questions
Filter by
Sorted by
Tagged with
0answers
6 views

### A regressor performs better under a certain regime — how to condition that regressor to make regression better?

I ran a regression $Y \sim X_1 + X_2 + .. X_n$. I find out what one regressor , $X_1$'s performance depends on another variable $t$ (not in the regression). So basically if I bucket by $t$, within ...
0answers
4 views

### prediction model for a cross sectional data for ONE YEAR

I have a set of cross sectional database in which are the scores of 30000 students in different subjects plus their sex and type of school, it looks like this (13 explanatory variables) All these ...
0answers
9 views

### Mutiple regression analysis [closed]

Can anyone help with the multiple regression analysis and interpretation of these data set? Score in the final exam is the dependent variable while the others are the independent variables. Thank you!...
0answers
5 views

### Estimating WTA (or WTP) from a logit model

I am a beginner at writing and estimating models and will appreciate the community's help. I have some data on whether individuals accepted or rejected some tasks that they were assigned. Here's a ...
0answers
18 views

### Unbalanced residuals in mortality prediction (aquaculture) [closed]

*I'm working on predicting mortality in aquaculture (fish farming), when the better the score the more the mean of the predictions deviate from the target mean. The distribution of the target data ...
0answers
10 views

### Which is the best way to analyze a pooled cross sectional data? [closed]

I'm currently estimating the effect of the type of sovereign debt restructuring have on economic growth. My dependent variable is cumulative growth rate of gdp per capita for 5 years. I've given an ...
1answer
18 views

### Where does this formula for the effect of the mediator on the outcome comes from?

I am reading the paper Caron, P.-O., & Valois, P. 2018. A computational description of simple mediation analysis. The Quantitative Methods for Psychology, 14(2): 147–158. There there is the ...
1answer
15 views

### Neural network using Orange

I'm using Orange Data Mining in a regression analysis applying Artificial Neural Network (ANN). Some works suggest defining the number of neurons in the input layer as the number of variables. The ...
0answers
23 views

### Finding the coefficient of determination from a regression line?

Suppose you are given the following estimated model from a sample of size 1217: $\hat{y} = 1.177663 + 0.0910103x$ and the standard errors of the coefficients are $0.0865446$ and $0.0065643$ ...
0answers
18 views

### what is the relationship between the two standard errors

I have two variables $X$ and $Y$. Consider that there is one sample with 1000 observations, we can get the standard error of coefficient by this equation: $se(\hat\beta) = \sqrt{\sigma^2(X^TX)^{-1}}$. ...
0answers
6 views

### Seeing fair correlation at some points and zero correlation at many points between dependent and independent variable ; how to go about treating this

I have a dataset with and dependent and independent variable have an odd style of correlation
1answer
21 views

### Normalizing/Scaling a dataset does not have any effect on r2 score?

I have this question on my mind for some time now, but unable to find some thorough explanation around this. While working on the Boston housing data set, scaling the data has no effect on the output. ...
1answer
32 views

### Is using percentile data for linear regression a valid approach?

With this article from the CDC, I'm creating a log-log plot of all percentiles for the weight of men aged 25-34 (page 32) against all percentiles for the height of men aged 25-34 (page 33). So the ...
0answers
12 views

### Maximum likelihood estimation of a gamma distribution mixed with linear regression in R

I have this excercise in R and I don't know where to start. The income dataset was collected with intervals instead of the actual number. The following table shows every interval in the dataset. $y_i$...
0answers
16 views

### Is there a test to find if it is a matter of Poisson or simple regression?

I want to measure the percentage of visits to transit stations during the pandemic (using Google Mobility Reports), according to other variables (% of vaccinated people, % of visits to the workplace ...
0answers
20 views

### Establishing relationship between two variables with low sample size(5)

My question is - Is elevation range of plants linked to intraspecific trait variability. I want to explore the relationship between the coefficient of variance (CV) of a certain plant functional ...
0answers
15 views

### Would a machine learning algorithm run faster on a pre-clustered dataset than its non-clustered equivalent? [closed]

Suppose we want to perform regression/classification on some arbitrary dataset. I read somewhere (can't recall where) that clustering is sometimes used as a preprocessing step before further learning ...
2answers
26 views

### Ordinal predictor treated as continuous in multiple linear regression: testing deviation from linearity with SPSS

I am running a multiple linear regression with a continuous DV and a number of independent variables, one of which is ordinal (three-levels). I am trying to follow David J Pasta’s instructions to ...
0answers
8 views

### How much importance should I give to R2 and p-value when analyzing a trend?

I am working on a small dataset, with data points regarding 21 geographic regions of my country. The dataset is composed of numeric variables only, so I've performed some linear regression to verify ...
0answers
17 views

### Random effects : Number of coefficients more then individuals

I'm trying to estimate a random effects model in R using the plm function. my data consists of financial and environmental variables for 6 banks from between the year 2012 and 2020. when i run the <...
0answers
26 views

1answer
22 views

### Simplifying the conditional expectation $E[X|Y]=(-a +Y-E[e|Y])/b$ to find the slope of the Reverse Regression line

I have a pretty basic question about conditional expectation that is stumping me. Consider the real-valued random variables $Y$, $X$ and $e$, where $E[e] = 0$ and $X$ and $e$ are independent. Assuming ...
1answer
18 views

### Causality comes form experiment manipulation or statistical calculation?

It is known that "Regression can only imply correlation but not causality" But whether a research can draw their variables to causality relationship is somewhat determined by whether the ...
0answers
7 views

### Any issues with conducting stratafied train/test splitting based on the distribution of a categorical predictor?

I am building a xgboost regressor for a dataset that includes a categorical feature with a very large number of levels (on average, each level has an observation frequency of only about .2%). However, ...
0answers
28 views

### In linear regression, is Bartlett's test for homoscedasticity used improperly?

Bartlett's test is used to test homoscedasticity between two or more independent normal populations (with unknown mean). The actual formula is not important for my question. The important thing is ...
1answer
13 views

### Plugging in Regression Coefficients back into Cox PH Model

I am trying to plug the regression coefficients back into the cox ph model to manually find the partial hazard of the model, but am getting mixed results. I am using the lifelines python library for ...
0answers
27 views

### Using variance of y variable as weights for weighted linear regression when both x and y variables contain negative values?

I am currently dealing with a weighted linear regression problem in the context of an instrument calibration in analytical chemistry. Let's assume I have a response variable y and a predictor variable ...
1answer
18 views

### Regression with percentile independent variable

I am running a simple regression with average standardized exam scores at the school-level, and weekly household income at the neighborhood-level where the school is located. The two variables look as ...
1answer
80 views

### Multiple regression in SEM when the covariance between predictors is fixed to zero

I did a multiple regression with $x_1$ and $x_2$ predicting $y$, and found that I could recreate in SEM software (lavaan or AMOS) the same results I got doing things the regular way in R with the <...
0answers
43 views

### Can I double my dataset by including opposites?

The data set I'm working with is a set of votes. Experts in a field vote for outcome A or outcome B and I'm running a logistic regression to get a feel for how the intensity of the majority vote ...
0answers
12 views

### How does ordinal regression compare to quantile regression?

I am familiar with ordinal regression and quantile regression at a high level, but would like a deeper understanding of the two beginning on how they differ. Can someone compare and contrast the two, ...