instruction
stringlengths
9
38.7k
I am trying to measure the effect of treatment after some time on a group of subjects who were selected for treatment because they were the highest (top 1200) ranked subjects during a single period marking the start of the experiment, the hope for the treatment being that they will have lower ranks in the future than t...
I would like to know what is the effect of dismissing data points in a regression analysis. For example, say originally a sample of 100 data points is collected (say they are all useful, equally reliable observations, no outliers) but one decides to fit a model to only 50 or 60 points from this sample. Let us say also,...
Let $Y$ denote the median and let $\bar{X}$ denote the mean, of a random sample of size $n=2k+1$ from a distribution that is $N(\mu,\sigma^2)$. How can I compute $E(Y|\bar{X}=\bar{x})$? Intuitively, because of the normality assumption, it makes sense to claim that $E(Y|\bar{X}=\bar{x})=\bar{x}$ and indeed that is the c...
It was my understanding that the training data has to be labeled to create a model and then label any unseen data. As in the case of using ANN, how is Google able to identify cats in Youtube videos without labeling the videos or images? I am new to ML and tried to read some literature, but couldn't get the correct expl...
My objective is to improve out of sample generalization of my random forest while holding the number of trees constant. Suppose that I am only allowed to use $n$ trees on the out of sample data but it is computationally feasible to estimate $z$ trees on my in sample data where $z \geq n$ (from which, the best $n$ is s...
Context: Consider a $M/E_2/1$ queueing system, where the customer arrival rate is $\lambda$ and the service time distribution has a gamma distribution with parameters $2$ and $\mu$, i.e. with p.d.f. $\mu^2te^{-\mu t}$ , $t ≥ 0$ Question: Assuming that the system is in equilibrium, deduce an expression for the mean leng...
I am trying to implement an xorshift* PRNG (practically an xorshift with a multiplication step in the end) as a long term replacement of Java's Math.Random. I have been reading an article pointed out in an answer to another question, but I am confused with the magical $M_t$ values used for the multiplication. The artic...
I'm looking to generate correlated random variables. I have a symmetric, positive definite matrix. So I know that you can use the Cholesky decomposition, however I keep being told that this only works for Gaussian random variables?! Is that true? Furthermore how does this compare to Eigen decomposition. For example usi...
I have a dataset for vehicles and trying to predict what will fail. Here is my data set vId, MileageSincePartLastReplaced, AgeOfPart, TypeOfVehicle, Failure x,100000,200days,Truck,Alt Belt y,200000,600days,PCar,Transmission Belt z,140000,230days,Van,Fan Belt Failure is outcome variable with 20 different types of f...
For expectations of random variables (RVs) $X$ and $Y$ it is true that $$E(X+Y)=E(X)+E(Y)$$. My question is whether when conditioning on RV vector $Z_{1...J}$, it is also true that $$E(X+Y|Z_{1...J})=E(X|Z_{1...J})+E(Y|Z_{1...J})$$. Thanks for enlightening answers!
If I have two time series $A$ and $B$. $A$ is dependent on $B$. I want to forecast future values of $B$. What statistical techniques should I learn and try? As an example consider a time series of sales of Apple ipods every month. Another time series is the number of defects in ipods reported. Clearly if the sales are ...
I am aiming to run initial exploratory factor analysis in one sample and then confirmatory in another sample. My indicators are ordinal and so I planned to generate a polychoric correlation matrix and use this when estimating the models in R and openMx. I am aware though that the polychoric correlations assume an under...
Let's say I have the following data on leads, monthly media spend, and clicks Month Leads Media Clicks Jan 150 1000 500 Feb 200 1000 550 March 300 1200 800 ... Let's say I run a linear regression where y is leads and the predictors are media and clicks. That's good, I know ...
I am currently reading the following book: Clinical Trials: A Practical Guide to Design, Analysis, and Reporting by Duolao Wang, Ameet Bakhai (2006) On page 243-244 there is an example about the log-rank test. The log-rank test statistic is denoted by the chi square symbol and calculated in the following way: and fu...
My breath was taken away by this. I tried to run my JAGS model with different number burn-in samples but it still takes the same amout of time!! n.iter n.burnin time saved iterations per chain 2000 1000 66s 1000 5000 4000 64s 1000 20000 ...
From Wikipedia http://en.wikipedia.org/wiki/Ergodic_process One can discuss the ergodicity of various properties of a stochastic process. For example, a wide-sense stationary process $x(t)$ has mean $m_x(t)= E[x(t)]$ and autocovariance $r_x(\tau) = E[(x(t)-m_x(t)) (x(t+\tau)-m_x(t+\tau))]$ which do not change wit...
There are two simple questions at the end, but I think it is also useful to share the background that motivated them. It comes from this question on an unexpected forecast from the fully automatic methodology behind the forecast::ets function in R. The code, plot and forecast are given below for convenience: library(fo...
In a project on software measurement, we plan to use aggregating statistics (e.g., Gini) to describe the concentration of certain observed program attributes (size) among program units (e.g., modules, functions). This is a purely exploratory, descriptive effort (e.g., no hypothesis testing involved). We are aware of th...
I have data from 8 subjects collected at 5 time points. I would like to see if there is a difference between time points (1 + 2) and (3 + 4 + 5) using either SPSS or Stata. When in SPSS I use 'Analyze > GLM > Repeated Measures' I am able to specify the 5 time points, but I can not create contrasts. I can only select th...
I have a bunch of records, T in total. I want to know how many of these I can get away with analyzing in order to extrapolate the analysis to the entire population T. I know this is a basic question and largely depends on how much error I can accept, but can anyone tell me the math?
I have some data: x <- c(0.0636931012704989, 0.0421033586843369, 0.0214721845269228, 0.038624779052474, 0.033235347720021, 0.0307709640052774, 0.0606316442337883, 0.0289958997354256, 0.0573689255248752, 0.044448618126441, 0.0164384406368751, 0.0357802024114138, 0.0133831663454831, 0.0329126088838874, 0.0514684815357...
Lets say I have confidence interval at 85% with 4% margin of error, and I get a value from my analysis equal to $x$. Does this mean that if I were to perform the test 100 times, then at least 85 times we would expect to see a value for $x$ ranging from $.96x$ to $1.04x$?
Suppose I am doing random forest classification of labels $A$,$B$,$C$,$D$. There is some theoretical ordering to this output such that when $A$ is more likely than $B$, $B$ is also more likely than $C$, etc. Also, if $P(D) > P(C)$, we also have that $P(C) > P(B) > P(A)$. There are other such conditions that need to be ...
I have two finite samples $s_1$ and $s_2$ and two distributions $p_1(s_1)$ and $p_2(s_2)$ that are associated to these samples. I'm essentially interested to measure the distance or similarity between these two distributions. I'm currently using the Jensen-Shannon (JS) distance, which involves in calculating the entrop...
I have a dichotomous outcome (life satisfaction). The proportion of people in my sample who are satisfied is fairly high (about 85%). I know that from my Chi-squared analysis that both income and age are significantly associated with being satisfied (both are categorical variables). I want to run logistic regression wi...
Given a set of features vectors $X=\{\vec{x}_1,..,\vec{x}_n\}$, binary ground truth data $Y=\{y_1,..,y_n\}$ and continuous prediction $\bar{Y} = \{\bar{y}_1,..,\bar{y}_n\}\in [0,1]$, I want to perform some regression analysis to estimate a function $f(\vec{x}_p) \approx e_p$ where $e_p = abs(y_p - \bar{y_p})$. In prac...
I am attempting to fit a Cox proportional hazard model to my data. I think I have the formula correct but am having trouble understanding the output. I have tried looked through the documentation and it is hard for me to understand. Any help would be greatly appreciated, thank you! The formula: coxfit1 <- coxph(Surv...
If I have a population of 5000, statistics suggests that I need to sample about 350+ to get a confidence interval of 95% with margin of error 5%. So why do I see that sometimes we can get away with as low as 30?! That seems so much lower than what all these tables and calculators suggest.
If I am trying to select from two different sets of features for a Gradient Boosting Machine, but I do not want to run through training an entire model on each set, could I differentiate performance with a lower number of trees? Suppose based on the other parameters, I need about 1000 trees for the best fit ultimately...
I have an unbalanced panel data set, which covers a set of about 10 variables I am very interested in as controls in a regression. However, only a few of these variables are available in all waves: most of them are only available for a few waves down to two which are only available for 5 waves. Additionally, these vari...
I would like to know how do you determine the performance of your models. That is, if you fit a multinomial logit or probit model for un-ordered discrete choice. What do you use to evaluate whether you have a good model? Please provide me with any reference material that I could read more on this topic. Websites, art...
A tire manufacturer believes that the tread-life of its snow tires can be described by a normal model with a mean of 32 thousand miles and standard deviation of 2.5 thousand miles. Based on this information answer the following questions What fraction of these tires can be expected to last less than 30 thousand miles ...
I'm trying to assess performance of a supervised machine learning classification algorithm. The observations fall into nominal classes (2 for the time being, however I'd like to generalize this to multi-class problems), drawn from a population of 99 subjects. One of the questions I'd like to be able to answer is, if th...
I am working in program R. I am modeling the incidence of flight in a seabird in relation to distance to the nearest ship (potential disturbance, range = 0 to 74 km from the bird). 1= flight during observation, 0 = no flight. The bird does fly with some unknown probability when no ships are present or really "far" away...
I'm looking for an approximation to the curve of a lognormal distribution, for use in non-linear regression against a dataset. As an alternative, I'm interested in an approximation to the CDF thereof. I have several goals: Determine how closely a sample dataset drawn from a process of unknown distribution matches a lo...
The C5.0 classification model was used in this 4-class problem data with $N_{train}$=165, $P$=11, using caret R-package by running the code below. The winnowing option was tuned over in the model, which is a kind of feature selection approach. This excerpt I quote regarding winnowing from the companion book of caret, a...
I have a dataset comprised of continuous values that have about 30-50% zeros and a large range (10^3 - 10^10). I believe these zeros are not a result of missing data and are the result of the sensitivity of the machine taking the measurements. I would like to log10 transform this data so I can look at the distribution,...
Assume a one-sample t-test, where the null hypothesis is $\mu=\mu_0$. The statistic is then $t=\frac{\overline{x}-\mu_0}{s/\sqrt{n}}$ using the sample standard deviation $s$. In estimating $s$, one compares the observations to the sample mean $\overline{x}$: $s=\sqrt{\frac{1}{n-1}\sum_{i=1}^n (x_i-\overline{x})^2}$. Ho...
Using Excel's correlation function I get a correlation of -7% between data sets A & B. Data set C has a 92% correlation to A and an 84% correlation to B. How can C be strongly correlated to A and B, but A and B are slightly negatively correlated to one another? What other tests can I perform to help me better underst...
What is the formula (if it exists) for the sample variance / confidence interval of a quantile / percentile of the normal distribution? For example, the 5th percentile for a standard normal population distribution is -1.64, but what is the 95% one-sided confidence interval if I have a sample of n=1,000? I.e. on average...
Some Bayesians attack frequentist inference stating that "there is no unique sampling distribution" because it depends on the intentions of the researcher (Kruschke, Aguinis, & Joo, 2012, p. 733). For instance, say a researcher starts data collection, but his funding was unexpectedly cut after 40 participants. How woul...
I have more of a theoretical question regarding the use of dummy regression. I know that one level of a categorical variable is used as a reference group, and the means of all subsequent levels are compared to the mean of the reference group, and that these differences give different p-values. I understand how each lev...
I once was a research assistant for a professor who wanted me to do some regressions, but before that he wanted me to test all the sample data for the variables to ensure they were normally distributed. Today I was talking with a colleague (Mr. X) who considers himself an accomplished researcher, and he told me that he...
I am doing some data analysis for my masters and I had some data that is normally distributed but does not fit the assumption of homogeneity of variance and has unequal sample sizes. I have been doing some research and have found that the games-howell post hoc test can deal with this type of data but can not find any c...
Suppose I have the following database where I have, for each age, the average years of experience and income of the group and the number of individuals observed for such age (but not the income/experience of each individual): ---------------------------------------------------------------------------- | Average income ...
How do you solve the following problem? A Simulation Study (Probit Regression). Assume $y|x\sim {\rm Binary}(p)$, where $p= E(y|x)$, and $Φ^{-1}(\pi)=-1+5.1x_{1i}-0.3x_{2i}$ Generate data with $x_{1i}\sim{\rm Unif}(0,1)$, $x_{2i}=1$ for $i$ odd and $x_{2i}=0$ for $i$ even, and sample size $n=500$. Try generalized line...
I'm trying to identify the best model to predict the prices of automobiles, using the prices and features available on automobile classified advertisement sites. For this I used a couple of models from the scikit-learn library and neural network models from pybrain and neurolab. The approach I used so far is to run a f...
I have a regression of costs on volume and some interactions (costs ~ volume + volume:year + year) Often times when I do a regression, I expect a negatively sloped relationship and the model validates that. I can add up the volume coefficient and the associated interaction term for a given point and get a negative val...
Background: I have estimated a model using panel data with the Arellano Bond estimator (see e.g., http://www.fordham.edu/economics/mcleod/Elitz-usingArellano%E2%80%93BondGMMEstimators.pdf) and n=300. As it turns out, the distribution of my residuals is significantly different from the normal wrt. skewness and kurtosis....
I want to compute the p-value of a single numeric value drawn from an arbirtary distribution. The p-value should be comparable to p-values that have been computed with single distinict values drawn from sets (using the Chi-Square Test). The distribution of the numeric data is propbably mostly normal distributed, but ca...
I am attempting to estimate the effect of various variables on the time-series of counts of reported cattle stillbirths. We investigate the effect of day-of-week, month, holidays etc…and also the effect of non-temporal variables. We performed model comparisons between Gaussian glm, Poisson glm and negbin glm and the la...
The price of a product has signficant impact on the total sales. Hence modeling sales would give the incentive to include price as a regressor (amongst other variables). Suppose we would estimate this using OLS, this gives something like $sales_t=\alpha_0+\beta_1\times price_t+...+\epsilon_t\;\;\;\;\;\;\;\;\;(1)$. In a...
I'm looking at an excel sheet which claims to be calculating the $\chi^2$, but I don't recognise this way of doing it, and I was wondering if I'm missing something. Here is the data it is analysing: +------------------+----------+----------+ | Total Population | Observed | Expected | +------------------+----------+----...
I have a model where I suspect (purely on theoretical grounds) that double causation might be an issue. How can I test this hypothesis? I.e. I have something like $Y_i = \beta_0 + \beta_1 X_i + \beta_2 W_i + u_i$. And I suspect that $X_i$ may also be causing $Y_i$. What I did is simply calculate the correlation between...
My specific problem is to separate a huge archive of files containing source code and sometimes including embedded languages (apart from the main language).
Let's say we have the a set $(X_i,Y_i)$, $i\in I$, $I$ is an arbitray finite set of indexes, and the model $$ Y = g(X\beta)$$ Using some method, we obtain the individual first four moments of the residuals $u_i = Y_i - g(X_i, \hat{\beta})$, so we end up with the following set $$ (Y_i, X_i, u_i, m^i_1, m^i_2, m^i_3, m^i...
I have matrices of genetic distances for x number of individuals within a population and their corresponding point coordinates -one genetic distance matrix per point coordinates. I was imagining using the Mantel test, i.e. evaluate the significance of correlations between genetic and geographic distances. However, wha...
I am examining the relationships between health issues in pigs. I want to know which conditions tend to co-occur. All animals have at least one condition and 5 at most. I have coded each condition in SPSS as 0 = absent, 1 = present. How should I examine the relationships between these? I have tried a Spearman's correl...
what approach would help me generate new topics for new documents? I read this page in order to learn more about the effect of specifying keywords for the topics that we care about detecting in new documents, but the problem of generating new topics having a given set of topics is still unresolved.
When I conduct an a priori power analysis to calculate the required sample size with G* power for a repeated measures design with between factors, the sample size increases when I insert a higher value for correlations among repeated measures. However, when I choose the 'repeated measures, within-between interactions'...
I have a categorical response (ordinal, lets call it A) collected from a complete randomized block design experiment where the explanatory variable is treatment. How do I account for the between block variation? I have found models that do this for dichotomous response variables but my response has >2 levels, treatment...
I want to know how to get several performance measurements of a generated WEKA model. Note that I am predicting a two-class variable, Alive or Dead and I use the developer version 3.7.10 in my own Java project. Confusion matrix I know this is a simple question but am I correct that the one below is a direct equivalent...
I have to use the datasets on http://www.bristol.ac.uk/cmm/learning/support/datasets/. And I found every data set on this website has a ws. file. I try to download software which can open it and I can get the data. But I do not find a free one. It is very disappointed. Could you recommend one for me?
I'm a little confused by the deviance value returned by deviance(glm.model). I get quite different values for the same data fitted to different GLMs using family=Gamma(link=identity) (models 1/2) and gaussian(link=identity) (models 3/4). > print(r) Deviance AIC Model1 44.96093 2530.558 Model2 45.13543...
I need to proof that the Pareto random variable is a mixture of the Gamma and Exponential distribution but need help with one part of the proof. Consider $X$ being Exponential with parameter $\lambda$ and $\Lambda$ being Gamma with parameters $\alpha$ and $\beta$. So we can say the mixture distribution of $X$ is $$ \be...
I just wonder what is the difference between Random Forests and MART (Multiple additive regression trees)? I have read a few articles, e.g.: [1] L. Breiman. Random Forests. Machine Learning 45 (1): 5–32, 2001. [2] J.H. Friedman. Greedy function approximation: A gradient boosting machine. Technical Report, IMS Rei...
At the moment I'm researching clustering of single words. The input of this research is a list of words (unigrams). During the research I want to compare different clustering algorithms to see the how their advantages and disadvantages affect the outcomes. At the moment I have identified two steps in the research and t...
This is a homework problem from Categorical Data Analysis by Alan Agresti (1.33) For testing $H_0:\pi_j=\pi_{j0}$, $j=1,\ldots,c$, using sample multinomial proportions $\{\hat{\pi}_j\}$, the likelihood-ratio statistic is $$G^2=-2n\sum_{j=1}^c \hat{\pi}_j\log{(\pi_{j0}/\hat{\pi}_j)}$$ Show that $G^2\geq 0$, with equalit...
I have been reading "Generalized Additive Models an Introduction with R" by Simon Wood and have come across a section I'm having trouble with. On page 13 it is stated that the model or design matrix $X$ can always be decomposed into $$X = Q \left[ \begin{matrix}{R}\\{0}\end{matrix}\right] = Q_fR$$ where $R$ is a $p...
I am trying to evaluate the elasticity of prices of some goods. I am concerned about the gaussianity of the noise in the prices. With non gaussianity I am referring to the non existence of the firt/second moment fo the distribution of the error. Is there a way to fit linear model without the assumption of gaussianity o...
Edit I've rephrased this question severely. Suppose I have a fitness center, and instead of a monthly fee, the people are paying for courses they are taking. I've got the monthly total revenue of all participants who started in January, for seven months (up to July). I've also collected the monthly revenue generated by...
The regular way to compute the F-value for a Chow forecast test is: $$F=\frac{(e_R'e_R-e_1'e_1)/g}{e_1'e_1/(n-k)}$$ My professor said something today about that a Chow forecast test using $R^2$ would be wrong, because the number of observations in the restricted model that gives $e_R$ is different from that in the mode...
I am new to R and I use a script I do not completely understand. It preprocesses a dataset for data mining. At one point, the data (stored in fil) should be centered and scaled and the NA values are replaced by values calculated with knnImpute. preProcValues <- preProcess(fil, method = c("center", "scale","knnImpute"))...
I have a sample of 20 years, I want to perform multiple regression analysis to estimate economic growth. I have 9 independent variables, but because my sample is small i get insignificant results. I do not have data to maken it a sample of 100 years or anything near that. What can I do? Can I incorporate the sample siz...
I'm performing an elastic-net logistic regression on a health care dataset using the glmnet package in R by selecting lambda values over a grid of $\alpha$ from 0 to 1. My abbreviated code is below: alphalist <- seq(0,1,by=0.1) elasticnet <- lapply(alphalist, function(a){ cv.glmnet(x, y, alpha=a, family="binomial", l...
I have 3 time series (10 years) of economic data for 3 countries. For another analysis that I am doing, I should try and reduce these into preferably 1 time series. For this analysis I don't care so much about the absolute values, rather about the variation. The three time series are for the same thing, but the magnit...
I built a classification model (Logistic Regression) in order to classify data in Fraud or Not Fraud. This data is related with online CNP (Card Not Present) transactions and after choosing some parameters that seemed to be related with fraud, I tested the model. For this I used a training set of 225000 examples, and a...
I was reading the book The Identification Problem In Econometrics by Franklin M. Fisher, and was confused by the part that he demonstrates the identification by visualizing the likelihood function. The problem could be simplified as: For a regression $Y=a+Xb+u$, where $u \sim i.i.d. N(0,\sigma^2I)$, $a$ and $b$ ar...
Let X be a matrix where X may be any mixture of constants and random variables generated. What is the meaning or intuitive explanation for the behaviour of the data in large samples where we have the following assumption: $plim_{n \rightarrow \infty} \dfrac{X'X}{n}= Q$ where Q is a positive definite matrix?
I have seen surveys that use the following method to rank multiple items against each other. Let's say you have 25 items and you want to know their rank order (according to the survey-taker's preference). You pick 5 at random and ask the survey-taker to pick their favourite and least favourite of the group. You can the...
Is it correct (perhaps at least as a good approximation) to determine sample size via a power analysis that assumes an infinite population and then to adjust the required sample size by a finite population correction? For example, I am using the formula from Fleiss: To calculate the sample size required to test the d...
I have data collected on a grid of values $f(x,y)$. I have a hypothesis that the data is "additively separable", i.e. $$ f(x,y) = h_1(x) + h_2(y) + g(x,y) $$ where $g(x,y)$ is small and only represent the noise in my measurements. Is there a way to test for this? If I had infinite sampling resolution I could measure $$...
I have data of the price of a product before a newer version came out and after a newer version came out. I'd like to model the slope of the product pre the new product, and post the new product. Looking at the data, it is obvious when this point is and the negative slope over time for the product increases in magnit...
Using a large, cross-sectional survey of victims of violence, I am interested in testing the effect of alcohol intoxication (let's call it the 'treatment') on victims' subjective rating of the seriousness of the assault (outcome). I have run regression analyses to explore factors associated with seriousness ratings and...
As discussed in user25658's answer to this question, when one wants to compute $$ \beta = \mathbb{E}(x^Tx)^{-1} \mathbb{E}(x^TY) $$ but $\mathbb{E}(x^Tx)$ is not invertible, $\beta$ is not uniquely identified. A characterization of all possible values of $\beta$ is given by $$\beta= \mathbb{E}(x^Tx)^g\mathbb{E}(x^Ty...
I'm interested in fitting a model to several types of time series that all behave similarly: Depth of a work queue Disk space available Idle CPU time available None of these values can go below zero, but otherwise their behavior is relatively independent of value. (e.g. disk space is as likely to move from 25% to 26%...
I have data that have been aggregated with unknown variance into a number of composite averages. These data are generated from pooled assays, such as HIV viral load in a composite of 10 vials of blood, or cystic fibrosis protein concentration in a composite of 10 0.01cc biopsies of lung tissue. We have treated and cont...
I am using two different methods to obtain the frequency of several events. Can I use a scatter plot to graph the frequency of an event obtained by Method A against the one obtained by Method B? And afterwards, report the correlation coefficient to state that, since they strongly correlate, they can be used interchan...
I am comparing 2 different data sets. I have broken down each set into quartiles. I am looking at the percentage of increase between the quartiles (example there was a 125 percent increase between the 2nd and 3rd quartile for one data set and a 123 percent increase between the 2nd and 3rd increase of the other data s...
Ok, I'm having trouble with standard error, sampling distributions and confidence intervals. The question I am trying to answer is: How many holes do I have to drill in the ground to get good idea of the fracture density (# of fractures / hole). I simulated a computer model with theoretical fractures. If I sample the m...
Wikipedia http://en.wikipedia.org/wiki/Kurtosis#Sample_kurtosis calculates the sample excess kurtosis as length(x) * sum((x - mean(x))^4)/(sum((x - mean(x))^2)^2) - 3 On the other hand, I learned from https://stackoverflow.com/a/21484052/156458 that, the function kurtosis form R package fBasics (actually from timeDa...
(1 pt) In a large class, there were 230 students who wrote both the midterm and the final exam. The standard deviation of the midterm grades was 11, and that of the final exam was 16. The correlation between the grades on the midterm and the final was 0.66. Based on the least squares regression line fitted to the da...
A report states that 15% of men in the US are left handed. If a random sample of 125 men contains only 10 men who are left handed, is it reasonable to assert that 15% of all males are left-handed is unlikely? Or is that particular random sample unlikely? We can see here that the sample proportion is $\hat{p} = \frac{x...
I encountered a real-world problem where I want to model the effectiveness of various advertising media of a brand (measured in terms of sales). Basically, the Y in this case is weekly sales, and the X's are media investments in newspaper, magazine, display boards, tv, radio and online, as well as incentive, which is a...
There is a duplicate, and the reason why I still ask this question is that, the answer to that duplicate doesn't answer the question well. The Gaussian Process prior is $$u\sim GP(0,k(x,x'))$$ I tend to write it this way, $$p(u)=N(0,K)$$ The observed training data set is $S=\{(x_1,y_1),...,(x_n,y_n)\}$, and $$y=u(x...
I once read the following interesting distribution related question: An insurance company identified the 10 safest and 10 least-safe cities from 200 cities in the US based on the mean number of years drivers went between automobile accidents. It turns out that the cities on both lists were all smaller than th...
With a model such as: $y \approx B_0 + B_1\cdot \log(x) + B_i\cdot \log(x):\text{group}_i +B_j\cdot group_i$, where group can take on several values ($i = 2$ to $15$, let's say): In an OLS regression, a statistically significant coefficient on any one of the interaction terms $B_2$ through $B_{15}$ means I know up to a...
My book says that the exogneity condition, the condition that should hold in order for $b$ to be consistent, is the following: $$\operatorname{plim}(\frac{1}{n}X'\epsilon)=0.$$ It then says that the $j$th component of this vector can be written as $\frac{1}{n} \sum_{i=1}^n x_{ji}\epsilon_i$, so that the condition is eq...
We consider the following GARCH(1, 1) model: $y_t = h_t \epsilon_t$ where $(\epsilon_t)_{t \in \{1, \dots, n\}}$ are i.i.d. random variables with mean 0 and standard deviation 1. $h_t = \omega + \alpha \epsilon_{t-1}^2 + \beta h_{t-1}^2$ A standard way of estimating the parameters of such a model is to use the quasi m...
I'm trying to select the best model by the AIC in the General Mixed Model test. The best model is the model with the lowest AIC, but all my AIC's are negative! So is the biggest negative AIC the lowest value? Or is the smallest negative AIC the lowest value, because it's closer to 0? For example is AIC -201,928 or AI...