instruction
stringlengths
9
38.7k
somebody help me to understand the difference between pooled OLS vs multiple linear regression. i learned panel data analysis consists of three: 1. pooled OLS 2.fixed 3. random my understanding about pooled OLS is that it disregards the space and time dimensions of the pooled data and just estimate OLS regression. a...
If I have a set of correlated random variables $\mathbf{X}=\{X_1,\dots,X_n\}$ that have been sampled $N$ times, I can calculate the correlation function for pairs of variables as $$ \mathrm{Corr}(i,j) = \frac{1}{N}\sum_k x_{i,k}x_{j,k} \equiv C_{ij} $$ where $x_{i,k}$ is the $k^{\mathrm{th}}$ realisation of the ran...
I'm looking to use iterative logistic regression to find the parameter values of the 2 pl model: $ P = \sigma(\alpha_{i} (\theta_{s} - \beta_{i})) $ where $ \sigma(x) = \frac{1}{1+e^{-x}} $ I know how to proof that in normal logistic regression the log likelihood of the data is concave and that there will thus be no lo...
In my practice, I often find out that after the basic assumptions for linear regression are not met, I have to discover a new type of regression I should use. For example, in the past, I came across the need for Non-negative binomial regression and Lagged dependent variable models. However, in all cases I found out abo...
Some of you might have read this nice paper: O’Hara RB, Kotze DJ (2010) Do not log-transform count data. Methods in Ecology and Evolution 1:118–122. klick. Currently I am comparing negative binomial models with gaussian models on transformed data. Unlike O’Hara RB, Kotze DJ (2010) I'm looking at the special case of low...
Let us say that we have 5 sets of data: $$ a = (a_1, a_2, \dots, a_{10}) \\ b = (b_1, b_2, \dots, b_{10}) \\ c = (c_1, c_2, \dots, c_{10}) \\ d = (d_1, d_2, \dots, d_{10}) \\ e = (e_1, e_2, \dots, e_{10}) $$ Let us suppose that we want to find out if some data are bigger than others. We perform for example the Wilcoxo...
Scenario: There was an online competition to win a prize. The competitors are technology start-up companies and the prize is worth around 5,000 USD. There was a public, online vote to decide the overall winner. Competitors turned to social media to get the word out about their competition entry. Prior to the public vot...
I am trying to figure out how regression residuals are calculated using the specific example in the attached graphic. Would I simply B-A (Red letters in graphic) to get C so: 22-30 = - 8 in this case? Would I do this for all data points and add the + and - values to get a residual value? Additionally, for D, if I ha...
I have an estimation problem for a binomial data. I got a sample and from that I can get an estimation. But I also have a kind of prior information about the p. But mind it, this prior is just a single value, not a distribution of p, so I can't use Bayesian. The prior is also an estimation for the same distribution fro...
I calculated a Wilcoxon Signed Rank Test to investigate differences between a pair of dependend variables. Also I conducted a Kendall's tau-b on the same variables. Surprisingly both tests get significant. I wonder how this is possible because Wilcoxon tries to identify group diffrences and Kendall's correlation is abo...
I have fitted multionomial regression models to two different datasets, but from the same country, corresponding to the same event. Dataset A is an aggregated dataset (at country level), relating a 6 level response scale to a explanatory variable V. The sample size is 41, each individual point in the sample representi...
This is a basic question to understand how datasets for survival analysis are constructed. I understand the terms in the model, given by this equation: (P.41, G. Brostrom, "Event History Analysis with R")/ And I understand how to specify a the base-rate hazard function $h_0(t)$, and associate covariates with the covar...
What is the difference between logistic and logit regression? I understand that they are similar (or even the same thing) but could someone explain the difference(s) between these two? Is one about odds?
Having a clustered dataset, I want to visualize a scatter plot for two fields so every cluster is shown on the plane by its mean value (also good to have a radius equal to std). How does one do this in Stata?
Suppose I have performed a study wherein I compare a novel intervention (N) against the standard intervention (S). Participants are assigned to N or S randomly, and the study is performed. There are two outcome variables, A and B. My question: With only two outcome variables, is it appropriate and/or necessary to apply...
We are studying machine learning via Machine Learning: A Probabilistic Perspective (Kevin Murphy). While the text explains the theoretical foundation of each algorithm, it rarely says in which case which algorithm is better, and when it does, it doesn't say how to tell which case I'm in. For example, for the choice of ...
I have a flat CSV file that has one column of student names, one column of grades (outcomes) coded as a factor A-F, and about 100 columns of test scores (independent variables) of various sorts, on different scales. I have recoded the grades to standard variables with mu = 0 and sigma = 1 (thinking that this may help)....
Wikipedia says that an interpretation of the area under the ROC curve is: "the area under the curve is equal to the probability that a classifier will rank a randomly chosen positive instance higher than a randomly chosen negative one". But is it the same interpretation of the area under the PR curve? If not, can you p...
I am using latent semantic analysis to represent a corpus of documents in lower dimensional space. I want to cluster these documents into two groups using k-means. Several years ago, I did this using Python's gensim and writing my own k-means algorithm. I determined the cluster centroids using Euclidean distance, but t...
I have means, variances, and sample sizes from three geographical sites but not their raw data such that: site1 site2 site3 N 120 150 160 mean 27.1 32.6 42.3 sd 5.5 7.1 6.8 I know we can do a pairwise z/t test just using these information. I'm wondering whether I can conduct a F test or Anova f...
I am asking this in the context of wanting to diagnose for violation of proportional hazard assumption and its correction. (Schemper 1992) On p.179 of Hosmer, Lemeshow and May, it says that we can not simply take the product of covariate and observed value of time. I.e. we cannot define a new variable as Treat_t <- T...
I am getting an error running a gnls() on some data I have. I was able to converge using nlsLM(), but I ran into some autocorrelation in my errors, so I want to try to use gnls() so that I will be able to take into account the correlation of my errors. My data: > current_tree site location tree age.base height dbh.cm...
I am trying to find out whether the variance of weighted importance sampling can be shown to be bounded when the original samples are bounded. More specifically, say $X_1, \cdots, X_n\in\mathbb{R}$ are random variables generated following a sample distribution $f(X)$, and we are interested in finding the expected valu...
Harmonic mean estimator is notorious for the possibility of having infinite variance. Now I want to show that it has finite variance when samples are bounded. I am wondering whether my following argument is anyhow flawed. If we have $n$ i.i.d. random variables $Y_1,\cdots, Y_n>0$, then harmonic mean estimator is define...
I've got data from a randomized experiment that includes a lot of covariates. I'm interested $\delta$ from a model of the form $y = g(\delta T + X'\beta+ \epsilon)$, where $T$ is randomly assigned and thereby uncorrelated with $X$. I don't need to include $X$ in the model to get unbiased estimates of $\delta$, but inc...
I'm doing binary classification on highly dimensional text data, with a biased class distribution. After reading this paper, i found out about BNS feature selection. Is there any package that implements this (i can't find one)? How hard is to implement it by scratch? Or is there another method (like PCA) which i can us...
I'm reading a paper about ROC and PR curves. They mentioned the ROC convex hull but they don't define it or say what it is. Can someone please tell me the meaning of it? What is a convex hull in ROC curve and what does it mean? Is it just the ROC curve?!! Edit: from the paper: "In ROC space the convex hull is a crucial...
I read the following paper: Perneger (1998) What's wrong with Bonferroni adjustments. The author summarized by saying that Bonferroni adjustment have, at best, limited applications in biomedical research and should not be used when assessing evidence about specific hypothesis: Summary points: Adjusting statistical s...
I am a bit lost in the literature regarding the random forest importance. I am aware that there are different methods. I have a binary output variables where elements labelled with 0 are much more than the ones labelled with 1. 5 variables are used as input. Some of them are continuous and some others are categori...
I have two model comparison questions: First comparison: I have a GLM model and a segmented GLM model. both models have the same dependent and independent variables. The only difference is that we assume a segmented (piecewise linear) relationship for one of the independent variables in the segmented regression. Now ...
I'm attempting to solve a question about the variances of random block design versus balanced incomplete block design. I feel I am close to having an answer, but I'm not quite there yet. Question: It was previously noted that $\frac{Var_{RB}(\hat{\alpha}_i -\hat{\alpha}_j)}{Var_{BIB}(\hat{\alpha}_i -\hat{\alpha}_j)} =...
Why is it that random number generators like runif() in R don't generate the same result every time? For example: X <- runif(100) X is generating different outputs every time. What is the reason for generating different outputs every time? What functionalities does it have going on in the background to do this?
Let's say we observe a sample choosing between three possible outcomes: a, b, and c. We can then easily calculate the probability of an individual choosing outcome a: # people choosing a / total # number of people making a choice. How can we then add an estimate of the upper and lower bounds of the probability of a oc...
In LARS how is it possible that after including a variable it could reach zero again? http://www.cc.gatech.edu/~isbell/reading/papers/lasso_simple.html.pdf I understood that it works like: 1) choose the ariable more correlated with y 2) start increasing the parameter of that value until the correlation of this variable...
I'm trying to compare the model where asymptote value varies over subject and the one that does not. I've fit the first (the one that varies) but can't seem to figure out the latter. The first one is m1 <- nlmer(weight~ SSlogis(Time, Asym, xmid, scal) ~ Asym|Chick, cw1, start=c(Asym =400,xmid = 11, scal = 3)) For the ...
I have problem where you are given the number of times you must win, and the chance of winning a game. I need to find the probability that I win all 4 times. Example: I am only given two inputs, 4 (the number of times I must win) and 0.4 (the chance of winning each time). I would expect the answer to just be 4 * 0.4, b...
Let me give the details of my problem setting, we have a learning algorithm that can take a collection of algebra problems and automatically generate similar ones. Of course, an important question to ask is are the problems we generated indeed similar to the original ones. We invited 20 students to answer the 10 questi...
Hint: do not use linearity, use definition of expectation. i have a rough idea that we turn the inside into g(x), but not sure how to proceed from there.
I'm very impressed by this plot: Why does ridge estimate become better than OLS by adding a constant to the diagonal? Does someone has any clue about how to plot this on R? I mean, how to get RSS values for differents parameter estimation? With lm function, I will have only one solution! Thanks for your help!
I have a survey methodology question. I am preparing a report that contains some demographic information. My supervisor instructed that I use the NCHS bridged-race population estimates when reporting the state population. However, he has also instructed that I use the ACS IPUMS to calculate rates on various indicators ...
Currently I am working on the data mining project and I am using RandomForest classification model for that. I have a few queries in that. Will the RandomForest handle if there is correlation between the prediction attributes given while building the model . Or should we only given the independent attributes to the mo...
I just started to get into the theory of probability/choice experiments and there are some topics that I don't understand. Hope you can help me to get the hang of it. Lets say the following situation is given: The factor price has the following levels: 30 = -2 25 = -1.25 20 = -0.5 15 = 0.5 10 = 1.25 5 = 2 <- this...
I'm running a PCA using the R function prcomp. This is the function: d2.pca <- prcomp(sel.d2, center=TRUE, scale.=TRUE) So variables are scaled an centered. (This always has to be done, right?) This is my original loadings matrix: PC1 PC2 PC3 PC4 var1 0.551 -0.246 0.576 -0.55...
I am new to generalized additive models (GAMs), and most of my knowledge comes from this document. Now I am using a generalized additive model with random effects to model some data, where I want to see how "speedChange" correlates with "response" in my dataset, with consideration of random effects "user.id". The code ...
I have a student (for a high school project) who has conducted an experiment and collected data in the following (simplified) way: id|situation|scoreX|scoreY where id identifies the subject; situation only takes the nominal values A or B; and scoreX and scoreY are numerical measurements. Each subject has two entries, ...
We are measuring traffic and conversion rates on an eCommerce website. Conversion rate is defined as the % of traffic (users) that purchased something on the website out of all traffic over a period of time. For example: If the total traffic was 1M over one week, and 100K users purchased something, then the conversion ...
I'm trying to automate outlier detection in time-series and I used a modification of the solution proposed by Rob Hyndman here. Say, I measure daily visits to a website from various countries. For some countries where the daily visits are a few hundrends or thousands, my method seems to be working reasonably. However,...
I have found some real estate plots in a scientific article. These graphs mainly describe, the believes of the author of the development of the real estate market in the future for certain countries. I am very interested in the techniques used to model this case. Therefore, I tried to contact the author to find out mor...
I am implementing a Neural Network in a somewhat different fashion. I train my neural network locally using a small subset, and export the weights. My goal is to test the neural network in a distributed parallel programming solution using those exported weights. This means that I have to rebuild the NN topology. My act...
I am using the R-package ghyp in order to calibrate and model. In fact my coding is based on this paper. I know that I could do quite a robust fit using fit.ghypuv but I try to maximize a rather complicated likelihood function bases on a Markov-chain with ghyp marginals given the state. Therefore I use a non-linear op...
I have run a linear regression with the following equation (in r): lm(formula = logTotal ~ Continent + logArea + Method + Servs) where Total is $/ha/year (numeric), Area is hectare (numeric), Continent and Method are factors and Servs is numeric. It returns the output: Call: lm(formula = logTotal ~ Continent + logAre...
I've been playing around with the German Credit dataset available in Kuhn & Johnson's caret package for R. First, I build a very simple model (I'm not using CV to simplify the code; this is taken from their examples in the AppliedPredictiveModeling package): library(caret) library(randomForest) data(GermanCredit) Ger...
I have a continuous variable, which can take any value between 0 and some large, though not infinite, number. Let us assume that the maximum possible value is 1000. The values are nowhere near uniformly distributed in 2 ways. First, the distribution of values skews right (most values are on the smaller end of the 0-100...
I am making a model (multiple regression) that predicts credit growth. Many of the independent variables are leading indicators and should therefore be lagged. How do I choose the optimal number of lags for my independent variables to explain credit growth? Thank you.
My situation: sample size: 116 binary outcome (32 events) number predictors: 42 (both continuous and categorical) predictors did not come from the top of my head; their choice was based on the literature. I have run group lasso logistic regression as explained in suggested in a previous post, aiming to identify the m...
Is it true that the diagonal elements of the inverted correlation matrix will always be larger than 1? Why?
When do I use skew normal or skew t regression via MCMC? Do I use them when the data are heavily skewed, for example income data? Or do I fit a normal regression model first and inspect the residuals of the normal regression and if the residuals are skewed, then apply a skew normal regression?
I think I understand completely the concept of cross validation, but there is one aspect I've never seen detailed. Let's assume I have a logistic regression model with four parameters I want to train. I perform k-fold cross validation with k, let's say, 5, over my training data, and it yields 5 different sets of four v...
In a linear regression context: is the sample $\widehat{R^2}$ a consistent estimator of the population parameter $R^2$? Maybe this depends on distributional assumptions?
I have this data that I want to fit with $y = e^{-bx}$, but the y:s represent probabilities and the outcomes are either 0 or 1, so I can't say $ln (y) = -bx$ since the values will just alternative between -inf and 0. Is there a way to do this?
Yes, I know that after we fit (train) a predictive model on a training dataset, we need to test the fitted model on the testing-dataset. The motivation behind this procedure is clear: If our model performs great on the training data set, there is no guaranty that it will work well on the data that it did not "see" so f...
I'm running a beta regression in R where the outcome variable is continuous but bounded between 0-1. I need the results to be understandable to an audience with a very basic stats background. I need some help interpreting the coefficients. My model is very basic and look like: betareg(Y ~ ANE + factor(Year) +factor(Mon...
I am trying to analyze a dataset using the GEE. This is what I have so far C=read.table("Cnarinofinal4.txt",header=T) attach(C) names(C) library(geepack) Form <- formula(Conteo~Grupo+Tiempo+Comportamiento+Comportamiento*Grupo+Comportamiento*Hora) M4 <- geeglm(Form,family = poisson, id =Individuo, corstr = "exchangeab...
To avoid some confusion, I am not referring to the scale, but the statement itself. Is there a rule to phrase the statements to capture the same conceptual meaning. For example: Positive: "The tool was easy to use". Negative: "The tool was difficult to use".
I'm having trouble with the following question. Suppose $X \sim N(\mu, \Sigma)$, where $\mu \in \mathbb{R}^k$. Let $Y= AX +b$, where $A$ is an $n \times k$ matrix of constants and $b$ is an $n$ vector of constants. Let $W=DX +c$, where $D$ is an $m \times k$ matrix of constants and $c$ is an $m$ vector of constants. Le...
It is well documented that people are not very good at generating random sequences. However, is it possible that two people, working independently, could generate randomness together? Consider the following two examples: Example 1 My wife and I can't decide where to go to dinner, and we've narrowed it down to two optio...
How does adding interaction term in the model adjust for it or why do we need to add interaction? I am working on logistic regression model with treatment and race as predictors. I have added interaction of treatment and race in the model. Are we accounting for variability caused by the interaction term here? I will...
Say I have 3 independent variables (x1..x3), all highly correlated with a dependent (Y). I'm looking to determine if x1 changes by a certain amount, how much Y would expected to change. Also, looking to say if x1 AND x2 change by a certain amount, how much Y would expect to change. Would covariance assist with doing th...
I'd like to optimize the flow of materials through a network. There are vertices (i.e. physical locations) and edges (i.e. links between the physical locations). Inputs: locations transactional data: historic start-time, end-time, and cost for material movements between the locations loss function (e.g. time, cost) O...
curve(dnorm(x,90,10),from=60, to=120) I need to make some vertical line in the x line that in number 70 and 110. How should I do it?
Suppose $X_1$ and $X_2$ have the joint pdf $$f_{X_1,X_2}\left(x_1,x_2 \right)=4x_1 x_2,\quad\text{for}\quad 0<x_1<1, 0<x_2<1$$ From that I found the joint pdf of $Y_1=\frac{X_1}{X_2}$ and $Y_2=X_1 X_2$ to be $$f_{Y_1,Y_2} \left(y_1,y_2 \right)=2 \frac{y_2}{y_1}\quad \text{for}\quad \left(y_1,y_2 \right) \in \mathcal{T}...
I've been thinking lately that the "importance" of a win in a soccer match depends on how good the opponent is. Let's take the spanish league for example. You have some elite teams like Barcelona FC, or Real Madrid FC who win most of the games and are in other words powerhouses. You also have some other teams which are...
The author in this paper http://www.di.ens.fr/~shervashidze/papers/SISO08lrgc.pdf, on pg 2, first para, top left the author states that In graph classification the goal is to learn a decision rule from training examples {${G_{i},y_{i}}$} where $i$=1, $G_{i}$ is a graph and $y_{i}$ ∈ {${−1, +1}$} is the correspondin...
I'm currently working on some experimental data. The experimental design consists of two treatments. In each treatment, 20 subjects are randomly matched in pairs and participate to a simple game. The game is repeated for 20 periods. In each period, the pairs are randomly re-matched and a single decision is made. I esti...
Can you please help me understand how is inter-cluster (between clusters) variance defined? As opposed to intra-cluster variance which is pretty straightforward, I have not managed to found a clear answer myself.
I have a very large (5271159x60) sparse (~2.5%) binary matrix, and I'd like to calculate the cross correlation between each of the columns (sensors) for a series of lags from -10:10, which would give me a 21x60x60 tensor. The naive implementation involves computing the zscore of the matrices at each of the different l...
I am trying to figure out if it's okay to specify cross-level interactions in a hierarchical model with fixed effect predictor variables at both levels using the lmer function, and, if so, how to do it. I have asked a few other people and have heard varying responses, with some saying that I need to use a Bayesian appr...
Consider the following R code: > data <- data.frame( a=c(NA,2,3,4,5,6),b=c(2.2,NA,6.1,8.3,10.2,12.13),c=c(4.2,7.9,NA,16.1,19.9,23)) > data a b c 1 NA 2.20 4.2 2 2 NA 7.9 3 3 6.10 NA 4 4 8.30 16.1 5 5 10.20 19.9 6 6 12.13 23.0 As you can see I've engineered the data so that roughly ...
My professor wants me to generate a regression problem based on the following: B is fixed unknown 100,100 matrix, X is random 100,100 matrix and y and noise are a random scalar for every output. He wants me to do this using a loop. For Y= < B,X > + z . I am not sure if I am misinterpreting his instructions since I thou...
My data was a repeated measurement (3-4 measuring times) with one fixed factor (4 doses) and nested (Please find an example below). I would like to ran ANOVA but the assumption of homogeneity of variance was violated for some of the measuring times (e.g. Day1). Transformation of data did not fix the problem, what tes...
Suppose I have n columns in a matrix (example below has n= 4). Is there a test I can check that the rankings over columns are the same? Specifically, if the rankings in column 1 are "similar" to that of column 2, etc etc.. For two columns I can possibly do something like the morisita index but I need n columns and a p...
This is for my honors thesis. I have a large data set, of which I'm sharing only what I call the "Low phosphorus" series: > P0 R N P D.weight 1 r1 0 0 63.8 2 r2 0 0 34.2 3 r3 0 0 24.9 4 r4 0 0 30.4 5 r5 0 0 33.3 6 r1 45 0 24.5 7 r2 45 0 20.1 8 r3 45 0 23.7 9 r...
I was attempting to simulate injection of random points within a circle, such that any part of the circle has the same probability of having a defect. I expected the count per area of the resulting distribution to follow a Poisson distribution if I break up the circle into equal area rectangles. Since it requires on...
I have extremely sparse inputs, e.g. locations of certain features in an input image. Further each feature can have multiple detections (not sure if this will have a bearing on the design of the system). This I shall be presenting as an k channel 'binary image' with ON pixels representing presence of that feature, and ...
I am planning to create a semantic graph by creating an automatic ontology. I want to know which is the best process to do it. Doing social network analysis to create people, relationships, likes, objects etc or Carrying out Named Entiity Recognition, Relation extraction etc to extract people, relationships etc? Can ...
I had data with repeated measurement and nested design. Conventional ANOVA requires strict control on homogeneity of variance and repeated measurement ANOVA requires assumption of sphericity. Multi-level modeling allows greater flexibility as the covariance matrix could be modified and thus, I used Linear Mixed Model (...
In their 2004 paper on elastic net regularization, Zou and Hastie present an efficient method for finding the meta-parameters by folding the $L_2$-regularization component into the OLS problem and solving a modified OLS with only $L_1$-regularization. They then rescale the obtained coefficients to compensate for double...
If I have a factor e.g. sexe with two levels MALE and FEMELLE let's say, using rpart alone I get splits that say for example Sexe = Male and then a yes no split. However using rpart with caret I get a weird renaming of variables: this also causes a problem with the predict function as now my variable isn't called sexe...
I have a treatment and a control group: both have pre- and post- values (I tested reading speed). I need to know if there are any significant differences between the groups (or if the treatment group has improved compared with the control group). Now I want to apply the Mann-Whitney test but I am not sure if Iy have to...
It is a basic question but I could not find clear answer on my reading. I am trying to find independent predictors of Infant.Mortality in data frame 'swiss' in R. > head(swiss) Fertility Agriculture Examination Education Catholic Infant.Mortality Courtelary 80.2 17.0 15 12 ...
What is the distinction between $R^2_{pop}$ – the population R-squared $R^2_{out}$ – the out-of-sample R-squared $R^2_{c.v.}$ – the squared population cross-validity coefficient ? These objects have been mentioned in earlier posts here, here and here. I would appreciate an intuitive explanation. Ideally, some cou...
I am trying to determine the correlation between an observed and theoretical set of data. Both sets of information are in the form of a table of deflection against time. Both samples have the same start and end time. The problem i am encountering is with uneven samples sizes. for my theoretical result i have 300 result...
Say an estimator converges with probability one and at the same time its variance goes to zero in the limit. How is it different than an estimator that converges with probability one but its variance does not go to zero? Does that achieve sure convergence? I am wondering what difference it makes.
If someone is investigating differences in means between 2 groups, does it matter which we consider to be the IV and the DV? For example, can I use a t test to examine the difference in the age of children who have attained a certain developmental milestone and those who have not? Imagine the IV is milestone (Yes/no) a...
I have an ANCOVA model shown below (fit) where I calculated the mean difference between two groups while controlling for another variable (x). For the adjusted mean difference (288.72), I'd like to calculate a Bayes Factor for two hypotheses: adj. mean difference = 0; adj. mean difference > 0. I tried doing this by u...
I have seen several questions in stackoverflow regarding how to fit a log-normal distribution. Still there are two clarifications that I need known. I have a sample data, the logarithm of which follows a normal distribution. So I can fit the data using scipy.stats.lognorm.fit (i.e a log-normal distribution) The fit is ...
I have transformed my explanatory variables to a normal distribution as these variables include, proportions (logit transformed) and non normally distributed data (various transformations). The dependent variable is a count, hence I am using "family = poisson". I have read in some sources that it is uneccessary to tr...
i've been trying to come up with a way to measure attack and defense of a team in terms of goals scored and received. The only thing that has crossed my mind is to divide the number of goals scored/recieved by the total number of goals scored/received. So if for example a team scored 10 goals in the last 5 matches and ...
How can I calculate standardized central cross-moments for 2 time-series? The 4th-order standardized central moment, kurtosis, is; kurt = mean((x-mean(x)).^4)./mean(x.^2).^2; It should be something like the kurt, for x and y. I also want to know the 3rd order cross-moment (something like skewness). I am trying to wr...
I don't quite understand how to use the estimator function and the variance function and plug in the sample mean. I expected that we would plug in the value $\bar X - 1.645s$ into $E(s)$ and $V(s)$. This seemed like it would give us $c4 \times \sigma \times (\mu - 1.645)$, however this did not work for the second one a...