instruction
stringlengths
9
38.7k
Several types of t-test exist: standard version of the Student t test, Welch t-test. Standard version of the Student t test assumes equal variances for two populations, but the formula for t-test indeed takes account of each standard variances (S1, S2). If equal variances needed to be satisfied in t-test, then we don...
Let me explain more about my question: I have collected 2000 data as the following: age sex education residence music young male Primary_school east mixture middle-agee female Primary_school north mixture young female Bachelo...
Suppose the expected return in $t+1$, conditional on all information available at time $t$ is given by $$ E_{t}[r_{t+1}] = r + x_t, $$ where r is a constant and $x_t$ is observable at time $t$. $x_t$ follows an AR(1) process, $$ x_t = \phi x_{t-1} + \xi_t, \qquad \xi_t \sim (0,\sigma).$$ Is there an easy way to get to ...
I have dataset(50 observations): head(cars) speed dist 1 4 2 2 4 10 3 7 4 4 7 22 5 8 16 6 9 10 I want to build two models(second order polynomial and simple linear model) and compare their quality. lm1 <- lm(cars$dist ~ cars$speed) summary(lm1) Coefficients: Estimate...
In a non-random control group study of teachers, I find that treatment and control groups have rather unequal baseline scores (of their self-efficacy). Despite this, there are interesting interactions between the group membership and intervention dosage. In fact, interaction plots show that the treatment group receives...
I am currently doing a multiclass classification task on sequence data and am using tf.contrib.crf.crf_log_likelihood to compute sentence level log-likelihood values. In particular it implements a linear chain CRF, where the likelihood values are calculated by summing over the unary and binary scores and normalised by...
Consider a factorial design with two treatments A and B. Four possible cases are: administer none of them, administer A, administer B and administer both. By introducing indicator variables $I_A$ and $I_B$ specifying whether treatment A or B, respectively has been administered, we define following linear model for the ...
Suppose that I have a data set of three variables, Calcium, Iron, and Uranium. Suppose also that I run PCA and obtain the following principal components: $$\begin{array}{cccc}&PC_1&PC_2&PC_3\\Calcium&0.6729&0.1021&-0.6771\\Iron&0.5331&0.2554&0.5402\\Uranium&0.1123&-0.8007&-0.0432\end{array}$$ The first PC shows Calcium...
The goal of my meta-analysis project is to combine proportions from studies without a control group. In Practical Meta-Analysis, Lipsey and Wilson mentioned that the logit transformation should be used when proportions are less than 0.2 or more than 0.8 instead of using raw proportions. But they didn't mention the doub...
I'm conducting a study where i am evaluating valuations of companies written by students in their master theses'. In these papers they are giving a target price for a company/stock. One of the things i'm trying to do is figuring out whether students are "cheating" by adjusting their target prices towards analysts conse...
So, let's say we're building a decision tree with 2D data. Something like a set of X-Y pairs, and two classifications. (think "petal width vs sepal width classifying to setosa vs virginica" like this: http://cogmaster-stats.github.io/python-cogstats/auto_examples/plot_iris_analysis.html) I feel like I could say spli...
From the context of bird surveys (how many breeding bird territories overlap a circular sampling area), is there a more suitable distribution to use, rather than poisson? In this case, a poisson distribution is commonly used to describe the distribution of counts over various sampling points. My issue is that poisson r...
Background In reading a book chapter on Bayesian Linear Regression, I came across a general statement by the author that: "The value of the intercept ($\alpha$) is frequently uninterpretable without also studying any ($\beta$) parameters. This is why we need very weak priors for intercepts, in many cases". Question I r...
Using Python's pandas, sklearn, and stats models API, I have trained a logistic regression on a training dataset that tells me whether or not a particular purchase (based on gender, and other features) was fraudulent. I held out a test set, and under a logistic regression all datapoints are predicted to be within %20 p...
I'm rather new to R and statistics. I'm analyzing intonation curves (time, fundamental frequency), and I'm interested in comparing pitch curves of different speakers. I am particularly interested in the shape and range of the curves. Do you think correlation is the way to go? Do you know of any other techniques to anal...
So I have some smoking data and have been trying to model the decay of methylation signals upon smoking cessation. To do so I have reassigned ~1038 sample as either smokers (1) or non-smokers (2) based on smoking status and time since quitting. Where at smokers are current smokers and former smokers quitting < t years...
I have a dataset from 2002-2015 from a fish market next to a floodplain in southern Africa. We collected data on fish species, length and price from 5 randomly selected vendors every two weeks. The reviewers suggested we use a time series analysis to see if there is a correlation between species abundance and or lengt...
In soft margin svm, we solve the following quadratic programming problem. $$ \text{maximize}\ \sum_{i=1}^N \alpha_i-\sum_{i=1}^N\sum_{j=1}^N\alpha_i\alpha_jy_iy_jX_i^tX_j,\\ \text{subject to}\ \sum_{i=1}^N \alpha_i Y_i=0,\\ 0\le \alpha_i\le C, 1\le i\le N. $$ $X_i$ is a vector predictor and $Y_i$ is a binary 1, -1 res...
This is a residuals plot of $y_{pred}$ - $y_{true}$ and $log(y_{true} + 1)$. I'm under-predicting the higher values of $log(y_{true} + 1)$. Has someone seen this pattern before with a log-linear model? I'm thinking I'm missing an independent variable, but not quite sure exactly how to correct the issue. Any guidance w...
I'm trying to classify a vector of 0s and 1s of arbitrary length. For that I'm sliding a window over the vector and use the subvector as input for a deep neural network. I would now like to improve my prediction by taking the last two or three predictions into account (and maybe the next few as well; see figure below)...
I have simulated a set of probabilities $\{p_n\}$ by the hit-or-miss Monte Carlo method. Specifically, my program checks whether or not an $n\times n$ matrix has a certain feature or not; say that, out of $N$ trials, $k_n$ have this feature (success). Then $p_n=k_n/N.$ Question: Now, I want to find the uncertainty (or...
I am interested in identifying factors that lead to long-term survival among patients undergoing surgery. My sense is that such factors and their magnitude of effect can be identified using available Cox model methods and time-dependent covariates. However, it has been suggested that the sample of patients be modified ...
Assuming three variables are exactly related as: C = A + B Is it reasonable to run a logistic regression including both C and A as independent variables? If it is reasonable, how would the estimate for each be interpreted? For example, for some binary outcome, I'd like to estimate the effect of the number of cardiova...
Does significance level of individual coefficients in ARDL really matter? Some papers dont mention the p-values of individual coefficients while others retain non-significant variables in their final models. I have asked this question in other forums long time ago, but no answer yet. Wishing a good answer. I have perha...
I'm trying to do ROC analysis on my dataset. Namely, I'm trying to find the optimal set of parameters for a predictive model. Given I just use discrete classifiers, all I have are points in the ROC space. reading "An Introduction to ROC Analysis" by Fawcett (2006) tells that "Informally, one point in ROC space is bet...
I have linear model lmB <- lm(vsnIntensity ~ Donor + Condition ,data = check) Donor and Condition are both factors and vsnIntensity is continous The model in mathematical notation, (I think) is $$ y_{ij} = \alpha + \beta_i + \gamma_j + \epsilon_{ij} $$ Where $\alpha$ is the intercept, which is the mean of the refe...
Let V have exponential(a) density, and let W be independent of V with gamma(s,b) density. Find P(V>W). What I did for this problem is I integrated the conditional probability P(V>W|W)f(w)dw from w = 0 to infinity, where f(w) represents the density function of W. After integrating I arrived at the answer b^s / (a+b)^s. ...
If I want to test the accuracy of a predicted coefficient based on my data set $N$, then I create a bootstrap sample by sampling from by data set with replacement $N$ times, and then refit my model and calculate the estimate once again. Why do we sample WITH replacement?
I have noticed an inconsistency in the formula for the Mann-Whitney U test. Sites like wikipedia often report it as $$U_1={\frac{n_1(n_1+1)}2}-R_1$$ However, the original paper by Mann and Whitney reports it as $$U_1=n_1n_2+{\frac{n_1(n_1+1)}2}-R_1$$ What difference does $n_1n_2$ make? Or are these different tests?
I am building binary classification models to fit my data and do prediction. Some of the variables have many levels, like the workclass variable below. So I am considering combine some levels into one. For example, I can combine "Federal-gov", "Local-gov", and "State-gov" into one level called "gov". However, I have tw...
Based on this link we can calibrate logistic regression (besides other classification models) output probabilities. What is the procedure and steps to do that? I thought that it is only for other classificaiton models such as SVM or random forest.
I'm wondering how the following two approaches to determining the amount of data required for ascertaining statistical significance are related. Assume I know the ratio of the first and second moments of a data sample, and that the population of sample means looks sufficiently Normal such that a $t$-test is valid. The ...
I have two predictor variable of interest - one continuous, and one nominal (lipid profile ratio as the continuous, and cardiac hypertrophy type as the nominal). I also have an outcome of interest - whether a person has had a major adverse cardiac event or not. I was unable to build a survival curve (unusual circumsta...
I want to build do classification to determines if a user will visit another page on the website before logging out. So it's making a binary prediction: last page or not last page. Would variables that are constant between pages (e.g. user age, user gender) add any value to the model or no? I mean, I suppose age and g...
I am trying to come up with a statistical plan for comparing the odds ratio before and after an intervention (paired samples, not independent). What would be the best statistical method for doing this? Should I just look at the confidence interval overlap? Another idea is just calculating change in odds ratio, but I'm...
There exists a linear trend in an otherwise non-linear set of time-series data. The linear trend can be identified using a change-point (or breakpoint for structural changes) analysis method. This method detects a change in the structure of a series. The structure is a linear regression model. However, the identified b...
I have collected cross-sectional data for my dissertation using a survey. I am extending the TPB to determine if an additional construct predicts intention and behavior. I am very confused now I come to analyze the data. Researchers doing similar have added the construct into their SEM model and discussed whether the v...
What it the distribution for square root of sum of squares of two independent normal distributed random variable? Assuming they have zero mean and same non-zero variance. Suppose $X$ and $Y$ ~ $N(0,\sigma^2)$, what is the distribution for $Z = \sqrt{X^2+Y^2}$? Looking for any feedbacks or comments.
I was trying to train a Neural network ReLus to learn to learn to predict boolean functions (with +1, -1 instead of 0,1). In particular I tried the parity function which is just the product function of its coordinates. i.e. $f(x) = \prod^n_{i=1} x_i$ Just for fun, I tried training the network with the l2 loss (instead...
I'm trying to understand how a skip-gram model trains itself. Using the input embedding we predict the probability of the output word. And then using the gradient of the cost function we slightly update embedding of the output. But also we update weights. So I cannot understand how we simultaneously update weight...
I am ensembling neural networks for my research project. Each network is considered an expert. I am looking for a good algorithm to dynamically weight them, and I am finding all the prior algorithms to be to very mathematically complex. Is there anything wrong with just doing something like this: Percentage of total ac...
The Text I am reading has a question that goes like this : Explain clearly the ideas implied in using arbitrary working origin and scale for the calculation of arithmetic mean and standard deviation of a frequency distribution. The values of the arithmetic mean and standard deviation of the following frequency distribu...
Example 1: $X_1,...,X_n$ is a random sample from $\text{Poisson}(\lambda)$ $T=\sum X_i$ $T\sim \text{Poisson}(n\lambda)$ Consider the test: $H_0: \lambda \le \lambda_0$ vs $H_1: \lambda > \lambda_0$ The rejection region is of the form $T>c$ Let $\lambda_0=1$ and use CLT to choose $n$ so that the power function $\beta(\...
In R, there is a package called mice which multiply imputes a dataset. For my situation, I imputed using the predictive mean matching (pmm) method using a time series that I acquired that details multiple different climate variables like average temperature, relative humidity, precipitation etc. At some point I would l...
I have three I(3) variables and three I(0) variables. I found that I(3) variables are co-integrated and my dependent variable is one of I(3)s. When I tried to build a VECM model in Eviews, Eviews will automatically difference all the variables including the stationary ones. So I am wondering if there is a way I can ru...
My data consist of 3d Cartesian coordinates. As shown in the figure below, there are roughly linear "clusters" of points within these data. How should I approach grouping these data in an automated way? My intuition is that if you rotated each cluster to its principal axis, almost all the variance would be in 1 dimensi...
When discussing AdaBoost, authors in ESL mention that exponential loss minimizer also minimizes binomial deviance. I have trouble deriving this connection. In particular, the book states: Another loss criterion with the same population minimizer is the binomial negative log-likelihood or deviance (also known as cross-...
MLP and its variants can be used to build a reconstruction model such as conventional autoencoders including many variants and GAN, for example. I wonder if SOM can be a candidate to replace the role of multi-layer perceptrons in this manner. The wiki page says 'The goal of learning in the self-organizing map is to ca...
According to theory, R(1), the lag-1 autocorrelation of the residuals from a model fit to a time series of length n, lies in the interval ( z(0.025)/SQRT(n), z(0.975)/SQRT(n) ) 95% of the time when the residuals are uncorrelated and identically Normally distributed. What is the corresponding interval when the residuals...
I evaporate atoms in a vacuum chamber and use a quartz crystal microbalance to measure the deposition rate. Specifically, I measure the resonance frequency of the quartz crystal and use that to calculate the total mass that has been deposited on its surface. I am interested in relatively low rates, so I measure the fre...
The time series data, as shown in image 1, has 3 separate steps connected by increasing data. How do I detect these steps? An easier set of data with one step could be created in R as follows: x <- seq(1,220) y <- c(seq(1,100),rep(100, times = 20),seq(101,200)) plot(x,y) The output is shown in image 2. How would I det...
I have a dataset with three variables, where all variables are quantitatives. Let call it $y$, $x_1$ and $x_2$. I'm fitting a regression model in a Bayesian perspective via MCMC with rjags I done a exploratory analysis and the scatterplot of $y\times x_2$ suggest that a quadratic term should be used. Then I fitted two ...
I am conducting a project where I have to conduct regression on a data set with rather large amount of variables and am in need of some help. To give some context, we are looking at whether certain prognostic variables make individuals more likely to undergo surgical or non-surgical treatment. There are a variety of v...
I'm still new to machine learning and just came across powerful deep learning library, Keras. I've read Keras document and tried few Keras examples on Github here. I've also studied some basic knowledge and concepts of deep learning from several sources but still haven't really had solid understanding in CNN and RNN wh...
I conducted a study in which participants were to do one of three treatment options and then write a test. The intention was to separate the participants based on the option they selected and using a one-way ANOVA, analyze whether these groups were statistically different from one another by comparing test grades. The ...
What are the methods to compare proportions from 2 independent populations i know we can use the z-test or t test for comparing 2 proportions what about Miettinens & Nurimens Liklihood Score test, Farmington & Mannings Liklihood score test, etc. Ive heard of them but not been able to understand them completely and mos...
I'm currently writing a paper. Without getting into too many details, in one section I talk about the distribution of a certain observable of a Markov Process: The tail of each distribution is fit well by a single exponential distribution, but... What I want to be able to say is that the rest of the distribution is n...
Suppose I have about 1.6 million public filings to the FCC supporting or opposing net neutrality. It would be interesting to assign labels like 'pro' or 'against' and also maybe 'hand-written', 'form-letter', 'bot'. I'm willing to hand label a bunch. Example: I support Net Neutrality. I do not support the "Restoring I...
How do I determine, pre-experiment, the minimum size of a control group that would be needed to satisfy the requirements of a two-proportion z-test? $p_i=\frac{k_i}{n_i}$ is the proportion of successes, $k_i$, in group $i$ which is of size $n_i$. This will only be known post-experiment. The size of the test group, $n_...
Lots of articles and threads are saying that 'a rule of thumb' for $k$ of $k$-NN is $k=\sqrt{n}$, where $n$ is the number of samples. I'd like to see which paper or related material first mentioned it.
Consider a hypothetical situation, due to a new teaching method being implemented, I want to test whether there is a significant difference in the proportion of students that have passed a particular exam between two batches. I could use the 2 proportion z test. Are there any other tests I could use to compare two di...
I sometimes attend a large dance teaching event. At this event, students are allocated into groups with other students of roughly the same level through 2 reviews - first a "peer review" that sorts students into roughly the correct levels, then a teacher confirmation review where the teachers assess the groups as a who...
I have price data for similar products in different stores like below productId StoreA StoreB StoreC StoreD 00001 14 10 14 15 00002 35 34 36 40 00003 100 94 90 94 00004 14 14 25 14 00005 11 15 13 10 StoreA is m...
I was wondering which test I should use to compare two proportions in one sample? My research is about white matter hyperintensities (WMH) in migraine compared to tension-type headache. There are three options: only deep WMH (63,6%), only periventricular WHM (6,1%) or both (30,3%). I want to know if there are more 'onl...
I am conducting a age-period-cohort analysis using repeated cross-sectional survey data and a multilevel model approach in Stata, where cohort (birth year) and period (survey year) are modeled as cross-classified random effects. As such, all my data is taken from the same data source (27 waves of the General Social Sur...
I have two non-parametric rank correlations matrices emp and sim (for example, based on Spearman's $\rho$ rank correlation coefficient): library(fungible) emp <- matrix(c( 1.0000000, 0.7771328, 0.6800540, 0.2741636, 0.7771328, 1.0000000, 0.5818167, 0.2933432, 0.6800540, 0.5818167, 1.0000000, 0.3432396, 0.2741636, 0.29...
I'm interested in likelihood $L(\theta | x) = P( x | \theta)$ seen as the function of $\theta$ for a given $x$. I have been reading in books and other posts that $L$ is generally not a probability function (with respect to $\theta$) because it may not integrate to 1 and, moreover, there my be even no $\sigma$-field de...
I understand that there are flavors of (convolutional) neural networks that are useful for object localization and detection tasks of reasonable difficulty. In all of the examples I have seen so far, localization is formulated as finding the corners of a bounding box. Often, the fit is not required to be very precise: ...
I have a set of distributions and I have combined (programmatically, not mathematically) them with weights, for example: Dist1, Dist2, Dist3, Dist4 p=.25, p=.20, p=.20, p=.35 Unless I am mistaken, the overall mean of this combination can be determined as: mean(dist1) * 0.25 + mean(dist2) * .20 + mean(dist3) * .20 + mea...
Log marginal likelihood for Gaussian Process as per Rasmussen's Gaussian Processes for Machine Learning equation 2.30 is: $$\log p(y|X) = -\frac{1}{2}y^T(K+\sigma^2_n I)^{-1}y - \frac{1}{2}\log|K+\sigma^2_n I|-\frac{n}{2}\log2\pi$$ Where as Matlab's documentation on Gaussian Process formulates the relation as $$\log p...
I can't understand the meaning of this writing: AR(||1,3||). I don't know the meaning of the "||". Edit: I've found also this notation: ARMA(1, ||1,4||). Maybe could be useful.
Suppose $X_1, \cdots ,X_n$ are independent and identically distributed random variables with probability density function $$f(x|θ) = θ\, \exp(−θx),\quad \text{ for } x ≥ 0\,.$$ Each variable is censored if it exceeds $C$, a known constant. Then we have: then $$Pr(X > C) = \exp(−θC)\,.$$ Do anybody know why $$Pr(X > C) ...
I have a 2 x 2 x 2 design, and I only want to analyse main effects and two-way interactions, not the three-way interaction. Using SPSS MIXED, should I still define the three-way interaction and just ignore its output, or leave it out of the model entirely?
I am new to data science, and I would like to know whether I can use n-1 categorical variables instead of the original n, without risking to lose information. At example: I have three categorical variables A,B,C, and I write C in function of A and B, therefore I have reduced the number of variables from 3 to 2. Can I a...
I'm completely new to machine learning and wish to implement it into my app to help my users travel between places. Let's say I have data (constantly updating data) that looks like this: user|from_id|to_id|timestamp 1234|4365|23075|xxx Where from_id and to_id is the start/stop place's ID. Based on this I would want to...
I have a question regarding the interpretation of the component GARCH model, and hypotheses related to its possible improvement over the simple GARCH model. I'm doing some time series analysis and a GARCH(1,1) model on the data produces $\alpha$ and $\beta$ coefficients that add to 0.92 ($\alpha$ of 0.15 and $\beta$ of...
I have a basic understanding of generative models, like Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs). It seems that they are mostly used to in the field of image processing/computer vision as in https://blog.openai.com/generative-models/ But somehow after a very long quest in searching for...
I am working on a research question where I am hoping to find a significant difference at multiple frequencies. I am comparing two age matched groups (n= 217). I am trying to find the correct test to see if there is a significant difference in their mean thresholds at 10 different adjacent frequencies. There is data fo...
I am interested in finding out whether there is any correlation between the behavior (1 variable) of individuals that are segregated in several groups of 3 or 5. This would be akin to a 3-way or 5-way correlation, I guess. Is there a standard way to calculate such type of association?
I am attempting to build a convolution neural network that will learn to classify images that contain up to three digits. I am currently building my training labels with the following format: For each image, have 30 classes (0-9 for each potential digit) Say for example the digits in the image is: 123 The label would b...
Does anyone know how to write the command in R to compute state space model of an ARIMA(2,0,2)?
I am trying to estimate Beta regression model with Matlab based on Ferrari & Cribari-Neto (2004) paper (see https://www.jstatsoft.org/article/view/v034i02/v34i02.pdf). I have encountered a severe issue with the computation of the standard errors (SE) for maximum likelihood estimates (MLE). In my data set I have 7 propo...
Let $X_1$ be a random variable and let $\text{VaR}_p(X_1)$ denote the quantile of $X_1$ such that $$ P(X_1>\text{VaR}_p(X_1))=1-p. $$ Now, let $X_2$ be another random variable with $\text{VaR}_p(X_2)$ such that $$ P(X_2>\text{VaR}_p(X_2))=1-p. $$ Let $Y$ be yet another random variable. Now let $\widetilde{\text{VaR}...
If we have a set of samples $x_1 ,\dots, x_N$ and we denote with $\bar x = \frac{1}{N} \sum_i x_i$ their average, then the sample variance is defined as $s^2=\frac{1}{N-1} \sum(x_i - \bar x)^2$ (see [1], for example). I have found that someone says that the sample estimate of the variance is $s^2=\frac{1}{N^2}\sum_i \...
I have 23 participants who completed 8x3 minutes training periods in each session. Participants completed 12 such sessions. Thus far, I have been averaging the results of these 8x3 training periods in each session and then comparing the averages across the 12 sessions using a mixed ANOVA (there were two different types...
In stata, robust regression (rreg) uses weights proportional to the size of the residuals. Is this conceptually the same as weighted OLS (weight by 1/variance)? And both can be applied, for example, in scenarios with heteroskedasticity?
In Kaiming He's resnet presentation on slide 40 he says, "lower time complexity than VGG-16/19." Why is this the case, when resnet is much deeper?
Write down joint probability density function $f_{XY}(x,y)$ of two RVs $X$ and $Y$ given $X = Z_2 - Z_3$ and $Y = Z_1 - Z_2 + Z_3$ where $Z_1$, $Z_2$ and $Z_3$ are independent normal random variables each having mean $0$ and variance $1$. I tried using change of variable formula but couldn't find determinant because it...
I faintly remember in class discussing that interaction effects, seen from LASSO and Ridge coefficient vs alpha plots, means that the predictors of some data set have non-linear interaction effects. Is this true? For example, in my class project I know the data set I am working with has highly non-linear interactions b...
I'm reading a paper by Andrew Gelman. On page 3, it says, Let θ be the true (population) difference in sex ratios of attractive and less attractive parents. Then the data under discussion (with a two-sided P value of 0.2), combined with a uniform prior on θ, yield a 90% posterior probability that θ is positive...
Suppose we have a regression scenario with a function: $g: X\rightarrow Y$, where $X$ is the covariate space and $Y$ is the response (output) space. For instance, $g$ can be a conditional probability model,${g(Y|\boldsymbol{x})}$, describing a stochastic process generating $Y$ as function of covariate vector, $\boldsym...
On a reasonably sized data file, I do a random split and get the validation and test sets (80/20 let's say). I perform a (repeated) k-fold CV on the validation portion of the data and adjust all the parameters needed and finally come up with my best model. Then I try this model on the test set (20%) I never used before...
Wikipedia states: Ordinary linear regression predicts the expected value of a given unknown quantity (the response variable, a random variable) as a linear combination of a set of observed values (predictors). This implies that a constant change in a predictor leads to a constant change in the response variable ...
My 106 respondents answered questionnaires at the start of the study to assess trait and after this they participated in an Experience Sampling Method research design. In this design, participants answered 10 times a day for 7 days questions about their emotions. After the study, the data is stacked. So, for example po...
I am attempting to create a neural network model using R that estimates the sine function for a given x variable, i.e. sin(x). Dataset has 5000 observations with x iterating by 0.05 each time: However, when I estimate using the model, my error is quite high at 219.2 and my prediction remains fairly constant at a value...
I'm trying to analize a chemical experiment with four factors or independent variables. Initially each factor had three levels, so i proposed a $3^4$ factorial design; the problem was that all the treatments couldn't be measured, so i proposed a $3^{(4-1)}$ fractional factorial design, so i had $3^3 = 27$ treatments. L...
Say I have a time series $y_t = \frac{1}{n} \sum_{i=1}^n x_t^{(i)}$. For example, $y_t$ can be the returns of the S&P 500 index at time $t$ and the $x^{(i)}_t$ is return of the $i^{th}$ company in the S&P 500 at time $t$ (notice this means $n = 500$). Now suppose instead of imposing a simple autoregressive structure on...
For regression models we have the AIC to use as a quality metric. It has a high score for models that use fewer exogenous variables compared to models with many exogenous variables (holding the variance explained constant). Decision trees also can suffer from the same plight, being too complicated, perhaps because of o...
I'm trying to write a program that would help me make wiser decisions for stock trading. I've built my logic, which is made of two sub-logics. The first is a general logic - Targeting the stock data (mostly pattern analysis). The second is personal behavior logic - Targeting the personal playing behavior (how risky to ...
I'm estimating the following panel data model (years $t$, regions $i$) in Stata: $$\%Δy_{ti} = \beta_0 + \beta_1 \%Δx_{ti} + \beta_2 \%Δcontrols_{ti} \dots + e_{ti}$$ As far as I know, this is a first-difference model with the only distinction being that I use % change ($\%Δ$) instead of absolute change ($Δ$). There a...