Questions on (linear or nonlinear) regression, the fitting of functions that best approximate empirical data.

learn more… | top users | synonyms

0
votes
0answers
26 views

Metric for movement in 2D space

I have a set of points that represent the coordinates of an object moving in the 2D space at different points in time. Using this points I want to get a "measurement" that will describe the general ...
0
votes
1answer
46 views

Derivative of an exponentially weighted moving average

It has been a while since my university math courses, so let me apologize right off the bat... I'm using GSL to perform non-linear regression analysis and am mostly happy with the outcome, however, ...
0
votes
1answer
22 views

Convert odds ratio based on unit change to several unit changes

Imagine to have two groups of people, the first one more strongly exposed to a pollutant than the second one, and the first one developing a certain disease more often. Having measurements of the ...
2
votes
1answer
24 views

Gaussian prior favors values closest to zero?

I am reading an article on Bayesian Logistic Regression, where they're using Logistic Regression, imposing a Gaussian prior (with mean = 0) on its parameters. They state that a Gaussian prior favors ...
0
votes
0answers
21 views

evaluation of polynomial regression

I have a data set $(x_i$ $y_i)$ if=1...20. I have to fit the data using polynomial feature. How can I evaluate what the complexity of model should be chosen? There is a hint in the task using RMSE ...
4
votes
1answer
26 views

Using regression results to predict?

I run some Poisson regressions with the following results: (with number of associations an individual belongs to as the dependent variable) ...
0
votes
1answer
19 views

Derivation of SSE gradient for Linear Regression

In my text book it gives the derviation of the gradient for the likelihood of a linear regression model (to minimize the negative log likelihood by minimizing the Sum Squared Error). The first line ...
5
votes
2answers
68 views

Update a regression on the fly?

Say I have 100 people each with a height, weight, and age. I make a regression that predicts age based on height and weight. Now, I would like to update that model when I meet someone new. I don't ...
0
votes
0answers
33 views

R squared (Proportion of variance explained) in terms of conditional variance?

My question concerns a comparison between 2 models in terms of proportion of variance explained. Let $y_{t+1}$ denotes the variable I want to explain or predict and $\mathcal{F}_t$ the information ...
0
votes
0answers
33 views

Unconditional sampling distribution of regression coefficients

I am trying to find the (unconditional) sampling distribution of a regression coefficient in a simple linear regression. The linear regression $Y = \beta_0 + X\beta_1 + \epsilon$ is conducted for $N$ ...
1
vote
1answer
31 views

How to perform a monotonic function fitting of data points?

I'm seeking suggestions for general purpose function fitting of a set of data points, where, based on physical intuition, the relationship is expected to be "monotonic", i.e. the function should be ...
0
votes
2answers
36 views

Testing if $X_1$ has an influence of $Y$

Consider you have the suspicion that $Y$ is influenced by two attributes $X_1$ and $X_2$: $$ Y=\theta_0+\theta_1X_1+\theta_2X_2+\theta_3 X_1X_2+U $$ The following data are given. Test ...
0
votes
0answers
21 views

Multivariate Multiple Regression with Repeated Measures

