instruction
stringlengths
9
38.7k
I am running a random forest model with the caret package and get the following as output: No pre-processing Resampling: Rolling Forecasting Origin Resampling (1 held-out with no fixed window) Summary of sample sizes: 55, 56, 57, 58, 59, 60, ... Resampling results across tuning parameters: splitrule RMSE R...
My organization has recently got hold of some data which gives propensity-modelled scores per person for various continuos attributes. However, these attributes are all grouped ranges, with the propensity scores for each adding up to one for each person in the data. For instance: personid assets_0 assets_0_to_1000 asse...
I have the following data set: foo <- structure(c(38597, 33009, 38668, 39135, 34384, 36942, 46998, 49620, 40909, 48973, 38565, 53144, 72367, 53217, 38123, 36383, 43911, 37028, 34652, 28540, 29421, 27469, 28070, 26377, 26604, 20390, 23239, 28498, 24818, 21424, 21680, 20077, 22005, 21919, 17172, 27871, 28113, 20190,...
For instance, there is a paper entitled: "Volatility Risk in the Cross‐Section of Stock Returns" What does it mean to imply by the Volatility Risk in the cross-section of stock returns? I know what volatility risk is, but specifically in the cross-section of stock returns does not make sense to me. My guess is somethin...
as per title, like to check if it is appropriate to use Cox regression when the risk of event appears to decrease with follow-up time? If it is not appropriate, what model should I be using instead? Thank you.
I have two random variables $X, Y$. $X \sim N(0,1) \qquad\text{(normally distributed)}\\ Y = g(X) \qquad\text{(g is a function such as g(x) = 1 + x + 2x^2)}$ I would like to draw a sample of size 1000 of X and Y. Do I need to draw from normal distribution for x and y or just for x and then use it in y? (See code exa...
I am trying to select the most important features that explain the variability of my data using an unsupervised approach in python (would consider R though). This is after I performed a PCA and looked at the PC1 and PC2, and look at the Variables Factor Map. The Variables Factor Map tells me what is the contribution of...
Suppose $X, Y$ are iid. $\exp(2)$. Let $T$ = $X + Y$. Find $f_x (x | T = t)$. This is a problem from a practice exam. I know that $T\sim\mathrm{Gamma}(2, 2)$ since $T$ is a sum of 2 independent exponentials with the same rate (2). But, I'm a bit stuck on finding the conditional density. I tried using Bayes' Rule, but...
Given a matrix $X\in\mathbb{R}^{m\times n}$, I am trying to maximize $\text{Tr}(D^TX^TXD)$ over $D\in\mathbb{R}^{n\times l}$ ($n<l$) subject to $D^TD=I_l$, where $\text{Tr}$ denotes the trace, and $I_l$ denotes the identity matrix of size $l$. More specifically, I am trying to find $$D^{*}=\arg\limits_{D}\max\text{Tr}...
I have the following problem. Consider a random vector distributed as a multivariate $t$-distribution, $\mathbf{v} \sim t_\nu(\mathbf{0}, \boldsymbol{\Omega})$. Consider further another random vector $w^{-1} \sim \mathcal{B}\textit{eta}\big(\frac{\nu}{2}, \frac{N}{2}\big)$ where $w = \big[1+ (1/\nu)(\mathbf{y} - \bolds...
i have estimated an exponential model (proportional hazard-rate metric) while the baseline is modelled using restricted cubic splines. This was done by splitting the observed duration time at any observed time point and set up the restricted cubic spline terms. Additionally, i model one covariate effect as time depend...
The average score on exam 1 is 73 with a standard deviation of 14. The average score on exam 2 is 70 with a standard deviation of 14. Let Z= The difference of the scores on exam 1 and exam 2. What is the mean of Z? A.0. B.1.5 C.3.0 D.9.0 E.Do not have enough information to tell I thought it was (70 + 73)/2 but then got...
I am currently doing a one-way MANOVA with one independent variable- 2 levels and two dependent variables. I have a repeated measures design and I am not sure what post hoc test to use.
I found it's possible to add the lift measure to the quality measures of a frequent itemset in R returned by the Eclat algorithm: frequentItems <- eclat(trans, parameter = list(supp = support, maxlen = 15)) quality(frequentItems)$lift <- interestMeasure(frequentItems, mea...
Suppose we have three random variables X, Y, T. X is positively correlated with T: we know $\rho_{XT}$ and it is greater than 0, let's say for the sake of argument 0.5. Y is positively correlated with T: we know $\rho_{YT}$ and it is greater than 0; similarly about 0.5. If we find that the product of X and Y, XY is pos...
I have an Arima(1,1,1) model with predictors var1+var2+var3, but am struggling with how to write the equation. The problem is that on all of the sources I see a variation of the following is given. $$\left( 1 - \sum_{i=1}^p \phi_i L^i\right) (1-L)^d y_t = \delta + \left( 1 + \sum_{i=1}^q \theta_i L^i \right) \varepsilo...
my apologies if this is a very basic question or if similar questions have been asked before. I am relatively new to this kind of modelling and did not find anything yet that resolves my question. I have an experiment were we count the number of soil insects, expressed as thousands of animals per square meter in our ...
I have a dataset with 4 classes with some numerical and categorical data. I was interested in using the hashing trick so I use the Feature Hasher available in scikit learn. I wanted to have a vizualisation of the data to see if there were any separation or groups and was wondering if it is correct to do a PCA after a...
install.packages("rms") library(rms) # fake data with formula, y = 4x1 + x2 + e x1 <- runif(n = 1000, 0, 100) x2 <- runif(n = 1000, 0, 10) e <- rnorm(n = 1000, mean = 0, sd = 10) df <- data.frame(x1, x2, e) df$y <- 4*df$x1 + x2 + e # rank y where max(y) is ranked 1 y.rank <- apply(-df, 2, rank, ties.method = "min") d...
I’m running a model on animal behavior in response to shipping. In most cases, there is only one ship in the study area at one time. Ship length, distance from the animals, speed, angle from animals, and ship direction (as east/west bound) are among shipping-related covariates (with multiple interactions). The tricky ...
We have two distributions of uniform random variables over $(0, 1)$ named $U_1$ and $U_2$ (and they are independent). How can we calculate $f(U_1|U_1>U_2)$, $f(U_2|U_1>U_2)$, $E(U_1|U_1>U_2)$ and $E(U_2|U_1>U_2)$? I tried to use $f(x|y) = f(x,y)/f(y)$ but what does $f(U_1, U_1>U_2)$ even means? I can't think about it s...
I have a data set with a categorical dependent (14 categories - party choices), and three independent variables - age (continuous), education (8 categories) and gender (male or female). Online I understood that I need to run a multiple regression analysis. However, advice online is conflicting, with some proposing the...
Why is it true that $P(A|B,C) \neq P(A|B) P(A|C)$ when $B$ and $C$ are independent? Intuitively I can understand that the LHS probability should be greater than the RHS and the above equation doesn't hold that. But is there any proof to convince me. Another question: say if $A$ and $C$ are independent then can I tell $...
Background: I have a dataset with an event that started on November 28th, 2017 at specific locations (target). The goal is to measure the success of the event by comparing the same metric against the year-over-year trend. My initial thought was to look at the sessions for the same date range year over year: Nov 14, 20...
I've run into an odd problem that I have a simple answer to but would like to know if there's something deeper to it. I have a data set with 7 observations, each with 2 variables (X,Y). I then run a linear regression between the two and find a statistically significant relationship and all is well. I then start to cre...
I am trying to predict a sale using a logit regression. My dependent variable is isSale and my dependent variables include only binary variables such as isHighSale_City, isHighSale_Domain, etc. I have my regression output and converted the coefficients to odds and then to probability. predicted_probability = odds_rat...
I'm working with a table that shows a total rate and two sub-rates. I have no underlying data just the finished table from an article. The rates are shown as per 1,000 women - the category is marriage per 1,000 for particular groups. There is Hispanic, Total 16.7 per 1000 (16.7 per 1000 Hispanic women are married), the...
I would like to calculate the 95% CI for my binomial data. The set up is that I have 20 devices, each measuring the same standard three times. The data are binomial and come out as Found/Not Found (1,0). For the sake of argument lets say that each run comes up with 50% positive. Using the 95% CI formula on some prac...
I have the following problem. I have two datasets, the first one composed by pairs (xi, yi) and the second one by (x'i, y'i). For instance, these vectors might look like this: x = [.25 .4 .7 .85 .9 .92] y = [2.4 1.8 1.35 1.3 1.25 1.1] x' = [.3 .42 .44 .6 .65 .7 .85 .88] y' = [2.2 1.9 1.7 1.6 1.65 1.6 1.4 1.2] Let's als...
I have asked people to tell me as many words as they can in one minute (fluency task) and I want to analyze the properties of the words they are saying. My dataset has a column for correct words (dependent variable) and three columns with continuous data corresponding to different properties of the correct words only (...
I try to implement a deep Q-Learning solution for the the Openai gym CartPole problem. My solution doesn't work as my network takes forever to learn anything useful. I compared my solution with other solutions online and noticed a difference. I want to understand why my approach is wrong. Approach A (not working): 1. L...
If anyone could solve this puzzle, I would be incredibly thankful! Given a bell-shaped distribution of ways to choose r from constant number n, how do we find the two points of inflection? For example, given $n=500$, the graph would be that of the choose function: $$f(r) = \binom{500}r, $$or $$f(r) = \frac{500! }{(500...
I was wondering if it is possible to obtain the median for my function called ps below? To be clear, the function ps is a proper probability distribution (i.e., integrates to 1) on $[0, 1]$ support that has resulted from applying the Bayes' theorem (ps standing for posterior). I just was wondering if there is a mathema...
r<- diff(rnorm(100)) acf(r) Why there is a negative auto correlation? What does it mean?
I thought of this question at lunch and don’t know the terminology to search for it perhaps.. Consider Fn X1(mint) + X2(Orange) = Y(flavor) X1 and X2 are boolean values, capable of values 0 or 1. Using the following data: | X1 | X2 | Y | | 1 | 0 | 0.5 | | 0 | 1 | 0.5 | | 1 | 1 | 0 | | 0 | 0 | 0 ...
Before using adonis() with factors as explanatory variables in R, it is important to check for group dispersion (betadisper()) so that you know whether your significant p-value from adonis is real, i.e., not influenced by a large dispersion effect. How can this be done for continuous variables? It is my understanding t...
Situation I'm performing an experiment in which I will use machine learning to build a model around how fast people generally (voluntarily) react to a set of stimuli. To performs this, I will be using a Machine Learning Engine such as Google TensorFlow to train a model. My factors (X) will be a set of various stimuli a...
If each individual has a 50% probability of voting 'Yes' in an Merger vote (independent probabilities), what is the probability that at least 50% of individuals will vote 'Yes'? Similarly, what is the chance that at least 20% of individuals will vote 'Yes'? I feel like this is a very simple problem, and I am needlessly...
Given a a random sample $X_1, X_2, X_3, X_4$ and family of densities $\mathcal{P} = \left\{ f_\theta: \theta \in \Theta \right\}$, where $f_\theta(x) = \frac{1}{2}\mathbb{I}_{[\theta-1, \theta + 1]}$, we can estimate $\theta$ by $\hat{\theta} = X_{(2)} + \frac{1}{5}$. Now we also know that $(S, T)= (X_{(1)}, X_{(4)})$ ...
I need to find the distribution of $2\theta X_i^2$ in order to show that $\sum_{i=1}^n 2\theta X_i^2$ is a pivot, (and thus $\sum_{i=1}^n 2\theta X_i^2 \sim N(0,1)$). $X_1,X_2,...,X_n$ are i.i.d. with $f(x,\theta)=2x\theta e^{-\theta x^2}1(x>0)$ and $\theta >0$. To find the distribution of $2\theta X_i^2$, I wanted to ...
So I'm a bit of a newb to statistics, so forgive me (or better, correct me), if I get any terminology wrong. If I have a population of 1000 people, and 400 of those people have an attribute, A. Everyone in that population also has a bunch of other attributes, some of which are likely correlated to A. I'd like to find ...
I'm reading Clark(2009) paper regarding the impact of education reform on school performance. The rule is that the school initiated a democratic vote at first and if 50% of students vote in favor of change school to a GM status (another form of school, with more school autonomy), the school can send an application to t...
I have not been able to find this in the literature, but that probably means I am looking in the wrong spot. I am looking to find the Frequentist predictive distribution, assuming it exists, for a one dimensional and an n-dimensional Cauchy variate. The issue with the n-dimensional version is that there is nothing lik...
First, I have looked at other posts but none address this specific question. I am trying to evaluate goodness of fit for a negative binomial regression, and what the dispersion parameter indicates in this case. First I tried Poisson (and quasipoisson) glm, but the goodness of fit test resulted in a rejection of fit. ...
A 26 card deck containing 13 "hearts" and 13 "spades" is well-shuffled. Thirteen pairs are then dealt from the deck. A pair is a "match" if it contains 1 heart and 1 spade. Let N be the number of matches. The deck will always be exhausted in each dealing, so you will always have 13 pairs. What is the expectation and va...
I was given the following problem on a practice final exam and I think the professor posted the wrong answer, but with the final tomorrow I don't have time to ask him via email so I figured I'd look for the solution here: Q. 7 A sample of n = 36 adults participated in a study measuring the effectivene...
The earliest and the simplest known bivariate exponential distribution, introduced by Gumbel (1960), has joint survivor function and joint probability density function given by: \begin{equation}\label{eq:sf} S(x, y) = \exp\left[- \left(\alpha\,x + \beta\,y + \theta\,\alpha\,\beta\,x\,y\right)\right] \end{equation} and ...
I am doing customer segmentation using RFM. Prior to proceeding with the clustering, I log transformed my Monetary variable to account for skewness. df_RFM$log_monetary <- log(df_RFM$monetary) After which, I did the z-standardization using scaling. df_RFM2 <- scale(df_RFM2) Summary statistics before scaling, after s...
According to the law of total variance, the variance of the expected value of an estimator conditioned on some other RV is at least as small as the variance of the original estimator. Does this relate to feature selection? If we remove a feature, we are effectively not able to condition on it. So, should we never rem...
In a VAE, the encoder learns to output two vectors: $$\mathbf{\mu} \in\ \mathbb{R}^{z}$$ $$\mathbf{\sigma} \in\ \mathbb{R}^{z}$$ which are the mean and variances for the latent vector $\mathbf{z}$, the latent vector $\mathbf{z}$ is then calculated by: $$\mathbf{z} = \mu + \sigma \epsilon$$ where: $\epsilon = N(0, \math...
One of the independent variable that I was going to use in my linear regression model is positively skewed. The variable is a probability and it is greater than 0. Can you take a log of a probability? If yes, how would you interpret it when you have the following linear regression model: log(y) ~ log(probability_var...
I generated set of random proportions using rnorm() function with mean=0.5 and standard deviation = 0.12. I get the below vector of proportions. [0.59 0.66 0.65 0.67 0.40 0.26 0.46 0.46 0.53 0.66 0.51 0.58 0.45 0.47 0.64 0.62 0.60 0.34 0.40 0.38] Then I re-estimated the mean and variance using R optim() function. Here,...
Suppose I want to generate $X_1, \ldots, X_n$ Bernoulli random variables such that: $$ Corr(X_i, X_j) = \rho $$ for all $i \neq j$. I am wondering what method I might be able to use (I will be trying to do this in R). I am thinking of using Couplas, but could anyone guide me how to implement this? Thanks.
Given a unique time series $TS = (t_{0},t_{1},.....,t_{n})$ and a unique triplet $(p,q,d)$, is the corresponding ARIMA$(p,q,d)$ model unique or are there multiple possible ARIMA models?
If we have a column vector of timeseries ($n$ instances $\times$ $k$ observations in time) and $p$ number of transformations (e.g., derivative transformations) that can be applied to each of the time series. This can be represented as a multivariate time series for each $n$ instances (an $n \times k \times p$ array),...
I know that Random forest uses Bagging, but how does ensemble give a single prediction in sklearn Bagging vs Random forest? Also, I do not understand why in Bagging you not need to choose a tree estimator, while not in RF? other than this, are the other steps the same? wht are main implementation differences in sklear...
I know this is a tricky question because it will depend on the exact relationship. But, generally speaking, do models tend to have a larger or smaller R2 if there is high variance in the dependent variable? I can imagine this both ways. Larger variance would mean more variance to explain, so larger R2? Or, larger varia...
Imagine a researcher is exploring a dataset and runs 1000 different regressions and he finds one interesting relationship among them. Now imagine another researcher with the same data runs just 1 regression, and it turns out it's the same one that the other researcher took 1000 regressions to find. Researcher 2 does n...
I used Sklearn logistic regression for multiclass classifier to classify as Male , Female and Infant on abalone data set Below is my sample Logistic regression for multi classifier x_train,x_test,y_train,y_test=train_test_split(x,y,test_size=0.20,random_state=False) log_reg=LogisticRegression() log_model=log_reg.fit...
I am kind of confused for the following questions: I know for the second question that I have to use the delta method but I can't even get past the first question here. Like, my thinking initially was that the CLT takes the form of $\sqrt n(\bar{x} - \mu)$ -> ... and so, I know that here, I am minimizing the differenc...
What is Bayesian Deep Learning and how does it relate to traditional Bayesian statistics and to traditional Deep Learning? What are the main concepts and mathematics involved? Could I say it's just non parametric bayesian statistics? What are its seminal works as well as its current main developments and applications?...
I used StandardScaler provided by scikit-learn to scale training and validation data. Then, I fitted a neural network (CNN) model with scaled data for classification. However, in the production stage, I have to predict data in every month in the future (one-by-one). So, I use the scaler which was used in training stage...
In an equation as such: $$log(P_{is})=B_0+B_1log(X1_{is})+B_2log(X2_{is})+B_3X3_{is}+e_i$$ for firms $i$ across $25$ periods from $s=1$ to $s=25$ (panel data). The output in R for fixed effects only gives me estimates for $X1$, $X2$, and $X3$ (all time-varying variables naturally). How do I get the fixed effects? As me...
I know how to find a mle for $\lambda$ of Poisson distribution, but how can we find $\lambda^2$? Should we differentiate the same likelihood function by $\lambda^2$? Will the operation for finding expected value will differ somehow? Thank you in advance.
I was just watching this tutorial about Support Vector Machines, and I came to a halt because of the following problem. Given that $\vec{w}$ is a vector perpendicular to a hyperplane separating two classes, does the equation $\vec{u} \cdot\vec{w}+b=1$ or ($\vec{u}\cdot\vec{w}+b=-1$) represent another hyperplane paralle...
Suppose I try to model DCC-GARCH on two assets, let say Apple and Samsung. I had the daily log return for Apple and Samsung and I merged the data. 2008-08-29 -2.452995e-02 -0.0096434343 2008-09-01 *****NA***** -0.0195701459 2008-09-02 -1.989801e-02 0.0215063812 Suppose there was no trade for Apple but there w...
I am experiencing what seems to be a bias in importance sampling, which, given that it's an unbiased procedure, should not be there. Consider linear regression $$ y = X\beta+\epsilon $$ where there are $n$ observations and $k$ regressors, and $\epsilon \sim N(0, 1)$. Let the prior for $\beta$ be independent $N(0,1)$, ...
I have time series dataset and as a requirement I prepare a 10 fold cross validation dataset. Briefly, I split data into 10 and for each training set I put a gap between last, first day of validation set and training set. That is, suppose that I take first 100 rows as validation. Then I take training set between the ro...
In the univariate regression settings, we try to model $$y = X\beta +noise$$ where $y \in \mathbb{R}^n$ a vector of $n$ observations and $X \in \mathbb{R}^{n \times m}$ the design matrix with $m$ predictors. The solution is $\beta_0 = (X^TX)^{-1}Xy$. In the multivariate regression settings, we try to model $$Y = X\be...
There is a detailed explanation of what the AUC of an ROC curve is here. However I have searched high and low for an explanation regarding what the X and y axes of the ROC curve are. I have understood that they are decision thresholds, but in practical terms what does that mean?
I have a dataset where the mean is below the median. According to this, it implies that the distribution is obviously tailed but that the mass of the distribution is placed at higher values of y. Looking at 2 strata of my data, stratum 1 has a bigger difference between the median and mean than stratum 2. This means th...
I am trying to understand how Bayesian optimizations of hyper-parameters works in practice. Question 1: How shape of this curve (solid blue line in the middle) is calculated given Gaussian kernel. I understand that the kernel is a way to measure distance between points on $x$-axis. I read there is an underlying Gaussi...
As per the usual definition of epoch and iteration, it takes multiple iterations to complete 1 epoch (for example see https://stackoverflow.com/questions/4752626/epoch-vs-iteration-when-training-neural-networks). So the relationship between epochs and iterations should be always #iterations >= #epochs. However in the...
Multiple articles claim that AdaGrad does not work well when the square-root in the formula is not taken. This is one such example. $\theta_{t+1,i} = \theta_{t,i}-\dfrac{\eta}{\sqrt{G_{t,ii}+\epsilon}}\times g_{t,i}$. Here $G_{t,ii}$ represents the summation of previous gradients. Why is it so that the square root is s...
I come across this when reading a UFLDL tutorial article where an autoencoder is used to learn the features of input data. Besides, the number of hidden-layer neurons is equal to the number of inputs. The thing is, input data is pre-processed using whitening transformation which is essentially PCA (see this). The purpo...
I'm using Forecast Principles and Practice 2 to study time series and a doubt came in mind while I was trying to do exercise 7 of chapter 3. How sensitive are the accuracy measures to the training/test split? The r code is retaildata <- readxl::read_excel("retail.xlsx", skip=1) myts <- ts(retaildata[,"A3349873A"], fr...
I understand that this is a popular topic in the field of networking and telecommunication [see https://en.wikipedia.org/wiki/Event_correlation . In my problem context, I have to find correlation between logs generated in a large network, mine patterns, and generate rules to create a filtering mechanism that will ident...
I understand that overdispersion indicates extra, unexplained variation in the response than would be expected based on the statistical model of choice. And that the residual deviance is a measure of goodness of fit. But I don't have an intuition behind why the ratio of residual deviance to residual degrees of freedom...
The common case for a Monte Carlo simulation is, if we want to run our simulation for $N$ steps, we define a delta $\Delta,$ such that $N/\Delta = n$ tells us the frequency with which we measure/evaluate quantities of interest during the MC run. For instance, say $N=1000,$ and we want to measure the average of an obse...
I have two ways to cluster nodes in a given graph, and now I want to compare my two clusters so to measure how "similar" the resulting clusters are. I have found some measures of similarity (Rand index, Variation of information, etc), but none of them takes into account the structure of the graph. So my question is if ...
Let $x$ and $y$ be two independent random variables and assume that both are exponentially distributed, \begin{align*} x & \sim\exp\left( \lambda\right) \\ y & \sim\exp\left( \mu\right) \end{align*} then we have that $$ \Pr\left( x<y\right) =\frac{\lambda}{\lambda+\mu}. $$ Suppose I need to know the probability ...
I have to draw a survival probability plot with three different surviuval estimates using the phreg, lifereg and the lifetest procedure with sas for make a confrontation the models: proc phreg data=data; class trt; model time*event(0)=trt / rl; run; proc lifereg data=data; model time*event(0) ...
I came across this equation for the leverage statistic in ISL. Does the denominator translate to the summation of all the squares of $(x_i - mean(x))^2$ excluding the current observation of x? In other words, does the $x_i'$ stand for not $x_i$?
(This is not a homework question; I just want to understand how this works) Let's say I am playing a game, where I need to flip a coin. I need to get $X$ number of heads in a row in order to win. The coin is unbalanced, and has $p$ probability of landing on heads and $1-p$ probability of landing on tails. Consecutive f...
I was told that if I have a regression model $Y=b_0 + b_1X + b_2Z + b_3(X *Z)$, coefficients $b_1$ and $b_2$ have conditional effects. What does this mean exactly? How do I know when I have main effects or conditional effects?
I am currently doing classification for some data over 49 classes. After training the model i test its classification accuracy on a data-set consisting of 40 observations for each class. To put this in context, each class refers to a location on a 2D plane, and these locations are closest to their neighbouring points,...
year of | observatio | year of observation relative to conversion date (conversion occurs in year 0) n | -4 -3 -2 -1 0 1 2 3 | Total -----------+---------------------------------------------------------------------------------------...
I have a dataset with 19 features (columns). I normalized them using sklearn.preprocessing.normalize then I used PCA to reduce them to 2 components for plotting purposes following the steps in this link: http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_digits.html What I saw is that my data points form...
I am interested in calculating the degrees of freedom for predictor variables in mixed effects (or multi-level) models using the Kenward-Roger approximation (described in this paper here). Using a function (get_Lb_ddf()) to "Get adjusted denomintor degress freedom for testing Lb=0 in a linear mixed model where L is a ...
I recently ran into a paper that described the following: To test the robustness of each specification, we used a difference-in-difference (DID) estimator to control for time invariant factors that jointly affected control and treated units. We estimated the DID with i) an Ordinary Least Square (OLS) model and w...
Let $y_{t}$ be a scalar stationary stochastic process with its Wold representation $y_{t} = \mu_{t} + \sum_{k = 0}^{\infty} \phi_{k}\epsilon_{t-k}$. I understand that the theorem says that $\sum_{k=0}^{\infty} \phi_{k}^2$ is finite. Although, we if assume that $Var(\epsilon_{t}) = \sigma^2, \forall t$, can we state th...
The paper that I am reading says, tweet is represented by the average of the word embedding vectors of the words that compose the tweet. Does this mean each word in the tweet (sentence) has to be represented as the average of its word vector (still having the same length), or does it mean the sentence itself has to...
I have a parameter described as mean (95% CI low-hi) and would like to build a distribution that will have approximately that mean and lower/upper bounds. The constraints are that these are usually non-normal and all values have to be between 0 and 1. How would I go about that? One brute-force method I thought about i...
I read with the greatest interest: Alternatives to one-way ANOVA for heteroskedastic data If I want to determine if more than 2 groups are from the same population and I have to deal with unequal sample sizes, unequal variances and non-normal data, can I use the ordinal logistic regression (evaluating the likelihood ra...
I am fitting latent variable models to noisy, high-dimensional data. The dimension is 15,000 to 20,000; there are 2,000 observations. There is a certain latent structure that I observe -- essentially, a set of clusters. Certain features change very clearly from cluster to cluster. Most do not. I now have the opportuni...
I am trying to find a R library that splits a distribution into a symmetric and asymmetric components. I have a distribution that I want to split into two components, one skewed and the other most likely symmetric but possibly skewed. I tried output <- spEMsymloc(input, mu = c(-0.5, 1.5), bw=0.2) from the mixtools l...
I ran a zero-inflated negative binomial mixed model (ZINB) and now have a statistically significant factor (recording type, either NOCA, BCCH, or Human). To assess the differences between these three possibilities in the factor, could I rely on a post-hoc tukey HSD? Should I use the lsmeans tukey test in R? Would this ...
I am having a hard time finding a comparable test for my data set. Here is what I have: weight of individuals and Concentration of a trace metal in each individual for 8 field sites. I want to see if all sites have the same relationship between weight and conc'. An ANCOVA looks like it would be perfect but Im not sure...
The paper that I am reading explains about how it implemented the feature vector used for a twitter sentiment classification task. The first is a simple combination, where each tweet is represented by the average of the word embedding vectors of the words that compose the tweet. The second approach also averages t...
The point of Hierarchical Bayesian models is that you can get parameters for different "hierarchies" within your data. For example, if you have 10 data points for one person, 10 for the next and so on, it helps you obtain a model for each person that uses the global distribution of parameters as a prior. Another thing ...