I have data points $(x_t,y_t)$ generated from $y_t = a + b x_t + \epsilon$ where $\epsilon$ is gaussian error term with zero mean and unknown variance. I want to estimate coefficients $a$ and $b$ but their is some cost associated with generating more data points. So, how many number of data points to get a "reasonable" estimate of the coefficients? Can we quantify what is "reasonable"?
2026-03-26 09:16:11.1774516571
How many data points are "enough" for linear regression?
4.2k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in STATISTICS
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Statistics based on empirical distribution
- Given $U,V \sim R(0,1)$. Determine covariance between $X = UV$ and $V$
- Fisher information of sufficient statistic
- Solving Equation with Euler's Number
- derive the expectation of exponential function $e^{-\left\Vert \mathbf{x} - V\mathbf{x}+\mathbf{a}\right\Vert^2}$ or its upper bound
- Determine the marginal distributions of $(T_1, T_2)$
- KL divergence between two multivariate Bernoulli distribution
- Given random variables $(T_1,T_2)$. Show that $T_1$ and $T_2$ are independent and exponentially distributed if..
- Probability of tossing marbles,covariance
Related Questions in REGRESSION
- How do you calculate the horizontal asymptote for a declining exponential?
- Linear regression where the error is modified
- Statistics - regression, calculating variance
- Why does ANOVA (and related modeling) exist as a separate technique when we have regression?
- Gaussian Processes Regression with multiple input frequencies
- Convergence of linear regression coefficients
- The Linear Regression model is computed well only with uncorrelated variables
- How does the probabilistic interpretation of least squares for linear regression works?
- How to statistically estimate multiple linear coefficients?
- Ridge Regression in Hilbert Space (RKHS)
Related Questions in PARAMETER-ESTIMATION
- Question on completeness of sufficient statistic.
- Estimate the square root of the success probability of a Binomial Distribution.
- A consistent estimator for theta is?
- Estimating the mean of a Poisson distribution
- A problem on Maximum likelihood estimator of $\theta$
- The Linear Regression model is computed well only with uncorrelated variables
- Derive unbiased estimator for $\theta$ when $X_i\sim f(x\mid\theta)=\frac{2x}{\theta^2}\mathbb{1}_{(0,\theta)}(x)$
- Is there an intuitive way to see that $\mathbb{E}[X|Y]$ is the least squares estimator of $X$ given $Y$?
- Consistent estimator for Poisson distribution
- estimation of $\mu$ in a Gaussian with set confidence interval
Related Questions in REGRESSION-ANALYSIS
- Average distance between consecutive points in a one-dimensional auto-correlated sequence
- A question regarding standardized regression coefficient in a regression model with more than one independent variable
- find a linear function $f(x,y) = ax + by + c$ which minimizes the total square error
- Calculating Taylor coefficients by fitting
- Interpretation of Sampling Distribution and Relationship to Test Statistics
- How are the equations of non linear data determined?
- The expected value of mean sum of square for the simple linear regression
- For the simple linear regression model, show that the elements of the hat matrix $H$ are...
- Derivation of Maximum Likelihood Estimators for heteroskedasticity case of simple linear regression
- How to fit a cumulative time series?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Obviously, how big an $n$ is enough depends on your goals and criteria. A similar question is "How rich is rich enough?"
I will write the model as $Y_i = \alpha + \beta x_i + e_i,$ where intercept $\alpha$ and slope $\beta$ are unknown constants to be estimated and the $e_i$ are IID $Norm(0, \sigma_e),$ where $\sigma_e$ also has to be estimated.
You specifically mention wanting estimates $a = \hat \alpha$ of coefficient $\alpha$ and $b = \hat \beta$ of $\beta$ to be good, so I'll start there.
Slope. A 95% CI for $\beta$ is $$b \pm t^* s_{y|x}\sqrt{1/S_{xx}},$$ where $s_{y|x}$ estimates $\sigma,$ $S_{xx} = \sum_{i=1}^n (x_i - \bar x)^2,$ and $t^*$ cuts 2.5% from the upper tail of Student's t distribution with $df = n-2.$ Also, $s_{y|x}^2$ is the sum of squared residuals divided by $n-2.$ We say that the 'standard error' for estimating $\beta$ is $s_{y|x}\sqrt{1/S_{xx}}.$ Roughly speaking, $s_{y|x}$ tends to be small when the data points are well-fit by the regression line.
The regression line must pass through $(\bar x, \bar Y),$ the 'center of gravity' of the data cloud. The more a given number of $x_i$'s are spread out over the region of interest, the greater $S_{xx}$ will be and the smaller the margin of error for estimating the slope $\beta$ will be. Also, increasing the number $n$ of $X_i$'s increases $S_{xx}.$ (The sample variance of the $X_i$'s is $S_{xx}/(n-1).$ This is one instance in statistics where it is $good$ to have high variability!)
Y-Intercept. Similarly, the standard error for estimating $\alpha$ is $s_{y|x}\sqrt{\frac{1}{n} + \frac{\bar x^2}{S_{xx}}}.$ So the precision of the estimate is improved by making $n$ and $S_{xx}$ larger. More $x_i$'s and more spread out.
Prediction. Sometimes the main goal of doing a regression is to be able to predict the value of $Y_{n+1}$ corresponding to a new observation at $x_{n+1}.$ A 95% prediction interval is $$\hat Y_{n+1} \pm t^* s_{y|x}\sqrt{1 + \frac{1}{n} + \frac{(x_{n-1}-\bar x)^2}{S_{xx}}}.$$ The additional message here, based on the last term under the radical, is that prediction of a new Y-value is more precise if the new x-value is near the average of the $x_i$'s used to make the regression line.
Summary. It is not just the number $n$ of points that matters, but how spread out they are and whether their x-values are centered near where the x-values of new points of interest may lie. Of course, all of this depends on whether a linear model can truly describe the connection between x and Y values. Expressions with cut-off points $t^*$ from Student's t distribution depend on having normally distributed errors.