I have a dataset with p predictors for i items (so multiple regression). For each of s subjects, I have r repeated observations of v dependent variables (so it's a multivariate problem). I wish to ...
0
votes
0answers
14 views

Do I have classical measurement error?

this is an econometrics question, so I hope I'm in the right place. Consider the following OLS regression: Y = alpha + beta X + M + epsilon I'm interested in the effect of X on Y. For some ...
0
votes
1answer
88 views

When residual standard error is equal to standard deviation of dependent variable in linear regression?

I wonder when residual standard error is equal to standard deviation of dependent variable in linear regression? Could someone provide some information on this topic and explanation?
0
votes
1answer
47 views

Guess a function that fits empirical data

This is my empirical data: Which function it looks like? I tried to guess (1) a dumped (exponential decaying) sinusoidal, but it does not oscillate after overshoot; (2) a sigmoid, but it oscillate ...
0
votes
1answer
91 views

Is the sum of predicted y values equal to the sum of actual y values?

Say I have a set of points Y and I want to accuratly predict the values of Y by using three variables X1,X2,X3. Hence my equation is Y=intercept + C1*X1 + C2*X2 + C3*X3 After performing linear ...
1
vote
2answers
40 views

Conditional Expectation, Orthogonality, and Correlation

I know that if $\epsilon$ and $x$ are independent, then $E[\epsilon|x]=E[\epsilon]$ and Cov$(\epsilon,x)=0$. However, $E[\epsilon|x]=E[\epsilon]=0$ implies Cov$(\epsilon,x)=0$ iff $\epsilon$ and $x$ ...
1
vote
2answers
46 views

Autocorrelation and var-cov matrix

$$Y_t=\beta_1+\beta_2 X_{t2}+\dots +\beta_k X_{tk}+\epsilon_t \qquad (t=1,\dots,T)$$ $$\epsilon_t=\rho \epsilon_{t-1}+v_t, \qquad v_t \sim \mathrm{i.i.d.}(0,\sigma^2_v)$$ GLS estimation under AR(1) ...
1
vote
0answers
27 views

Properties of best linear predictor?

Conside two scalar random variables, $Y,X$. The best linear predictor of $Y\mid X$ under square loss function is $\theta_0=\operatorname{argmin}_{\theta} ...
2
votes
1answer
48 views

Trigonometric regression

What methods are performed for regression with trigonometric functions? E.g. : Sequence: $$-1, 0, 1, -1, 0, 1, \text{.....}$$ Regression: ...
3
votes
2answers
65 views

Why Linear Regression

First i will like to say that i am not a statistician nor am i good in the field. I have been collecting data for over a period of e.g 100 days and each day has a varying amount of data that i can ...
0
votes
2answers
41 views

Strong vs weak relationship in this correlation

I produced this plot and regression line in R and I thought my results were quite odd. Is the relationship of the correlation determined by how steep the regression line is? So in this case it isn't ...
0
votes
1answer
35 views

Logistic Regression derivation

From the Wikipedia article http://en.wikipedia.org/wiki/Multinomial_logistic_regression: $ln \frac{\Pr(Y_i=1)}{\Pr(Y_i=K)} = \beta_1 \cdot \mathbf{X}_i $ $ln \frac{\Pr(Y_i=2)}{\Pr(Y_i=K)} = ...
2
votes
0answers
97 views

Is it compulsory to make transformation to the econometric model in order to have only diagonal elements on variance-covariance matrix of errors?

I need some sharped and advanced advices for the following issue ... Model and its assumptions I'm working on the methodology of a two-way error component model. Here is the model: $y_{jis} = ...
1
vote
0answers
79 views

Expected in-sample error of linear regression with respect to a dataset D

In my textbook, there is a statement mentioned on the topic of linear regression/machine learning, and a question, which is simply quoted as, Consider a noisy target, $ y = (w^{*})^T \textbf{x} + ...
0
votes
1answer
22 views

Expected error of best possible linear fit?

I asked the following question on stat SE, but I could not get a mathematically rigorous answer, and I have decided to ask here again. In my textbook, there is a statement mentioned on the topic of ...
0
votes
1answer
22 views

Is it a wrong expression for the local log-likelihood of logistic regression?

In page 206 of the book 'Elements of statistical learning', the author wrote: The local log-likelihood for this $J$ class model can be written $\sum_{i=1}^NK_\lambda (x_0, ...
1
vote
0answers
41 views

How does Linear Regression classification work?

I am currently trying to understand the following: Logistic regression is a probabilistic, linear classifier. It is parametrized by a weight matrix $W$ and a bias vector $b$. Classification is ...
1
vote
1answer
31 views

Is the Inverse of the Vectorised Solid Angle Equation for $n$ Circular Discs Continuous?

I have a continuous function$^{*1}$ that takes in 3 arguments, and returns 24 outputs. I want to know if the inverse of this function is continuous. The 3 input arguments are the x, y, and z position ...
1
vote
1answer
77 views

Extremely poor polyfit, what am I doing wrong?

I have a dataset with me: http://pastebin.com/YZArky1j, which I am trying to polyfit. This is what I used to perform the polyfit: ...
0
votes
0answers
13 views

Testing linear restriction in regression by rewriting model

For the model \begin{equation*} y=\beta_0 + \beta_1 x_1+\beta_2 x_2+\beta_3x_3+\beta_4x_4 +u \end{equation*} How can I test $H_0:\beta_1+\beta_2+\beta_3=1$ against the alternative $H_1:$ not $H_0$ by ...
0
votes
0answers
32 views

Find sample size underlying these regression results.

I have been trying to work out the answer to this question and have been having no luck, so hopefully you can help. The questions asks you to find sample size from two regression results as below: ...
1
vote
1answer
38 views

Does more data give you a better forecast?

Say I have a large set of data. Each data point corresponds to a particular day in the year, so for 1 year I will have 365 points. Say I have collected this sort of data for 5 years. Now, I want to ...
1
vote
1answer
32 views

Linear regression with normalized variables

Suppose I have two variables X and Y such that mean(X) = 0 = mean(Y) and sd(X) = 1 = sd(Y). The slope of the linear regression line for Y vs X is cov(X,Y)/var(X) = corr(X,Y) since X and Y are ...
1
vote
2answers
75 views

Plotting an Ellipse after an Ellipse Fit

I wonder if someone can assist my understanding as I'm a bit stumped with this... I have taken the following (x,y) data which lies roughly on an ellipse: $$ \begin{pmatrix} 0.000234491 & 6855810 ...
0
votes
0answers
329 views

How to take partial derivative of summation?

This is about L$^1$ iteratively reweighted least squares. Where did the (-a$_i$$_k$) come from?
0
votes
1answer
45 views

Distribution of log-log linear regression

Edit: Sorry yeah not too clear, probably posted this too late at night... Essentially I have data which appears to be in exponential form - a log-log graph put it close to a straight line. Using R, I ...
0
votes
0answers
17 views

stats project - good model, what to do with it?

I've recently been working on a stats project for school. I have been comparing a country's 'quality of life index' with 'moral' opinions survey to see if there are relations. Here's some example ...
0
votes
0answers
8 views

Measure for the quality of the slope of a linear regression?

I calculated a linear regression for a dataset using R. Now I'd like to have a measure of quality for the slope. Which ones are usually used and what's their meaning?
0
votes
0answers
49 views

Help larry water his tomato plants with math

I have a bit of a real world problem that I believe Math can help me solve. I think it might be easiest to phrase in a manor similar to that of high school textbook. Larry has a device that can ...
0
votes
0answers
8 views

Reducing regression equations into one

Suppose we are interested in English scores ($E_{ij}$) and Math scores ($M_{ij}$) in students in various classes. The scores are in different scales from each other. We perform two linear regressions. ...
0
votes
1answer
20 views

Variance of Estimated Coefficients in Logistic Regression

I have a logistic regression model with a binary variable as the response and a categorical variable with 3 categories as a predictor. The fitted model is: logit(P(Y=1)) = intercept -0.19*C2 + ...
1
vote
1answer
33 views

Calculating R-squared with duplicate data

I have the following question regarding the proper usage of R-squared value. Say I have an equation, that predicts energy consumption for the month of a building. One of the input variables accounts ...
3
votes
0answers
69 views

Determine whether ARMA(p,q) is stationary and/or invertible?

Determine whether an ARMA(p,q) process is stationary and invertible such that $y_t = \sum_{i=1}^{p} \phi_i y_{t-i} + \sum_{i=1}^{p} \theta_{i} \epsilon_{t-i}$ with the restriction that ...
0
votes
0answers
12 views

Measure for functional distance?

Let's say there are input points $X$ and two functions $f$ and $f'$ which have results $Y$ and $Y'$ when applied to $X$. There is no noise in this case. Are there any distance measures that exist to ...
2
votes
1answer
43 views

How can I plot this?

Given a bunch of data $x_i$ , $y_i$, how do I plot $$f(\theta_2,\theta_2)= \frac{1}{2M} \sum_{i=1}^{M} (\theta_1\cdot x_i -\theta_2 y_i)^2$$ in matlab? I know it should be parabolic, but my code ...
1
vote
1answer
11 views

Meaning of $\mathcal{I}_t$ in assumption $E[u_t\mid\mathcal{I}_t]$ of distributed-lag model

When considering \begin{equation*} y_t = \beta_0 + \beta_1 x_t + \ldots + \beta_r x_{t-r} + u_t \end{equation*} an assumption made is \begin{equation*} E[u_t\mid\mathcal{I}_t] = 0 \end{equation*} ...
1
vote
1answer
37 views

Wolfram Exponential Fit not match as formulas

I am using WolframAlpha Exponential-Fit formulas to find equation of Exponential Regression http://mathworld.wolfram.com/LeastSquaresFittingExponential.html but after implementation, I tested with a ...
0
votes
0answers
17 views

multicollinearity with intervals

You have multicollinearity when you have 2 variables (X1,X2) that have a relationship, X1=a+X2 where a is constant. My question is: is there still a multicollinearity issue if a is not constant, ...