Questions tagged [linear]

For statistical topics which involve the assumption of linearity, for example, linear regression or linear mixed models, or for the discussion of linear algebra as applied to statistics.

A linear function (in the sense of calculus) is one of the form $$f(x)=ax+b $$ where $a$ and $b$ are constants. The constant $a$ is the slope and the constant $b$ is the intercept of the function. This type of linear function occurs, for example, in linear regression.

In linear algebra, a linear function is a map $f$ between two vector spaces which is compatible with addition and scalar multiplication: $$f(x+y) = f(x) + f(y), \quad \quad f(ax) = a f(x), $$ where $x$ and $y$ denote elements of a vector space and $a$ denotes a scalar.

Note: the first type of linear function mentioned above is closely related to the second kind, being a special case of what is called (in linear algebra) an affine function.

1489 questions
2
votes
1 answer

Knockoff - how to get the equal-correlation solution?

I'm trying to understand certain results stated in the original Knockoff paper ("Fixed-X"). They state that the Knockoffs can be constructed as follows: It's true that this matrix obeys the properties needed from Knockoffs, though I wonder how they…
Maverick Meerkat
  • 3,403
  • 27
  • 38
2
votes
1 answer

Linear trend when $y = \infty$ if $x = 0$

If I'm trying to establish a linear relationship between effort (watts produced or speed, for example) and time-taken. How can I account for the fact that if effort is zero (speed equal zero or watts produced equal zero) then the time taken would be…
lithic
  • 311
1
vote
0 answers

Making linear models in R

I'm trying to make linear models in R, using the practicing datasets (sim1, sim2, sim3, sim4). So I used this code, mod1 <- lm(y ~ x1 + x2, data = sim3) mod1 And it printed this one. Coefficients: (Intercept) x1 x21 x22 …
1
vote
1 answer

How to find out if relationship is linear, without graphing?

An obvious way to find out whether a relationship between X and Y is linear, is to construct a scatterplot. But is there any other way, e.g. some statistical test? My X and Y variables have quite a few data points (e.g. 5K).
Ken Lee
  • 351
0
votes
0 answers

The variance of the predicted variable in a linear regression problem

Given the model $y = f(x) + \epsilon, f(x) = Wx$, I want to find an estimate of $Var(Y)$. Note here I don't account for the randomness in the input $x$, but rather I consider it a deterministic value. Since $\epsilon\sim \mathcal{N}(0,\sigma)$ then…
rando
  • 236
0
votes
1 answer

linear regression as an alternative to cox proportional hazards regression model

I want to apply linear regression on age at first birth (response variable) data instead of cox regression. I will apply it on data for only females who have had a birth. Does this make sense?
0
votes
1 answer

Why, oh why, does R automatically eliminate variables from my dataset when running lm?

First of all, forgive my moronosity (new word I made up). I am running R on data from trees in burn areas. Simple, straightforward dataset. And yet, R for some reason hates chestnut oak. My species are NRO, WO, and CHO. It will not report on CHO,…
0
votes
1 answer

What is the result of averaging the weights of Linear Models?

Say I have two datasets that have the same features but different samples. If I build two linear models, one for each of the datasets, and then take a weighted average (say the weights here are the number of samples in each of the datasets that the…
0
votes
1 answer

Nonlinear relationship interpretation

I have two variables which may have a nonlinear relationship, according to the descriptive statistics. The independent variable has a positive and significant coefficient in the OLS regression. When a square term is included in the model this…