instruction
stringlengths
9
38.7k
How can I simulate a data for multiple linear regression (one IV and more then 2 IV) when we know the skewness and kurtosis of the data? Another question is, how can we determine the type of distribution (ex: gamma dist) based on the skewness and kurtosis? We know that for normal distribution, the skewness and kurtosis...
X,Y are r.v's exactly related by some unknown non-linear relationship. Does there exist a neat analog of Correlation, that gives some information about a this relationship?
Wikipedia claims that Granger causality is somewhat accepted as a way to prove event A caused event B. Has it ever been used to prove, for example, a company was responsible for industrial accident that contaminated an area of land? Would it be appropriate for this?
I am working with a data set to model student performance with numerous variables from the class/school/district/provincial level. Student performance is extremely low though -- 70% of reading performance scores are 0. I have no experience working with non-parametric models, but assume I should use one for this non-nor...
We consider a sparse autoregressive time series of length 1000 obeying the model $$X(t)=0.2X(t-1)+0.1X(t-3)+0.2X(t-5)+0.3X(t-10)+0.1X(t-15)+Z(t)$$ with nonzero coefficients at lags 1,3,5,10 and 15,where the innovations Z(t) are i.i.d. Gaussians with mean zero and standard deviation 0.1. The question is how to simulate ...
Disclaimer: This is for a homework project. I'm trying to come up with the best model for diamond prices, depending on several variables and I seem to have a pretty good model so far. However I have run into two variables that are obviously collinear: >with(diamonds, cor(data.frame(Table, Depth, Carat.Weight))) ...
Our model processes millions of multivariate observations; manual outlier detection is impractical. I am looking for a method of automatic outlier detection. I have been trying to use R package mvoutliers, especially function pcout, and get the error More than 50% equal values in one or more variables! The problem ...
If we apply linear regression on a data which has a BINARY(0,1) dependant variable, the very important assumption of "constant variance" of the dependant variable across independant variables is violated. Can anyone explain how ?
I have an ordinal dependent variable, named D, which varies from very small, small, medium, big, to very big. This variable depends on the independent variables X, V, which are continuous variables. Could I perform an ordinal logistic regression analysis in the former data in order to obtain the relationship between D ...
If 2 distributions of data have the same mean value but standard deviation of sample 1 is twice the value of sample 2, explain what the difference in standard deviation value would indicate about the two distributions. Totally stuck with this one.
I am doing SNP association study, and the estimated p-values for each SNP are plotted as a QQ-plot. The question is, can one interpret false positive hits from a QQ-plot in GWAS (Genome-Wide Association Study)? From this article: http://www.genomesunzipped.org/2010/07/how-to-read-a-genome-wide-association-study.php , i...
I am doing a robust regression to predicted a left-skewed outcome. Do I still need to do a transform on my data before doing robust regression, or will that issue be taken care of by the robust method? If so, what transform would you recommend? When I plot my residuals after doing robust regression, they still look le...
I have a data set which consists of binomial proportions, let's say the success rate of converting a customer depending on the advertisement, the customer age, and various other factors. For some common combinations of covariates, I have a lot of data, and therefore the binomial proportion of successes has low variance...
I just have 1500 data points in excel. However, I want to do a chi squared test to prove if the data is normaly distributed. My question is: How to calculate the expected range for such a large data set? UPDATE How to calculate the relative frequencies for such a large data set?
I have a histogram, kernel density and a fitted normal distribution of financial log returns, which are transformed into losses (signs are changed), and a normal QQ plot of these data: The QQ plot shows clearly that the tails are not fitted correctly. But if I have a look at the histogram and the fitted normal distrib...
When studying the latent Dirichlet allocation, I am not very clear about some procedures in their deriving equations. Please refer to the attached figure, how to understand those two steps, marked as 1 and 2 in the figure.
So I am somewhat new to the realm of applied statistics and machine learning and am currently trying to figure out how to approach a problem I'm working on. Let me first describe the data that I have. I am collecting data from a device during user interaction. There are a discrete number of possible events that can hap...
Background: I'd like to use a 7-point Likert scale for an upcoming survey (focused primarily on opinions). For the most part, the questions will be centered around the "To what extent...?" stem. That is, the answers will range from, e.g., "To a very small extent" to "To a very great extent". Using the 7-point Likert ...
The psych package in R has a fa.parallel function to help determine the number of factors or components. From the documentation: One way to determine the number of factors or components in a data matrix or a correlation matrix is to examine the “scree" plot of the successive eigenvalues. Sharp breaks in the plot s...
I have two variables Distance and Slope. These go into a model resulting in a cost variable. I like to figure out the influence of the variables Distance and Slope on the Cost variable. I have several hundred test numbers for the variables. What programs or steps could I use to see the impact of the two variables on th...
Can someone explain me the intuition behind the split plot? From what I understand, it is essentially restricted randomization. But I still do not quite understand it. Is there a resource or example anyone can give me to make it clearer?
I have a problem that seems tractable, which I will attempt to describe with classic balls and buckets probability nomenclature. Imagine someone brings you a bag of colored balls. This sample was selected at random from one of many large buckets of balls. Each bucket contains 1,000,000 balls, and each ball is one of ...
I use cpgram function in R to produce a cumulative periodogram of a monthly time series. Its horizental axis is a number between 0 and 6 labeled as frequency: what does these numbers mean, since the frequency in cumulative periodogram should be between 0 and 0.5 like the ones shown below (upper ones)? Also, do you kno...
Can someone provide a work flow about this? For instance, suppose I am doing binary classification, For each iteration of the algorithm: Randomly sample k*N rows, where k is the bag.fraction, and N is nrow(dataset). Build a classifier using this training sample, suppose we use classification tree here. Predict the ter...
BOUNTY: The full bounty will be awarded to someone who provides a reference to any published paper which uses or mentions the estimator $\tilde{F}$ below. Motivation: This section is probably not important to you and I suspect it won't help you get the bounty, but since someone asked about the motivation, here's what I...
I am almost certain there is/are a technical term(s) to describe transformations (e.g $x^2$ or $log(x)$ for positive numbers) which are non-linear transformations of the variable $x$, but retain the rank order of x. But I am drawing a blank and my google searches have be ineffective. What technical terms apply to the...
Assuming $H_0$ is true, what is the distribution of the test statistic? t(29) Assuming $H_0$ is true, what is the expected value of the test statistic? 87.70 The sample mean of 87.7 was ___ standard errors below the mean of 90. 1.615 Can someone verify that my work is correct? In particular, I'm not entirely sure a...
The national average price of a gallon of regular gasoline is 3.71 dollars. Linda would like to assess if the average gas price in her city is significantly higher than the national average. She samples gas prices at 20 local gas stations and records the price of a gallon of regular gasoline. Assume her sample of pr...
I have a regression model that looks like this: $$Y = \beta_0+\beta_1X_1 + \beta_2X_2 + \beta_3X_3 +\beta_{12}X_1X_2+\beta_{13}X_1X_3+\beta_{123}X_1X_2X_3$$ ...or in R notation: y ~ x1 + x2 + x3 + x1:x2 + x1:x3 + x1:x2:x3 Let's say $X_1$ and $X_2$ are categorical variables and $X_3$ is numeric. The complication is that...
I am a little confused about what p-values mean under Fisher's signficance testing & Neyman-Pearson's hypothesis testing. Fisher uses p-values as a continuous measure of evidence against a null hypothesis? So a p-value of 0.06 would indicate that there is no difference and the null hypothesis is true? However, does thi...
I'm working with some data and I used R to the a linear regression model Y = aX + b. The code I used was summary(lm(Y~X)) What I got was Estimate Std. Error t value Pr(>|t|) (Intercept) -0.3884045 0.0260232 -14.93 <2e-16 *** X 0.0062095 0.0004635 13.40 <2e-16 *** What I want to t...
I thought it would be interesting to talk about two of the best ensemble methods off-the-shelf: Random Forests and Boosting. When would you apply one method rather than the other one?
Consider a one-sample t-test regarding the population mean time to complete a task with a one-sided alternative hypothesis of Ha: μ < 10 minutes. A random sample of times to complete the task will be obtained as part of a study. Which of the following values of the sample mean times would result in a p-value...
I am using logistic regression to classify data into two classes. The variable to predict (Y) is either 0 or 1. I have found a rather good estimation of Y by logistic regression, and ended up using a set of the variables as predictor variables (the rest were quite correlated, or did not decrease the error a lot when a...
I was wondering what relations and differences are between time-series analysis and statistical signal processing? I found some recommendations of books in time series including some books in statistical signal processing. But I am not sure how these two areas are related and differ? Thanks and regards!
In genomics and computational biology, expression data sets contain a much larger number of features (p) than the number of observations (N). I wanted to simulate data where p>>N to compare the performance of classifier methods (e.g., regularized methods, automatic feature selection methods, and filtering/feature selec...
This is a pretty general question but, I often find statistical textbooks claiming that, in order to justify the within groups normality assumption of a one way ANOVA, you can look at a QQ plots of the residuals. However, the qq plots can only detect non-normality when the variance (or standard deviation) across all gr...
I am wondering how to choose a predictive model after doing K-fold cross-validation. This may be awkwardly phrased, so let me explain in more detail: whenever I run K-fold cross-validation, I use K subsets of the training data, and end up with K different models. I would like to know how to pick one of the K models, ...
I find it strange, but I can't find what multivariate Laplace distribution looks like. What is its pdf? I googled for a while but couldn't find a good description. I wasn't paying attention to Laplace. Now, all of a sudden when I need it, I can't find the multivariate case.
I have a formal model from which I'm deriving some parameters that I would like to estimate. I haven't done this kind of thing before, and I'd like to have some help to solve this issue in R. I observe $z_i$ (money) and four characteristics of population. I want to regress these characteristics on $z_i$. My regression ...
Assume that I have a log transformed model as follows: Model 1: $Y = a + b\ln(X)$. Interpretation: a 1% increase in $X$ is associated with an average $b/100$ units increase in $Y$. If I add $1$ to $X$ to avoid having $0$ values and get: Model 2: $Y = c + d\ln(X+1)$ Should I interpret the model as "a 1% increase in $(X...
Suppose that $X_1$ and $X_2$ are two random variables sampled from a Poisson distribution with parameter $\mu$. Let $T_1=\bar{X}$ be the sample mean and let $T_2=(1/3)X_1 +(2/3)X_2$. Are T1 and T2 both unbiased estimators?
I've been reading about using Matrix Factorization techniques to do collaborative filtering. A popular thing to do seems to be to add user and item biases into the ratings prediction. What I don't understand is why, in some papers (like Factorization meets the Neighbourhood, Koren, Y., 2008), these parameters are learn...
I have plotted this after I did a Shapiro-Wilk normality test. The test showed that it is likely that the population is normally distributed. However, how to see this "behaviour" on this plot? UPDATE A simple histogram of the data: UPDATE The Shapiro-Wilk test says:
My statistical knowledge is very limited. I have two groups (patients and controls) and a measured concentration value for each indivdual. Not normally distributed: Mann-Whitney How do I correct for gender in Mann-Whitney? (I want to know if the difference between patients and controls is due to difference in gender d...
I was told to come here by a friend to ask a stats question. I took Social Stats and Methods of Social Research about 4 years ago and to be honest, I don't remember much about it. Now I'm writing a research paper and I can't find any basic tutorials to assist with a problem that would probably be pretty simple to a Sta...
I have 2 distributions, 1 is, as far as im aware, normally distributed. Distribution 1 is the control group. 1st distribution Mean = 0.000002757; Median = 0; StDev = 0.00119307; Number of data points = 91601 2nd distribution Mean = 0.000058; Median = 0.000125; StDev = 0.001646243; Number of data points = 94045 (Questio...
Hi is anyone able to help - I am doing this all in R Code: I have run one way analysis on some data and set up 2 contrasts (Liberarts-Finearts and also Engineering-science). I now need to calculate the 90% confidence level for each contrast in my user defined contrast. Please can anyone advise if what I have done so fa...
I have a set of categorical variables that I need to encode between $[0,1]$ or $[-1,1]$ to solve a problem in which I have to compare their values with metrics like Euclidean Distance or the Dot product. These metrics require my variable to be in the mentioned ranges. As a first approach I represented each category $X_...
If I have 2 tests applied on a set of data, both tests either produce a result ( assume = 1) or no result ( NA , assume = 0 ). Is there a way to prove that test 1 produce more results than test 2 with significant results? For example the results below shows that test 1 is better than test 2 but how to prove the signifi...
Imagine the following setup: You have 2 coins, coin A which is guaranteed to be fair, and coin B which may or may not be fair. You are asked to do 100 coin flips, and your objective is to maximize the number of heads. Your prior information about coin B is that it was flipped 3 times and yielded 1 head. If your decisio...
Could someone please explain me this reviewer comment: asymmetric distribution could affect Principal Component Analysis results, symmetry of distribution should be tested. Authors should also indicate if outliers were observed and consequently excluded because they could affect factors My question: what does it mea...
I am doing a PCA on a few economic indices (which I standardized) (24 timeseries). When doing the PCA on the values/level of the index, I get rather similar loadings on each index, which I think is good, as no one should dominate. However when I run it on the returns of these standardized indices, the loadings are much...
I am working on finding higher order moments for a given theoretical function, to be used in modelling of daily log-returns. The PDF is, $f_r(x) =$ $\begin{cases} \quad \frac{1}{2}ae^{a\left(x-\mu\right)} & \text{if x } < \mu \\ \quad \frac{1}{2}be^{-b\left(x-\mu\right)} & \text{if x } \geq \mu \\ \end{cases} $ ...
I have found the article by Fryzlewicz (2007) and his R package unbalhaar. I do not understand well the outputs of his functions and in particular of the best.unbal.haar.bu() function. Here is the documentation of it : best.unbal.haar.bu. From his article, I have understood that the $smooth argument is the constant fa...
I'd like to infer the variance of estimated parameter $\hat\theta$ of the density function of $f(x;\theta)$ given only a limited number of samples $X_1,\cdots,X_n$. Bootstrapping doesn't perform well when the sample size is small. Is there any other methods to deal with the case?
Given N random points uniformly distributed in the unit square, and a distance d, i can generate a matrix in the following format: E V1 V2 [1,] 0.5564821 1 2 [2,] 0.3373116 1 3 [3,] 0.3973278 1 4 [4,] 0.6066518 1 5 [5,] 0.9603731 1 6 [6,] 0.3612895 1 7 # more rows... Where E is the edge link...
I am searching for the formula that will generate the critical values in a t-test instead of using a static critical value table. I am programming in Java and not R so the qt() function is not what I am looking for. Any help is appreciated.
Given y = a + b*x, does "a" represent simply an intercept or mean y? For y = a + b*ln(x), is there a need to interpret the intercept "a?"
Does anyone know of a way to sample from the normal-gamma bivariate distribution or the normal-inverse-gamma bivariate distribution in R? I could create the distribution myself as a function, but then I would not know what to do to sample from it.
I am trying to do multi-modal detection in a vote map (histogram) however, side lobes obviously cause some false peaks. So using mean shift will not do as it will find all of the local maxima. So I thought I could first threshold the histogram and then apply mean shift. However, I am struggling to find a suitable thre...
I am reviewing a paper where the authors compare cancer outcomes (binary) between two groups, one having a small sample size of 200 and the other having over 55,000. The authors then claim that, due to the imbalance and in order to minimize confounding effects, they matched individuals from the larger group to the smal...
I have a dataset of counts (responses to a marketing campaign), collected at the zipcode level. I am trying to use a poisson regression to determine underlying response rate of each zipcode. How do I account for the fact that some zipcodes have very large populations, while other have very small populations, and my es...
I have following type of data: myd0 <- data.frame (matrix(sample(c(1,0), 200, replace = TRUE), ncol = 10)) myd <- myd0 myd$yvar <- rnorm (20, 5,2) myd$yr <- rep(1:2, each = 10) myd$gen <- rep(letters[1:10], 2) X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 yvar yr gen 1 0 1 1 1 1 0 1 0 0 1 3.594028 1 a 2 1 0 ...
I'm reading Faraway's book (http://cran.r-project.org/doc/contrib/Faraway-PRA.pdf) to try to understand R's lm diagnostic plots. On page 72 of the book is this: I have been trying to understand a few things about this for a few days reading online and some help would be very, very appreciated. In the derivation of $...
Let $a,b,c,d$ be independent normally distributed random variables. I'm aware that the following distributions: $$c a + d b$$ $$(c+d)a$$ both have the same standard deviation ($=\sqrt{2}$ if $a,b,c,d$ have unit variance). I'm interested in the statistics generated by the following process: Let $a,b$ represent vectors ...
Very simple. I am looking for a package that does Multivariate Linear Regression with weights on the observations. Does anyone know of a package that does this? I am shocked that I have not been able to find any. NOTE: R does NOT do multivariate regression. The lm() help page specifically states: "If response is ...
I was surprised to discover yesterday that various summary statistics can be calculated on dates. Googling has found lots on syntax required to calculate summary statistics on dates, but very little on how calculations are done. How are summary statistics (mean, sd etc) calculated on dates? Example R code: myDates <- a...
I have three datasets A, B and C. A and C can construct a contingency table, and I can get a p value (pValue1) with Fisher's exact test. B and C can construct another contingency table, and I can get another p value (pValue2) with Fisher's exact test. I want to know how to combine these two p values and get a single o...
I have fitted a probit model for an ordinal response and a number of predictors, using polr function in R. Now I want to use this fitted model in order to sample from the conditional distribution of the ordinal variable, given a set of specific values for the predictors. I was thinking of using multinomial distribution...
I am looking at differences in dates of maximum counts of geese at 3 sites in the UK. My data look like these created in R: df <- data.frame(day.number=c(sample(70:75, 30, replace=T), sample(77:82, 30, replace=T), sample(80:84, 30, replace=T)), ...
I have a dataset as follows: ni-xi 76 48 38 19 20 14 26 29 39 45 38 36 32 34 26 21 23 12 24 18 14 61 35 21 32 20 89 30 34 35 xi 0 0 16 26 1 8 23 19 24 16 16 19 0 0 0 6 8 3 5 9 5 0 34 17 13 0 1 11 13 22 I want to model this dataset as a beta-binomial distribution: $x_i \sim \mathcal{Binomial}(p, n_i)...
I'm working with Hidden Markov Models and I have a dataset composed by independent phrases, where each word is an observation. Hence, the best way to adjust my parameters (via Baum-Welch algorithm) is considering each phrase per time and not all phrases concatenated. I would like to know if there is an algorithm that d...
To keep it simple, I have sets of data in which I have a control and a treated sample. The data I obtain is "yes" or "no" (0 or 1) for a particular behaviour. I have 150 data points for each condition (150 for control, 150 treated), obtained across 3 experimental runs, which I intend to pool. They are not paired in any...
What is the difference between "probability of H given E" as calculated by Bayes theorem and the "positive predictive value" of E?
My case is that I have one continuous DV variable and two categorical IVs containing 11 and 12 different levels (YEAR & MONTH) form 1998 to 2008. Until now I have experimented a lot with contrasts() and the deviation coding seems to be the one I want to use, because I would rather compare the individuals levels in each...
Say there are two variables. Variable A has a higher $\beta$ weight than variable B but variable B has a higher t-statistic than variable A. Can either of these measurements, standardized $\beta$ or t-value, offer better predictive power over the other? Must t-value and $\beta$ be taken into consideration together or ...
Question Consider the following transition matrix: P= 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1/4 1/4 0 1/2 0 0 1 0 0 0 0 0 0 1/3 0 0 0 2/3 a) Which states are transient? b) Which states are recurrent? c...
I have read that for a one way ANOVA, you should check that the model residuals are normally distributed. If the variance of each group is homogeneous then this implies that the residuals with each group being compared are also normally distributed So let's say we are doing an ANOVA to compare the means for two group...
When is maximum a posterior (MAP) estimation equivalent to maximum-likelihood (ML) estimation?
I'm currently studying Hidden Markov Models. There's a set of observations from which I need to determine the optimal number of states. After having found the maximum likelihood using Baum-Welch, I considered two model selection criteria for determining the optimal states. These are Minimum Description length (MDL) and...
This post provides an excellent example of the inner workings of a mixed effects model: http://emhart.github.com/blog/2012/11/16/making-sense-of-random-effects/ In a hypothetical study, I have measured the wing length of a bird species at 10 different locations: df <- data.frame(wing.length=rnorm(30), ...
I'm no mathematician, so please consider the whole explanation as a subject to criticism and optimization. I'm trying to build a model and calculate an estimate of error variance for the following problem. Consider a point in 3D, a ray coming out of it towards some plane, and the point of intersection of this ray and...
I wanted to check what is the relative error of an estimated N(0, 1) density function. By relative error I mean: $$\alpha(x) = E \bigg ( \frac{f(x|\hat{\mu}, \hat{\sigma})}{f(x|0,1)} \bigg ) - 1$$ where $f(\cdot, \mu, \sigma)$ is the normal pdf. To get an estimate of $\alpha(x)$ I simulated $10^3$ data points from a N(...
I have a dataset that looks like this. test.takers item1 item2 item3 item4 item5 item6 item7 item8 item9 item10 item11 item12 item13 item14 item16 item17 item18 total_score tt1 1 1 0 1 0 1 1 1 0 NA 1 1 NA 1 1 1 1 12 tt2 ...
I am trying to perform stepwise regression for variable selection in R. In matlab, the stepwisefit function is able to work in n < p problems. Trying to use step() for such problems i get the error message AIC is -infinity for this model, so 'step' cannot proceed. Is there a way to modify parameters so i can use step ...
If I have a regression problem where I try to estimate the value of $y$ as function of $x_1 \dots x_d$: $$ y = f(x_1,\dots,x_d) $$ using a Boosted Regression Tree or a Random Forest Regression, is it possible to estimate the probability distribution of the output value (instead of only an estimate of $y$) : $$ p(y\ |...
Estimating confidence intervals for non-normally distributed residuals can be accomplished using bootstrapping procedures, sandwich estimators or quantile regression. But is there a way to calculate $\beta$ confidence intervals given the estimated value? That is, for each $\hat{Y}$ we know the residuals variance for th...
I have used a Likert scale in my survey, where respondents answer statements in terms of 1=strongly agree to 5=strongly disagree. There are 5 items measuring a single type of 'need gratification' and there are 5 different needs. After summing the five items for each need gratification, a score is obtained between 5...
Reading a paper, the authors use a "Conditional fixed effects Poisson with population exposure." I wasn't sure what "population exposure" meant, so I looked it up. It seems like the term comes from epidemiology (not my field). Could I check to see if I've understood it correctly? Poisson models try to estimate a rate o...
I applied two different classifiers against the same validation set. It turns out that classifier A is better than classifier B in terms of ROC curve. However, classifier B is better than classifier A in terms of confusion matrix. How to explain this kind of contradiction?
Consider $n$ independent uniform random variables $X_i \sim U(-\theta,\theta)$, and let $Y_1 = \min(X_1, \ldots, X_n)$ and $Y_n = \max(X_1, \ldots, X_n)$ . What is distribution of $Z = \max (-Y_1,Y_n)$, given that the joint PDF of $Y_1$ and $Y_n$ is $$ f(y_1, y_n) = \frac{n(n-1)}{(2θ)^n} (y_n-y_1)^{n-2} , \quad -\th...
I'm taking my first course that contains regression techniques, analysis of variances and time series. What would you recommend if I would like to lean the mathematical theory behind those methods? For example, my lecture notes says that in least square method one can show that the estimation of regression coefficients...
I am using quantile regression (for example via gbm or quantreg in R) - not focusing on the median but instead an upper quantile (e.g. 75th). Coming from a predictive modeling background, I want to measure how well the model fits on a test set and be able to describe this to a business user. My question is how? In a ty...
(I hope this question may be too easy for some experts here). It is well-known that if $X$ is normal rv and $Y$ is a chi-square rv, then $Z=X/\sqrt{Y/n}$ follows student's $t$ distribution, where $n$ is the degrees of freedom of $Y$, and $X$ and $Y$ need to be independent. However, what comes if $X$ and $Y$ are depend...
I'm working on a system that be able to detect the hand contour. So I have 270 instance in my dataset: 7 class of hand contour, 8 feature vectors of each instance. Firstly, I used Weka to determine which is the best classifier for my dataset. And I found out Logistic regression classifier. But, the problem is I don't ...
If the probability of success is 0.09, how many trials are required to have a probability of at least one success as 1/3 or more?
I got negative value for shape parameter by using gev.fit in ismev package of R. What does it indicate? Does it mean that it belongs to another distribution instead of generalized extreme value (GEV) distribution? here is the output of gev.fit: $conv [1] 0 $nllh [1] 12.96933 $mle [1] 13.796261 1.847000 -1.084086 $se...
I'm very confused about if it's legitimate to include a lagged dependent variable into a regression model. Basically I think if this model focuses on the relationship between the change in Y and other independent variables, then adding a lagged dependent variable in the right hand side can guarantee that the coefficien...
Let's say that I have data depicting the number of museum visits per day. My challenge is to understand how certain external (exogenous?) variables, e.g., weather and advertizing affect the number of daily visits. Moreover, I need to predict how the number of visits will change when the external variables are changed. ...