instruction
stringlengths
9
38.7k
I have two sets of vectors, A and B. Vectors from set A live in an m-dimensional space, while those from set B are n-dimensional. I also have a mapping f from A to B. I would like to learn an n x m matrix Q such that the following sum is minimized: $$ \sum_{v \in A}{\|Qv - f(v)\|^2}$$ Are there any standard approaches...
In order to help interpret fitted models — especially those with interaction terms and non-linear components — I've found it useful to plot predicted values of a dependent variables for what we might think of as prototypical individuals. I would like to know if there are existing R modules that help do this. The idea b...
I am measuring time of a computer operation. The operation should run roughly same time each time I measure it. How many times should I measure it to get good average and standard deviation? originally posted here: https://physics.stackexchange.com/questions/64917/how-many-measurements-should-be-done , but I think that...
I have data from a natural archive (lake sediment). For various reasons it is usually impossible to sample the archive equally in time, and we end up with a time series where essentially we have observations at random[*] time points. (In other words we are not sampling a regular process and missing some of the regular ...
I am evaluating the effect of covariances between series on returns. That is I run the following regression: $$ r_t = \beta_0 + \beta_1\text{Cov}(Y_t,r_t) + ...$$ I have conducted my analysis with both first difference and log(first difference) on the series. That is I can take either $r_t = P_{t+1}- P_{t}$ or $\ln(P...
The breakpoint(s) estimation approach implemented in the strucchange package (Zeilei & al) seems to work very well (based on my little experience with this package on real case studies). Is there an existing similar approach for multivariate regression models ? Otherwise, would it be easy to generalize the strucchange...
I need to compare two regression slopes where: $ y_1 ~ a + b_1x y_2 ~ a + b_2x $ How can I compare b1 and b2? Or in the language of my specific example in rodents, I want to compare antero-posterior diameter ~ a + b1 * humeral length de naso-occipital length ~ a + b2 * humeral length
I'm working on a problem that needs to be solved using EM algorithm. In doing that, I have to evaluate an expectation that I actually have no idea how to. Consider: $Y$ as a a fixed observed integer and consider $Z$ as a random variable which has a Poisson distribution with rate $\theta$: $$ Z \sim \operatorname{Pois}(...
I am trying to determine the factor structure of a set of 84 items. Exploratory factor analysis using varimax rotation was conducted to estimate the underlying factor structure for the sample data. Two rounds of exploratory factor analysis were conducted. Items with loading below the generally accepted 0.60 threshold a...
I have started to use the GENLIN procedure in SPSS more than any of the specific dialogues, but I don't understand the Scale parameter or why it has the effects it does on the regression results. Here's an SPSS example: code block 1 Normally, if I wanted to see if set has an effect on the linear parameters $b_0$ and $b...
From Wikipedia Given a sufficiently large sample size, a statistical comparison will always show a significant difference unless the population effect size is exactly zero. For example, a sample Pearson correlation coefficient of 0.1 is strongly statistically significant if the sample size is 1000. Reporting only the ...
I have to compare two data sets for similarity. I'm designing a piece of software which will help improve a drummers accuracy. The software displays a rhythm which the drummer then attempts to play. The first set of data is the reference set of the timings of beats which have been played. The second set represents th...
In SmartPLS, bootstrapping is used to generate the t statistic from which statistical significance can be judged. The two main bootstrapping parameters are case and sample size. Increasing the sample only seems to ensure that the t statistic is stable. Increasing the case size seems to greatly increase the t statistics...
Are the phi and Matthews correlation coefficients the same concept? How are they related or equivalent to Pearson correlation coefficient for two binary variables? I assume the binary values are 0 and 1. The Pearson's correlation between two Bernoulli random variables $x$ and $y$ is: $$ \rho = \frac{\mathbb{E} [(x - \...
I am learning linear models, and I do not understand the following: $\text{Var}(AZ)=A \text{Var}(Z) A^T$ where $A$ is a constant matrix. I want to know the variance $\widehat{\beta}$ in a linear model: $y=A\beta + \epsilon$, and $\widehat{\beta}=(A^T A)^{-1}A^T y$. To show $\widehat{\beta}=\sigma^2 (A^T A)^{-1}$, I ...
In general, neural networks are not graphical models due to the choice of the cost function, but are restricted Boltzmann machines a special type of Bayesian networks?
I develop an application in which i constantly get samples of heart pulse. I defined an interval of t seconds. In each t seconds I have n samples. In every interval, I want to calculate the tendency of those n samples. For example, lets say I have n = 5, and I have samples with values {70, 88, 95, 103, 115}. I want to ...
Is there any theoretical reason that Chol() in R breaks for Hilbert matrix of order greater than 12? Thanks,
I have run into a problem with respect to an application of linear mixed effects model using lme4 package and I wondered if I could seek your help. This is my model in a multivariate setup where $Y_{ik}$ is the gene expression value for a give tissue type $k$ and $G$ is the genotype with $G_i \in \left(0,1,2\right)$ fo...
I'm trying to make a little function to make population-level predictions from a model that includes random effects, which in turn was fit using a package that doesn't support interval="prediction". (As far as I can tell, the reason why the package doesn't do so is that prediction is fraught when trying to predict wit...
I have a bunch of independent p-values and now I want to combine them using the Fisher's method. Each of the individual p-values is coming from a one-sided test. I am just a little bit confused about the "side" of the Fisher's method test, i.e. when I calculate the Fisher's method p-value in R, I use: 1 - pchisq( -2*su...
For a classification task, I have developed two methods and FScore(harmonic mean of precision and recall) of both the classes serves as the performance criteria. How can I check whether the difference between the performance of the two systems is statistically significant or not. For eg. I was reading a paper by Navigl...
Some distributions have conjugate priors and some do not. Is this distinction just an accident? That is, you do the math, and it works out one way or the other, but it does not really tell you anything important about the distribution except for the fact itself? Or does the presence or absence of a conjugate prior ref...
I have data from a two-factor within-subjects experiment design where the conditions are not orthogonal. Factor one (Location) has three levels; factor two (Stimulus) has three levels, one of which is "no stimulus". When multiplying these factors I get nine conditions, three of which are equivalent. All three Location ...
According to M. Katz in his book Multivariable analysis (Section 1.2, page 6), "A confounder is associated with the risk factor and causally related to the outcome." Why must the confounder be causally related to the outcome? Would it be enough for the confounder to be associated with the outcome?
I'm a second year psych grad student. From my fascination with formal logic, I wondered (just personal; not homework) about how to statistically establish necessary/sufficient relationships between variables. Let's suppose two variables, Intelligence and Creativity, whose relationship is summarized by the conditional,...
I would like to test two relatively small samples against the null hypothesis that both their means and variances are the same. The alternative would be that they in fact differ. I saw a post on this site advocating a ML test but I recall there is also a named test for this case, which I would ideally like to use in R,...
Suppose that I have an assortment of summary statistics on a sample, and some beliefs about the underlying distribution, but no access to the sample itself. Each of the sets of summary statistics is sufficient to allow me to estimate the parameters of the distribution that I believe applies. For, instance, I may have ...
I have a binary classification problem, where my training data is 70% positive labeled and 30% negative labelled. I use a logistic loss and it always classifies examples positive on the test data. How can I make it classify some examples negative as well? One solution I though of might be to remove some positive exampl...
Very simply, I'd like to plot a graph that compares what is predicted by the model to the real observations. It seems easy for binomials, but for multinomial the graph that SPSS creates is pretty ugly, using X and O signs rather than real graphics. Any clue? Here's the kind of plot SPSS makes by default. Not very beaut...
I have this confusion related to minimization of gaussian likelihood function. The negative of the log likelihood of gaussian distribution is $-\log \det(Q) + \text{tr}(SQ) + \lambda||Q||_{1}$ where $Q$ is the precision matrix to be estimated I am following this paper It's been mentioned that Using sub-gradient nota...
I have a task that involved Bayesian inference and could use some pointers and hints. I've already got some parts figured out but others remain blurred. Also, my OpenBUGS abilities are frankly limited so advice how to concretely proceed with my problem would not hurt. So the task at hand is following. I am supposed to ...
I have iid data-points $x_1, \dots, x_n$, generated by an unknown density $f(x)$. So far I have approximated $f(x)$ with a normal $N(\hat{\mu}, \hat{\sigma}^2 )$, where $\hat{\mu}$ and $\hat{\sigma}^2$ are sample average and variance, but I would like something more flexible. I have tried with simple Kernel density est...
I have a data set with a set of features. Some of them are binary $(1=$ active or fired, $0=$ inactive or dormant), and the rest are real valued, e.g. $4564.342$. I want to feed this data to a machine learning algorithm, so I $z$-score all the real-valued features. I get them between ranges $3$ and $-2$ approximately. ...
I'm trying to program an SVM in Python to categorize proteins as "Go" or "No-Go". I have a list of about 30 proteins, each with ~ 100 columns of structure-related parameters and 1 column of "True" or "False". I will use this as my training set. I don't want to write an SVM that uses all 100 columns of data. How do I id...
Let $\{X_i\}_n$ be a sequence of $n$ random variables independently and identically drawn from either $P$ or $Q$. Thus the sequence $\{X_i\}_n$ has a product distribution, which is either $P^n$ or $Q^n$. Assume that $P$ and $Q_\theta$ have the same support $\Omega$. Suppose that the total variation distance between $...
The question: Find a 99% confidence interval for the difference in mean oxygen consumption of an algae that is in 100% concentrated seawater with algae that is not in 100% seawater (i.e., 50% or 75%). Is this the correct approach? If we let $X_1$ be the random variable corresponding to the mean oxygen consumpt...
I am trying to understand the relation between observed power and p-value in Stephane's reply, which I think is based on J. M. Hoenig and D. M. Heisey (2001) "The Abuse of Power: The Abuse of Power Calculations for Data Analysis," The American Statistician 55(1), 19-24, I don't quite understand the quote. I hope tha...
Given certain products (ProductA, ProductB, ProductC, etc..) users are asked to rank them according to their preference (whether they like, somewhat like, or not like, the product). Thereafter I have extracted certain binary features from these products (handle is present or not, etc..) and now I want to test which fe...
Edit I have found a paper describing exactly the procedure I need. The only difference is that the paper interpolates monthly mean data to daily, while preserving the monthly means. I have trouble to implement the approach in R. Any hints are appreciated. Original For each week, I have the following count data (one val...
I have this set of data x y 0.5 306.3 1 622.3 2 1230.1 3 2017.7 4 2589 5 3175.4 6 3751.9 9 5585.7 12 7388.8 15 9218.8 20 12042.8 25 15056.5 30 18081.2 45 27095.3 60 35609.2 80 47263.1 When I plot x vs y with R I obtain an almost linear plot, when I plot them with Libre Office Calc I obtai...
Moved from Stack Overflow Could someone help me to find adequate regression model for my data? I tried to find one by changing the model and initial approximation (ln 15-16) in this simple Python program: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np import scipy.linalg as la from numpy i...
I have a question about clustering. I' m managing gene expression microarray data and I would like to cluster them in classes. I searched around to find the best clustering algorithm for my data, but since as in all gene expression microarray experiments the number of genes exceed greatly the number of samples being...
I have a multiple linear regression model (OLS) that has a constant, 5 variables, and an interaction term between two of the dummy variables. I need to perform the Durbin-Watson test for first-order correlation, and in order to find the critical values, I need to know the number of explanatory variables (not taking int...
I have to compare the slopes of 2 regression lines with R. The 2 regressions are made with the same parameters in 2 different locations. I did my regressions with the function lm(). Now I have the results but I don't know how to compare them.. I tried with student test or ANOVA but it requires more than the 2 slopes. I...
I have a problem in my thesis results of OLS regression being insignificant. I have 3 sectors and each sector has 130 observations. Is this sample size is sufficient or not ? Can anyone suggest some reason why my results are insignificant?
The data analyzed here is a sample of individuals collected on a monthly basis. What would be the best way to compute "prediction intervals" for the monthly sample means, in order to indicate the natural variability that can be expected from this value month after month? Here is an example: All individuals are sampled...
I am conducting a study to examine the differences between writing paragraphs in English among junior high school students in Japan. We collected writing samples from four classes, approximately 38 students per class, and looked at the number of words written, the number of grammar errors, and the number of spelling e...
I am conducting a research study about breastfeedding. I receive a whole database of subjects which are suitable to my research. I have had to call each individual to ask for their approval to participate in the study since it also requieres the participation of their bosses and one co-worker. This means that I can onl...
Say I've got three treatment groups, and I measure them at three time points. Since the interaction in question involves both the groups (which occur between subjects) and the time points (which occur within subjects), why should the Groups x Intervals interaction be decomposed under SSwithin and not SSbetween?
Is there a handy plot for comparing the variance-covariance matrices of two (or perhaps more) groups? An alternative to looking at lots of marginal plots, especially in the multivariate Normal case?
I have a question concerning the coefficients of VAR models used on multiple imputed data (high missigness in some variables: up to 40%). In particular I would like to know how the coefficients are related to the explained variance. I have used vector autoregression on multiple imputed data (m=10) and have then combin...
[A duplicate thread can also be found at https://mathoverflow.net/questions/131142/finding-conditions-on-unspecified-cdf-that-permit-a-solution-to-an-equation ] Let $F(\alpha) := \mathbb{P}(\tilde{\alpha} \le \alpha)$ be an arbitrary, strictly increasing and twice differentiable CDF that is defined on the interval $[0,...
I assume that using standardized regression coefficients is a way to compare the relative effect of two or more predictors (measured on different scales/units) on the mean value of Y. If you have several predictors that are comparable without standardization, and you transform one predictor to correct for skewness, wou...
I'm trying to model a system given as a project, any help or advice is useful for now. Here our assumptions for a part of it: If I study for the finals and do assignments, I have $80\%$ chance to get a scholarship If I neither do assignments nor study, my chance reduces to $20\%$ If I either do the assignments or stud...
I used a two-way ANOVA to analyze data collected in a randomized complete block design: Y~Treatment+Block, where blocks represented spatial units Whereas Treatment had a significant effect on Y, block effects were insignificant. Does this simply mean that all blocks were the same with respect to the response variable?...
I have a sample of about 1000 values​​. These data are obtained from the product of two independent random variables $\xi \ast \psi $. The first random variable has a uniform distribution $\xi \sim U(0,1)$. The distribution of the second random variable is not known. How can I estimate the distribution of the second ($...
I am trying to learn the difference between the three approaches and their applications. a) As I understand, AIC = -LL+K BIC = -LL+(K*logN)/2 Unless I am missing something, shouldn't the K that minimizes the AIC minimize BIC as well since N is constant. I looked at this thread but couldn't find a satisfactory answe...
I have a set of samples, for which I know the "true groups". For this samples I have about 200 binary variables, I would like to know a method to select the subset of variables, that gives me a clustering as closer as possible of my known groups. # sample labels labelColors2 <-c("black", "black","black","black","black"...
In the following blog post: here, the author goes and calculates the alternative correlation measure for two time series. Essentially, calculates the correlation between two series by giving the mean of each series 0. I tried reproducing it, but am not getting close results. Here is the code: setInternet2(TRUE) con = ...
The title is a bit complex, so I'll just post the question. This is in preparation for a final I'm going to take. Consider the total number of cars that a car dealership might sell over $50$ randomly selected (contiguous) days. Assume that the expected value of the number of cars sold over such a random sample of $50$...
I'm tuning a slot machine app and need to make sure the mini-game is appropriately balanced. The mini-game is a grid of 30 treasure chests, 6 of which are traps. The user continues to open chests (and earn prizes) until they hit a trap. What I'd like to do is add a "lives" mechanic where hitting a trap depletes a life...
Gaussian data distributed in a single dimension requires two parameters to characterise it (mean, variance), and rumour has it that around 30 randomly-selected samples is usually sufficient to estimate these parameters with reasonably high confidence. But what happens as the number of dimensions increases? In two dimen...
I am not exactly sure if CrossValidated is the place to ask this question, but decided to give it a shot. This may be thought as an abstract question. I am trying to compare the feasibility of two different methods, let's call them: Method A Method B Both methods take the same parameters and yield a real number greate...
This famous paper points out that any squared error based clustering method (K means being the most common example) tends to generate hyperspherical clusters. However, it does not point to a theoretical justification. I would like to know: 1. If there is a theoretical justification for this observation. 2. If the K-Me...
Can the Neyman-Pearson lemma apply to the case when a simple null and a simple alternative don't belong to the same family of distributions? From its proof, I don't see why it can't. For example, when the simple null is a normal distribution and the simple alternative is a exponential distribution. Is the likelihood ...
1.AdaBoost updates the weight of the sample By the current weak classifier in training each stage. Why doesn't it use the all of the previous weak classifiers to update the weight. (I had tested it that it converged slowly if I used the previous weak classifiers to update the weight ) 2.It need to normalize the weigh...
I have created training set and test set from my data. Then I performed auto.arima() and ets() in R on the training set to predict one-step ahead forecasts. These were then compared with the test set values to measure error, namely RMSE, MAPE & MAE. This is the output of both ets and auto.arima RMSE.ets [1] 3767.561 ...
In preparation for my end of semester R exam, I've been working on the following CSV file which was modelled on R, which I'm currently having problems figuring out. To investigate this issue I decided to introduce a bilinear variable (SxPR) which is the multiplication of the variable S (power plant’s capacity) and ...
The books gives some examples about content based recommendation. An example of what I understood is at below. A movie's attributes are values between $1$ and $10$. The duration attribute gets values between $1$ and $100$. If we use these raw values to calculate distance, duration will dominate purely because of wid...
I have a sequence of random variables $S_1, S_2 \dots S_N$ that is guaranteed to satisfy $$S_1 + S_2 + \cdots + S_N = 0$$ I can't observe any of these random variables directly, however I can observe their differences: $$S_{ij} = S_i - S_j$$ I typically have many observations of each difference $S_{ij}$ - call the obse...
I just learned that there are three ways of constructing test statistics based on likelihood: likelihood ratio test, Wald test, and score test. I think it nicely categorizes various tests, and I liked it very much I would like to know if the three can cover all or most of the specific tests. What are some commonly-see...
I'm using the NLPCA to reduce the dimensionality of nine variables (4 nominal / 3 ordinal /2 numeric) to obtain the object-scores to be used as dependent variable in a regression model. I'm using the package homals (http://www.jstatsoft.org/v31/i04/paper). The output is: X <- homals(sintomi[,2:10], ndim = 1, active = T...
How do we find information about the distribution of a variable in presence of dependency among our observations? This dependency is coming from measuring the variable on the same group of subjects multiple times. These are two examples of what I have in mind: Suppose we have a website for customers to purchase goo...
I am trying to train a neuralnet model by using caret package by this command: model.neuralnet <- train(X, Y, method='neuralnet', trControl=myControl, stepmax=700, rep=1, learningrate=0.05, algorithm = 'backprob', preProcess=PP, tuneGrid = expand.grid(.layer1=4, .layer2=1, .layer3=1), act.fct = 'tanh', l...
I have a question regarding a repeated measures experiment. I have 5 whales (randomly selected) that I recorded body temperature on. Data was collected via satellite, programmed to transmit records at 2-minute intervals, but data for each whale are not a complete time-series data set (i.e. unbalanced records/missing da...
Assuming we have a random variable $X\sim \operatorname{Gamma}\left(\alpha,\beta \right )$:$\frac{1}{\Gamma (\alpha )\beta ^{\alpha}}x^{\alpha-1}e^{\frac{-x}{\beta }}$ I'd like to test the hypothesis: $H_{0}:\beta=\beta_0$ vs: $H_{A}:\beta\neq \beta_0$ using a likelihood ratio test. I am assuming alpha is known and hav...
In the answer to this question, the correction term is claimed to be nonnegative: $$p_A \mu_A^2 + p_B \mu_B^2 - p_A^2 \mu_A^2 - p_B^2 \mu_B^2 - 2 p_A p_B \mu_A \mu_B \geq 0$$ where $p_A + p_B = 1$, $0 < p_A < 1$, and $0 < p_B < 1$. How can this be shown?
I know that the test statistic is $$F=S_1^2/S_2^2 $$ But I am looking at some example questions from my lecturer and some have confused me. For example: For a certain game, individual game scores are normally distributed. Two players played 10 games each, and recorded their scores on each game. For player A, the aver...
Say I want to plot summary data with a point and a 95% confidence interval around that point. What should my point really be? Mean, mode, or median? I know that mean = median for any symmetrical distribution, and the most common distributions used in data analysis (t distribution and normal distribution) have the conve...
With a colleague, we are working on a dataset containing ~5000 continuous variables for 120 individuals belonging to 8 classes. We want to estimate the relative importance of each variable to explain the classes. We have used a random forest approach with some success. Now, we could like to go deeper by considering the...
I have a function that I am trying to optimize using Particle Swarm Optimization. The objective function gets a binary string. These binary strings are candidate solutions of the subject function. I can measure the dissimilarity between two solutions by the Jaccard Coefficient, but I need to move one solution towards ...
I understand EM algorithm is often used for missing data/mixture problem. But can it be used to optimize a particular type of likelihood based on jointly fitting variables and transformations of those variables? I am fitting a logistic regression model: $Y$ is the usual binary dependent variable, $\mathbf{X}'$ is a ma...
I'm new to linear mixed modeling, and have some theory-driven questions that I'm not sure how to analytically resolve. I am analyzing experimental data with a within-subjects factor (discount). My theory hypothesizes that the effect of this within-subjects factor is contingent upon a between-subjects characteristic of ...
So I know we statisticians don't use differential equations as heavily as e.g. engineers. Actually, I have never seen or needed them in my studies. I'm curious to learn about them now, and I'd be especially happy to hear about statistical applications for DEs. This would make me even morew motivated to learn about them...
Let there be two samples of size $n$, $x_i$ and $y_i$ from two different normal distributions. What is $\operatorname{cov}(\bar X_n, \bar Y_n)$? And how can it be estimated? The motivation for my question is to understand if there is a way to know if two paired samples are correlated in such away so that their expectan...
I'm using the analytical strategy of Christakis and Fowler to study the spread of behaviors in social networks. Page 566 of this article reviews their method in more details: http://humannaturelab.net/wp-content/themes/human-nature-lab/media/pdf/publications/articles/SIM_special.pdf Basically, they use GEE approach and...
Most of this is background, skip to the end if you already know enough about Dirichlet process mixtures. Suppose I am modeling some data as coming from a mixture of Dirichlet processes, i.e. let $F \sim \mathcal D(\alpha H)$ and conditional on $F$ assume $$Y_i \stackrel {iid}{\sim} \int f(y | \theta) F(d\theta).$$ Here...
I can see lots of paper mentioning they selected some parameters like regularization parameter $\lambda$ by cross validation. What do they mean by that?
I am trying to compute eigenvalues in C++ using the Armadillo function eig_sym via RcppArmadillo. The results are not entirely the same as the output of the R function eigen(): In R: set.seed(1) X=matrix(sample(1:25), 5) X # [,1] [,2] [,3] [,4] [,5] #[1,] 7 18 4 19 6 #[2,] 9 22 3 25 16 #[3...
I'm running an analysis on a few data sets that each typically have 100-200 cases measured across 120-160 variables - something similar to looking at gene expressions. Each variable is a non-centered score for expression of a particular attribute frequency for each case. In many cases though, any given attribute is lik...
For any particular nonlinear regression: $$Y_i = f(\mathbb{x_i},\theta) + \epsilon_i, i=1,...,n$$ I currently have standard errors for each of the $\theta_j$ obtained via the Gauss-Newton algorithm Is there a systematic relationship between these standard errors and the sample size such that I would be able to predict ...
For an OLS model the mean squared error can be used to assess the fit of the trained model on the validation data. What is the equivalent for a logistic regression model? Can I simply use the following residual sum of squares function? $RSS=\Sigma^N_{i=1}(y_i-{\hat p})^2$
I'm trying to determine if the exponential distribution is a good model for a data set that I'm exploring. It doesn't have to be precise. I'm using the data for capacity planning (if it's a good fit) and for my own learning. I found a data set that I have ready access to and I wanted to test to see it fit a known distr...
Suppose you have some multivariate normal distribution $X \sim N(\mu,\Sigma)$. Is there a good way to calculate a measure of distance between an arbitrary $X_{i}$ and $X_{j}$ of $X$ (I suppose the simplest approach would be to begin with a two dimensional distribution, which can be obtained through the conditional mult...
The effect-size tag has no wiki. The wikipedia page about the effect size does not provide a precise general definition. And I have never seen a general definition of the effect size. However when reading some discussions such as this one I am under the impression that people have in mind a general notion of effect siz...
When I run this code: require(nlme) a <- matrix(c(1,3,5,7,4,5,6,4,7,8,9)) b <- matrix(c(3,5,6,2,4,6,7,8,7,8,9)) res <- lm(a ~ b) print(summary(res)) res_gls <- gls(a ~ b) print(summary(res_gls)) I get the same coefficients and the same statistical significance on the coefficients: Loading required package: nlme ...
I am using the corrected AIC to select the lag order in a simple AR(p) model. I chose the the AICc since my sample is fairly small (n=135). The AICc minimal model is the AR(15). To me it seems like an overfit to include 15 lags in such a small sample. Do you agree? And does anyone know a rule of thumb for max lag order...
See the cross-post at https://stackoverflow.com/questions/16659749/getting-the-ellipse-function-to-match-the-dataellipse-function-in-r. So I am sampling from a multivariate normal distribution in R, and am trying to figure out how to calculate its 95% confidence ellipse using the ellipse() function in the package car....
So, I am not a statistician, but a burgeoning mathematician. Here is something that is perplexing me in statistics, however. My apologies if the question is silly, on one hand, or just not solvable, on the other. Also, any online resources would be helpful. I am looking to learn: Let's say we have independent varia...