instruction stringlengths 9 38.7k |
|---|
Given a series of values,
3.00,5.00,7.00,4.00,7.00,5.00,22.00,4.00,6.00,7.00,9.00,6.00,4.00
I need to 'rescale' the data so they have new values with a mean of 0 and a standard deviation of 1. Having followed a number of examples for the equation, I get the following,
Mean 6.85
StdDev 4.85
The standard deviati... |
I have time-series data, from which I would like to detect anomalies. I have Z-scored the time-series, and there is two points which clearly deviate from the baseline. Their Z-scores are 3 and 6, respectively. So, I can say they differ significantly from the baseline. Can I also say that the two anomalies themselves di... |
For example if we have two options to use non-linear classifier like SVM with kernel or use linear classifier like linear SVM with data preprocessing like some non-linear dimensionality reduction which one is better?
In other words why we should use a complicated classifier if we can do some data preprocessing (or "pro... |
I'd appreciate any insights or references to research regarding the following:
Suppose you have a discrete metric space with a probability distribution on it. also, suppose that I'm given a number $k$. My problem is finding the highest probability ball.
A ball is the set of all points whose distance from a given point... |
My understanding is that if you (1) have a sufficiently large test dataset, and (2) your models have the same likelihood (noise assumption), then you should compare/select the model likelihood (or log-likelihood) on the test data, unadjusted by AIC/BIC/DIC/etc.
Is there any justification for adjusting your likelihood f... |
I'm writing my diploma thesis about the interaction between warehouse management and data mining (specifically, association rules).
I started the topic data mining by considering Boolean association rules, created by the a-priori algorithm (for example, market basket analysis). Then I found out about quantitative assoc... |
This is not a homework question, just sort of a mental block. Why do statistical analyses require clearly defined variables as response/dependent variable? Why can't my response variable be something [vague] like "Likely High Value Customer" or a yes/no question?
|
I was reading TPE by Lehmann andCasella where I came through this example:
If $X\sim\text{Bin}(n,p)$ and we consider a $\text{beta}(a,b)$ prior for $p$. The Bayes estimator in this case is $\frac{x+a}{n+a+b}$. If $a=b=0$, this estimator is $x/n$, but the prior density in this case is improper. The posterior density is ... |
in order to understand the output of one of my lme models I produced a little simpler example using lm (so no random factor). I noticed that my fitted model does not seem to fit the data correctly, as the predicted y-values deviate strongly from the given values when using predict(lm).
My data set is:
a = c(rep(1:10, 4... |
This is a long post so I hope you can bear with me, and please correct me where I'm wrong.
My goal is to produce a daily forecast based on 3 or 4 weeks of historical data.
The data is 15 minute data of the local load of one of a transformer lines. Im having trouble finding the model order of a seasonal ARIMA process. ... |
Given a mathematical model $Y\widetilde Y(X_i)$, where $X_i=x_i^*$ represents a particular point estimate for input variable $X_i$. In sensitivity analysis, Sobol indices explain the importance of an input factor $X_i$ on the variance of the output $Y$ such that:
\begin{equation}
S_i=\displaystyle \dfrac{V_{X_{x \sim i... |
I am confused about some aspects of spatial autocorrelation usind survey data (survey which is repeated every year). I have data from 1991 to 2012 with sampling region pretty consistent every year. I am studying the species distribtion of two species in the area, in this goal I used binomial GLM. After running the GLM,... |
I am not sure if my title reflects what I am attempting to ask. Let me elaborate my question. I want to classify an observation/feature into one of two categories ($A$ and $B$) based on frequency of occurrence of feature in each category. For example, a particular observation occurs $x$ times in category A and $y$ ti... |
These concepts have always confused me. In terms of DOE, I think the problem arises when the design is "unbalanced". So,
what are their differences?
Why do you choose one over the other/reasons?
In one-way ANOVA, does using (can you?) LS means makes sense or LS means is only for two-way ANOVA and onwards?
For ex: In... |
When fitting (stationary) time series models, such as ARIMA models, the standard approach is to minimise the one-step ahead forecasting error, which is equivalent to performing maximum likelihood estimation of the Gaussian likelihood.
Sometimes however, the main purpose of a model is for it to make good predictions on ... |
I have a data set of cell phone customer information data with twocolumns. The first column contains the certain category that an account falls in (either A, B or C) and second column contains is binary valued for whether that account has cancelled. eg
A | cancelled
C | active
B | active
A | cancelled
what I want t... |
I am facing the following problem: I have a training sample and estimate a model on that training sample. My model is simply OLS: $y_t = a + \beta x_t + \varepsilon_t$. The model is estimated on points in set $t\in T$. The training sample contains well behaved data. When forecasting with this model out of sample, there... |
I'm trying to compare regional batting averages year over year (using comparable time periods i.e. August of each year) but I'm running into what I think is a sample imbalance. This is an extreme example, but say hypothetically a player goes 10-for-10 one day (double-header) and on the same relative day the next year,... |
I'm trying to approximate a variable 'lag', measured in days until a certain event happens. My dataset is balanced in that, for half of the observations, 'lag' is not a number (ie. the event never happens).
How do I transform this variable in a way that doesn't introduce noise (ie. setting it to 0)?
|
I have a question about the confidence interval of the estimator in a multiple linear regression. Here below you can find my model:
lm(formula = GDP.per.head ~ PISA.math + Quality, data = Dataset)
Residuals:
Min 1Q Median 3Q Max
-23954 -5958 -2253 1754 36712
Coefficients:
Esti... |
I understand that scalar invariance, in the context of Structural Equations Modeling (SEM), is having the intercepts for observed variables loading on the same latent variable be invariant across multiple groups. However - what does scalar invariance mean substantially? What are its implications?
|
Let's say I have the following lagged data frame and am trying to predict income for 9/10 using data from 9/09.
dat = data.frame(main_date=c("09/01/2013","09/02/2013","09/03/2013","09/04/2013","09/05/2013","09/06/2013",
"09/07/2013","09/08/2013","09/09/2013","09/10/2013"),
... |
Suppose I have a dataset where each individual is measured at three timepoints on a variable (we'll call it disease status). What I want to do is estimate the relationship between time and disease. Obviously a mixed model is appropriate, where each person's individual regression line is modeled then aggregated. However... |
Two Groups, A & B, undergo same intervention. Group A (n=20). Group B (n=10). The only outcomes are symptomatic or asymptomatic. After the intervention, 4/20 people in group A are asymptomatic. In Group B 6/10 are asymptomatic. Is this statistically significant (i.e. p <0.05).
|
I'm confused as to the correct formula for approximate degrees of freedom to use for Welch's t-test. Satterthwaite's (1946) formula is the most commonly cited formula, but Welch gave an alternative in 1947. I'm not sure which is preferable (or used by most statistical software).
Satterthwaite's formula:
$$\frac{\left(s... |
If we have $n > 1000$ units to sample from, how can we estimate the number of subsets of a certain size, since the number is too much for R to handle?
What I mean is, if I can't use choose(1000, 10) to get the total number of subsets of size $10$, is there a way to estimate it?
|
When using natural (i.e. restricted) cubic splines, the basis functions created are highly collinear, and when used in a regression seem to produce very high VIF (variance inflation factor) statistics, signaling multicollinearity. When one is considering the case of a model for prediction purposes, is this an issue? It... |
In a conversation about Marsaglia's Multiply-With-Carry pseudo-random number generator and its potential use in generating random data for statistical purposes, someone said:
There is no statistical simulation ever done that will use $2^{256}$ outputs from such a generator.
Is that correct?
If "yes" — Is there an e... |
I've been experimenting with the rgl library to draw 3d plots of some linear models. The package works really nicely, but I have a question on the math behind how one draws a plane (using planes3d) that shows the 'fit' (predicted values ) of the linear model, for a model with 2 parameters.
The R package documentation s... |
I have a similar problem area as mentioned Trajectory Clustering: Which Clustering Method? . As per suggestion to use dynamic time warping for aligning the time series, are there any differences in performance when a data is clustered with k means and Gaussian mixture model (GMM) or in general when to employ k means an... |
Can anyone help me understand the Pearson correlation formula?
the sample $r$ = the mean of the products of the standard scores of variables $X$ and $Y$.
I kind of understand why they need to standardize $X$ and $Y$, but how to understand the products of both the z scores?
This formula is also called "product-moment... |
Maybe this question is simple, but I really need some help. When we use the Maximum Likelihood Estimation(MLE) to estimate the parameters, why we always put the log() before the joint density? To use the sum in place of product? But why? The wikipedia said it will be convenient. Why? Thank you.
|
I'm reading an article about Direct Linear Transformation which processes data using SVD, and the data set is standardized so that it has zero mean and unit standard deviation (n.b., some people call this transformation 'normalized').
In that article, it is said that for numerical reasons, the data set has to be normal... |
I do not understand Which is more accurate, the hit-and-miss method or the improved Monte-Carlo method?
Here it is written that that the hit-and-miss has a higher variance but they showed (variance of improved Monte-Carlo) - (variance of hit-and-miss method) > 0
$$\sigma^2_M-\sigma^2_H>0$$
Doesn't it imply improved Mo... |
I have a situation in which that there are 4 cases with a condition per 1000 people surveyed (binary). I am interested in performing a logistic regression to determine the risk factors (binary). Is it possible to perform such an analysis with SPSS?
|
Now I am using MATLAB, and found one of its function named crossvalind, which provides lots of methods for cross validation, including some that I wasn't able to find on this site.
[TRAIN,TEST] = crossvalind('LeaveMOut',N,M), where M is an integer,
returns logical index vectors for cross-validation of N observations by... |
if there is no plausible sampling frame available for surveying, how will one obtain a representative sample of size n.
In the textbooks they use SRS, stratified, cluster, and systematic but these all imply a sampling frame is available like a telephone book etc.
So say for example, there is a website selling old cars,... |
Can anyone answer the question or direct me to the proper resources - ESPECIALLY for sampling error effect on the coefficients? How would the coefficients be affected if the independent variables came from one data set while the dependent variable came from a different data set?
|
How can I estimate a model where
Y ~ X1 + X2 + X3
X1 ~ Z1 + Z2
X2 ~ Z1 + Z2
X3 ~ Z1 + Z2
where Y may/may not be correlated with Z1 and Z2. Is there a R procedure that I could use to estimate the model.
Thanks a lot for your help.
|
I'm taking a class on R and I cannot get the professors code to work. I am trying to do a simple linear model and I run this code:
ozone<-read.table("http://www.ats.ucla.edu/stat/r/faq/ozone.csv", sep=",", header=T)
fit = lm(ozone~.,data=ozone)
summary(fit)
Which keeps giving me the following error:
Error in model.f... |
I use escalc() function from metafor package to calculate various effect sizes or outcome measures (and the corresponding sampling variances) that are commonly used in meta-analyses.
In most of articles are tables of mean and standard deviation which can be easily used by escalc().
# for example:
# group A == mean=7; s... |
Apologies if this is a very basic question.
If we have data that are not normally distributed (e.g. skewed, Shapiro-Wilk test is significant) and we resort to rank-based methods (e.g. Wilcoxon Signed Rank test), then do we need to be concerned with outliers?
Imagine, for example, we plot the data using a boxplot and a ... |
I am learning Gaussian kernel SVMs recently. I have to choose the parameter $\epsilon$ for Gaussian kernel,
$$k(x,t)=e^{-\frac{\|x-y\|_2^2}{2\epsilon}}.$$
I try to find the answer in literature. I found some to analyze the parameters like 'A User's Guide to Support Vector Machines' (PDF). I really want to analyze these... |
I would like to test a linear hypothesis in a median regression model similar to example below.
require(AER);require(car);require(quantreg)
data("CPS1985")
#Regular linear model
model.lm <- lm(wage ~ ethnicity + age*gender,CPS1985)
summary(model.lm)
linearHypothesis(model.lm,"age + age:genderfemale = 0")
#Quantile re... |
Let the data matrix $\pmb X$ be a collection of $n$ $p$-vectors $x_i\sim\mathcal{E}_p(\mu,\pmb \varSigma)$ where $\mathcal{E}_p(\mu,\pmb \varSigma)$ is a square integrable, continuous elliptical density on $\mathbb{R}^p$ with location vector $\mu$ and scatter matrix $\pmb\varSigma$ and $n>p$. Then let $\{S_m\}_{m=1}^M$... |
In Estimation and Inference in Econometrics, by Davidson and MacKinnon, p.671, they claim that $R^2$ from a regression of $Y_t$ on $X_t$, where both time series are trend stationary, tends to 1 as $n$ tends to infinity. Can anyone please provide a mathematical answer to this? The models for $Y_t$ and $X_t$ are: $Y_t = ... |
I'm working on merging records from several databases that cover the same entities, but share no reliably deterministic fields, leaving us with fields such as name and address to resolve identity. In reading about this problem I came across the Fellegi-Sunter statistical method for resolving record linkage.
I can't te... |
I'm new to clustering. recently I've implemented agglomeration clustering, I understood that we merge clusters that have distance < Threshold.
But how to fix the Threshold?
How to choose right method for finding distance [euclidean, manhattan,..]?
How to evaluate my clusters?
|
Say I have three independent events with a probability of .25, .5, and .75 chance success for the individual events. How would I determine the probability that 0, 1, 2, or 3 of the events are successful?
|
I am investigating a potential interaction between a blood marker and a gene. I have built a cox model with two binary predictors and an interaction term for this purpose.
I want to graphically display (in a forest plot) the effect of the genotype in the two subgroups defined by the marker. The effect of the genotype i... |
I am currently trying to undertake a linear regression analysis in SPSS and I have come across some difficulties. My data does not show linearity and therefore is violated. I have transformed both predictor and outcome variables numerous ways but this does not change the outcome of linearity. I have read the next step ... |
Say I have two vectors of length N,
x = [1, 10, 12, ..., 5, 6]
y = [2, 11, 10, ..., 7, 9]
I compute the Kendall tau-b rank order correlation on these two vectors and extract a p-value. If I take the same two vectors, but add additional "null" information to the end of each,
x = [1, 10, 12, ..., 5, 6, 0, 0, 0, ..., 0]... |
I have performed a calculation that a sample of records will contain at least 1 defective record assuming replacement. There are 20,000,000 records in the population, 7,000 are defective, and I will be taking 200,000 samples.
Assuming replacement, the probability that at least 1 of the 200,000 samples will contain a... |
I am attempting to cluster data using Mclust. The data is originally from a dissimilarity matrix, transformed via multidimensional scaling in R (MASS::isoMDS). As I experiment with different numbers of dimensions, I have found that with larger numbers of dimensions (~50 relative to ~10 for the smaller values tried) cer... |
I have the sampling variance of the sample mean: $V_1=\frac{1}{N-1}\sum_i (x_i-\bar{x})^2$. Now if the largest observation is removed, I have a new variance, $$V_2=\frac{1}{N-2}\sum_{i=0}^{n-1} (x_i-\bar{\bar{x}})^2$$ where $\bar{\bar{x}}$ is the new (reduced) mean of the $N-2$ observations.
Depending on the data, I co... |
I understand what a Posterior is, but I'm not sure what the latter means?
How are the 2 different?
Kevin P Murphy indicated in his textbook, Machine Learning: a Probabilistic Perspective, that it is "an internal belief state". What does that really mean? I was under the impression that a Prior represents your internal ... |
I am supposed to extract a bunch of "generally useful" features from a piece of text. Use cases vary, but one could be text categorization.
One thing that springs to mind here of course is the length of a text. But how can I encode this into a feature (or a set of features) which is supposed to have values between 0.0 ... |
Lets say I have two or more sample populations of n-dimensional continuous-valued vectors. Is there a nonparametric way to test if these samples are from the same distribution? If so, is there a function in R or python for this?
|
I have a dataset that contains a few hundred transactions from a three suppliers operating in 100+ countries over a three year period.
We've found that the country of sales is not a significant factor in the prices achieved (the products are more or less global commodities). All of the prices have declined significant... |
I've got an algorithm which assigns a score to a list of individuals (nodes). I want to discover which nodes received a statistically significant score. So I "randomized" the algorithm in order to obtain 100 random rankings of the same individuals. Now I've got my 100 rankings (Original + 100 Random). How can I check w... |
I faced an estimation problem of compute the mean of a random variable (rv) $X$. What I know is the coefficient of variation of this rv, namely its standard deviation divided by its mean:
$$c_{v}(X) = {\sigma_{x}\over \mu_{x}}$$
Surely, I know that the more samples I have, the more accurate my estimation of $\mu$, but ... |
I'm using glmnet package to build a linear regression with $\alpha$ = 0.5, to find best $\lambda$.
xMatrix [44x15000] ($p>>N$), y = numeric[44]
Everything seems to run ok, but $\lambda$ changes its value quite a lot when I re-run the command. Is my approach incorrect?
cvGlmnet <- cv.glmnet(xMatrix, y, alpha=0.5, nfold... |
I have read and heard in several places that Deep Learning Networks take considerably longer to train than, say, support vector/kernel machines, random forests or boosting methods, but they can give better performance.
My question is, what is fundamentally different about deep learning networks in relation to other lea... |
I am working on a binary classification task where one of the input variables takes values in {A, B, C}. A lot of classifiers only take numerical attributes as inputs so I was wondering what the best way to do this is. If I just map them to integers like A:1, B:2, C:3, I am worried that this would mean that A is more... |
I'm struggling with interpreting the output from R for a two-way repeated measures ANOVA.
I used m1.emax.aov <- aov(mean_emax_norm ~ (cond5*stride) + Error(dog_id/(cond5*stride)), df3.emg.m1) and the summary tables are throwing me.
I'm used to just seeing a summary table with the main effects and interaction listed onc... |
I'm trying to run a cluster analysis on a large dataset (70k+ observations to cluster) with mixed variables (numeric, ordinal, binary and nominal). I don't think I can create the distance matrix using SAS over the entire dataset. So, I have tried to run a hierarchical clustering using Gower's distance over a subsample ... |
I am creating a mixed model and including a spatial correlation. My data points include lat long values although some are duplicated. I have two questions about dealing with these.
To specify the spatial correlation there must not be any distances of 0. Therefor, I jittered my coordinates to ensure that there were no ... |
I have a population with a mean (mean_1) (which was calculated through many trials and so have a very very small uncertainty in the mean). The standard deviation of the population is 'S'.
I have a second population with mean_2 (which again has a very very small uncertainty) and a standard deviation which is again 'S'.
... |
I have a dataset and I made the QQ-plot against the $N(0,1)$ distribution. The plot is included below.
My statistics is rusty to say the least (meaning what little knowledge I had is now rusted away!) Clearly the normal distribution is not a good fit -- the tails in my data are heavier than those in a normal distribut... |
For a statistics class, I have to prove a result which leads me to the following question. If I can show that it is true, my proof is done. So here is the question.
Suppose that $U: \Omega \rightarrow [0,1]$ is a random variable uniformly distributed on $[0, 1]$ and $X: \Omega \rightarrow \mathbb{R}$ is continuously di... |
I'm modeling the amount of organic content in bird bones (a percentage) in two different conditions and also over two time periods. The design is repeated measures - observations in both conditions and time periods come from the same bone (divided into pieces). I want to test the hypotheses: 1) there is no difference i... |
This question concerns how to implement the following problem in R.
x = rnorm(1000)
hist(x,freq=FALSE)
lines(density(x))
How would you calculate the upper (or lower) tail probability for a given cutoff (e.g. +1) given the density estimate above? NOTE: the following solution isn't good enough. I need the calculation b... |
Background:
I'm assessing the future condition of a product where we have 18,000 units in the inventory.
The product can be assessed as Poor, Fair, Good, or Excellent, based on a condition_index rating that we determine. For example, if for one product, the index reading is below 20, it's considered poor, 20 to 50 is f... |
And yet another for the long list of degrees-of-freedom questions!
Given an i.i.d. sample $x_1,..., x_n$ from an arbitrary real-valued distribution with expectation $\mu$, the sample mean can be written as
$$\bar x = \sum_i \frac{1}{n} x_i.$$
One can say that the degrees of freedom for $\bar x$ is $n-1$, as there are $... |
After profiling my Neural Nets' code I've realized that the method, which computes the weight changes for each arc in the network (-rate*gradient + momentum*previous_delta - decay*rate*weight), already given the gradient, is the bottleneck (55% inclusive samples).
Is there any trick to compute these values in a efficie... |
I'm wondering what are some good approaches for analyzing trials where non-responders are dropped out at some set point. This is not my field, so I may be unaware of standard things!
Let's say there are 100 patients, divided 50/50 into treatment and control groups (given by an indicator variable Trt). We are measuring ... |
I have a dataset which I am not sure how to analyse.
The dataset came from the following experiment: I grew plants (2 different types) and measured their height at different time point (each plant was followed individually). I had in total, 3 boxes in which I grew the plants and, in each box, 3 plants of each type. I ... |
I use the plsr formula in R and the oscorespls algoritm for analysing my datasets. The datasets are characterized by relatively few number of observations (22), one response variable and different numbers of predictors (from only analysing 4 predictors and upwards). However, it is difficult to choose the number of comp... |
I am an ecologist that has counted 11 different species of herbivores in about 110 blocks of two habitat types over 18 months, and I am interested in predicting the density across the study area from the model I hope to make. The approach so far is to build a spatially smoothed GLM, accounting for the over-dispersion w... |
I have a 7 points dataset that looks like this:
dates <- as.Date(sprintf('2011-01-%s', 15:21))
vals <- c(0.05816136, 0.31020050, 0.45542547, 0.52401006, 0.56796386, 0.59687058, 0.61741189)
dat <- data.frame(date=dates, val=vals)
plot(dat$date, dat$val, type='b')
The plot is given here.
I'd like to create a predict... |
I have applied ANOVA on 3 independent groups of unequal sample sizes. I doubt that the ANOVA result are showing Type 1 error because of heteroscedasticity in data points (checked using F-test as well as Bartlett's test). I want to know is there any other good statistical method to solve this problem other than the t-te... |
Background: I have an $n \times m$ matrix with count data. The rows contain $n$ semantic categories (in my case 19). Each column contains 10 entries and each entry is assigned to one row category (row). The row margin totals give an estimate of the relative occurrence of each category (row).
| c1 c2 c3 ... c1... |
These past few weeks I've been studying statistics more intensely than ever before but I do have some more advanced background in other fields of mathematics such as linear algebra, numerical analysis, differential equations, linear regression (and similar interpolation techniques such as using an orthogonal basis func... |
I'm looking to calculate the standard deviation of a fixed-odds betting proposition. The bet pays 5/6 for a win and you lose your stake for a loss. For a bet of 100, a winner pays 83.33 (and the stake is returned) and a losing bet pays -100. The probability of winning is evens (or very close to evens).
I'm uncertain ... |
I'm looking at a language at time X and Y. I identify 20 changes between time X and Y. The question is what the best account is for those changes. Theory 1 says it's all due to "external factors", and is able to account for them all in that way: 20/20. Theory 2 says that some of the changes (let's say 5) could also be ... |
The paper is:
van den Brink, P.J. & ter Braak, C.J.F. (1999). Principal response curves: Analysis of time-dependent multivariate responses of biological community to stress. Environmental Toxicology and Chemistry, 18, 138-148.
The example data used in the paper:
spdta <- structure(list(`Species 1` = c(100, 100, 100, 10... |
What is the term $K$ in Akaike information criterion?
The AIC is defined as $2K-2log(L)$, where $L$ is the maximized value of the likelihood function for the estimated model.
On the internet, I found three competing candidates:
Number of parameters + error term (for simple linear one-predictor model, intercept, slope ... |
By "generalized", I mean the circumstance where I have more than 2 periods of time and 2 treatment groups whereas the typical D-I-D model involes just 2 periods, 1 treatment group and 1 control group. Moreover, an individual may jump between these treatment groups, say some observations may fall in treatment group A i... |
I have a few questions about doing a linear mixed-effects model in R using the package lme4.
I have reaction time data with 3 fixed factors and random effects for subjects and items. I want to have a "maximal" random-effects structure as recommended by Barr et al., 2013 (J Mem Lang 68, 255, PDF).
I've performed the fol... |
My problem is as follows: I drop 40 equal balls at once from a certain point, a few meters over the floor. The balls roll, and comes to a rest. Using computer vision, I calculate the center of mass in the $X$-$Y$ plane. I have both large and small balls, heavy and light, dropped in separate experiments. Each 40-ball dr... |
Using R and ggplot, I would like to plot my output variable with one of my predictor variables adjusted for the other variables in the model. (I'm asking this question here, because I don't actually know if this is statistically a good idea! Please let me know if not!)
A model using dtcars data (nabbed from here).
mod ... |
I am trying to understand if newspaper ads have an effect on the number of visitors to a museum. There are two main newspaper the museum advertises on. The ads are in different size. What I've done is I have put in a column the visitors count for that month and then created a series of dummy variable, one for each ad s... |
If I have a time series of Xt observations. I convert them to returns by:
Rt = Ln(Pt) - Ln(Pt-1).
I then calculate the 20 period moving average and subtract from the Return to find the de-trended return DRt:
DRt = Rt- MA(Rt)
Lastly I calculate the 20 period Moving Average of the de-trended return and calculate the st... |
It is apparently the case that if $X_i \sim N(0,1)$, then
$X_1 X_2 + X_3 X_4 \sim \mathrm{Laplace(0,1)}$
I've seen papers on arbitrary quadratic forms, which always results in horrible non-central chi-squared expressions.
The above simple relationship does not seem at all obvious to me, so (if it is true!) does anyone ... |
A recent reporter indicated that waiters and waitresses at casual dining restaurants make an average of $\$100$ per night in tips with a standard deviation of $\$15$. Maureen works in a casual dining restaurant and doesn't think this is correct. She feels she makes much less than this in an average night. Over the next... |
I am wondering if prediction interval and credible interval evaluate the same thing.
For instance with a linear regression, when you estimate the prediction interval of a fitted values, you estimate the $(1-\alpha)\%$ limits of the interval in which you expect your value to fall. Conversely to a confidence interval, yo... |
I have been trying to learn and apply ARIMA models. I have been reading an excellent text on ARIMA by Pankratz - Forecasting with Univariate Box - Jenkins Models: Concepts and Cases. In the text the author especially emphasizes the priciple of parsimony in choosing ARIMA models.
I started playing with auto.arima() fun... |
how the folds in cross validation of libSVM are done?, I mean, the splits are done aleatory? for example if I have 100 data and it is 4-fold then when it is an aleatory folding then can be splited like this?
20-45 : fold1
45-70 : fold2
70-95 : fold3
95-20 : fold4
or it make the folds always starting from the first o... |
Trying to figure out a way to balance small samples. Comparing ratios received from a survey, but sometimes I will have 25 survey responses and sometimes I will have 1. The ratios I look at might be the same but I think I need to take into consideration that one ratio is based on 25 surveys and the other is based on ... |
I am developing a method to do something with permutation testing. I have two permutation / randomization schemes and do not know which one is better than the other. Can I find the confidence interval for each permutation scheme? If so, is the one with the narrower confidence region better?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.