instruction
stringlengths
9
38.7k
Let $(Y_t)_{t \in Z}$ be a covariance-stationary stochastic process. According to Hamilton (page 46-47), we say that the process is Ergodic for the mean if $$\overline{Y}\equiv \frac{1}{T}\sum_{t=1}^T Y_{t} \stackrel{\mathbb{P}}{\to} E[Y_t]=: \mu,\quad \text{as} \quad T \to \infty.$$ Ergodic for the second moments if ...
I have a problem that each customer gives us a revenue and a cost, one of the indicators of the company is the: $\frac{\sum Costs}{\sum Revenue}$ To estimate the confidence interval for this parameter can I assume it's a mean and use the t or z distributions? (After checking for minimum sample size, normality, etc).
I'm trying to run a latent moderated mediation analysis SEM with R lavaan. It is essentially "First Stage Moderation", per Edwards & Lambert (2007), with a few extra factors. I'm using the UPI approach with matching indicators to specify the latent interaction term, and the semTools package to probe interactions. I've ...
I assume Baye's Theorem is expressed as either: $P(B|A) = \frac{P(A|B)*P(B)}{P(A)}$ or $P(A|B) = \frac{P(A) * P(B|A)}{((P(A) * P(B|A)) + (P(A') * P(B|A'))}$ The tutorial problem was: Assume ten children have the following ages (years) and heights (inches): I interpreted events A and B as: P(A): Age x = 9 yr., 4/10 P...
I'm tuning the hyperparameters for different Machine Learning models with Optuna package. For ExtraTreesRegressor I got r2 train = 0.938, r2 test = 0.922 and RMSE test = 0.907. In this case the average 5-fold CV on training data was 0.924. But for HistGradientBoostingRegressor I got r2 train= 0.977, r2 test = 0.941 and...
Consider two probability density function g(y) and f(y: $\theta$), $\theta \in \Theta$. The KL divergence of f and g is defined by $$ D_{KL}(g|f) := \int \log \frac{g(y)}{f(y: \theta)} \, dy = \int -\log f(y: \theta)g(y)\, dy. $$ I want to check the following three conditions hold for some specific distributions of...
I'm new to all of this so I apologise in advance. I'm currently conducting a meta-analysis and have pooled AUCs that represent the accuracy of two very similar prognostic factors in predicting mortality. Both values come from the same group of studies that assessed both factors concurrently in the same sample. I can't ...
I would like to "relate" two arithmetic averages and then use them in Poisson. I currently already use a method, but i'm sure we can do better and that there is a better way. I currently sum the two averages, then divide by two, then use the result in Poisson In the championship matches played so far, Team_A and Team_B...
Two random variables (RVs) $x$ and $y$ are uncorrelated, which implies that $\mathbb{E}[xy]=\mathbb{E}[x]\mathbb{E}[y]$. Let the zero-mean deviation variable be marked with a tilde, e.g. $\tilde{x}=x-\mathbb{E}[x]$. The second central moment is calculated as $\mathbb{E}[\tilde{x}\tilde{y}]=\mathbb{E}[\tilde{x}]\mathbb{...
I have already read all the associated questions on the topic but couldn't find a clear answer. I initially split my data into training (80%) and hold-out testing (20%). Then, I am performing nested cross-validation (outer loops: Leave one out approach) using all the data except the 20% that is hold-out. I repeat the n...
Background I'm working on a Fraud dataset with 500,000 samples, and 130 features. There are: 98 numerical features, 32 categorical features, There are missing values in: 7 numerical features, 12 categorical features, 20 of the categorical features have cardinalities above 10. The fraud incidence is 1.5%. I have bui...
Consider we have a population regression function (log-level model) with only one independent variable: $$\log(y) = B_0 + B_1 \times x_1+u$$ In order to find the relationship between the increase of $x_1$ and $y$, I initially give $x_1$ value of 1, then: $$\log(y_1) = B_0 + B_1 \times{1} + u $$ And also, to find the ch...
Let's suppose that we perform Box-Cox transformation in R for the following data library(MASS) set.seed(1) n <- 100 x <- runif(n, 1, 5) y <- x^3 + rnorm(n) # run a linear model m <- lm(y ~ x) # run the box-cox transformation bc <- boxcox(y ~ x) lambda <- bc$x[which.max(bc$y)]) What I'd now is to fit a new model m2 ...
Lets say I have the following sample data. person_id gender age_group cluster buys sells gender_age 0 1 F Y 1 8 4.5 F_Y 1 2 F O 2 12 4.8 F_O 2 3 F O 3 10 5.1 F_O 3 4 F O 1 13 5.5 F_O 4 5 M Y 2 14 3.8 M_Y 5 6 M Y 3 7 5.2 M_Y 6 7 M Y 2 ...
I am a bit confused with the time series dataset preparation. From the internet, I saw all examples which used tree-based models, had input features and target defined as: X = df.drop(['target'], axis=1) y = df["target"] i.e. we use input features and target of the same timestamp here. While using LSTM, say with a win...
Consider a biochemical method which is sensitive to the concentration of reagent A. The method produces a signal with variance var(method) when reagent A is repeatedly sampled from the same stock (no difference in concentration between experimental repeats). The method produces a total variance, var(total) = var(A)+var...
So, I have survey responses from users. Just to make it clear, if you select an issue like Poor UI then you are prompted with 4-5 specific issues about the UI to select from. Poor UI is the main variable and then we have 4-5 sub-issues related to the poor UI. For example, Q1. What do you have a problem with? Poor UI -...
I want to make sure i get the right analysis. I have taken chemical measurements of soil at two grasslands at two depths. For example soil PH. So one with chemical treatment and one without at two different depths (10cm and 50 cm). What is an appropriate analysis. I was thinking just a T test? best Wishes
I have performed a leave-one out cross-validated prediction using a lasso regression (with both lambda min and lambda 1se). My sample size is 52 and I have a bit more than 20 predictors. While lambda min give me acceptable results, the lambda 1se gives me weird results: The correlation between predicted and actual dat...
Currently reading up on Ridge and Lasso regression, have some questions to clarify. Suppose Model 1 has all predictors (i.e., 8) and Model 2 only has a specific subset chosen after EDA (i.e., 5) Understanding that they both impose penalities on the coefficients (albeit different types), I was wondering if Lasso and Rid...
I am having a hard time understanding ACF and PACF. I estimated a GARCH(1,1) model and now I am checking its standardized residuals. This is what I get: I can not really understand why the lag 0 has p-value=1. Also, the Ljung-Box test on std residuals is OK.
I have tree-structured dataset about parents and childs values. Each data node (except father-node) has some float values. I need to predict childs values. For being more obvious, I made a picture to show how my data looks like: Now it is stored as table with information about parents ids. Fathers do not have any valu...
I have a question about calculating the rate of inflation between two time periods using the CPI index, generally, if I am interested in comparing the rate of inflation between a current year 2022 and an earlier time period, 2019, is the CPI index calculation as follows: CPI 2022 index minus CPI 2019 index, divided by ...
I need to find the best, in the mean-squared sense, piecewise linear regression of an emprical density function (eCDF, which I do not know but can be sampled online) on the largest possible uniformally distributed grid. The domain is all reals and the residuals are normally distributed. I am envisioning a Monte-Carlo-l...
I am discussing the question whether to normalize the data or not in the following setting: I have a true time series $$s_t = iid(0,\sigma_s^2)$$ however I only observe different $$\hat{s}_{t,i} = s_t + v_t$$ where $i$ are different sources and if $t \le T_b$: $$i=1,...,n \\ v_t = iid(0, \sigma_h^2)$$ and if $t > T_b$:...
I'm trying to follow the book A Step-by-Step Guide to Exploratory Factor Analysis with R and Rstudio, by Marley W. Watkins, and apply the principles in the book to a real-world data set. Ultimately, my goal is to perform a logistic regression, but my variables are highly correlated; so although the model performs well,...
For a specific research question i fitted a generalized linear mixed model using a poisson link function due to the characteristics of my data. For reporting purposes i used the report package and the report function. However, i noticed that the standardized coefficients and CIs are equal to the normal coefficients and...
I want to do multiple linear regression as explained on this Wikipedia site: I am given the following data: $$ yx=(~(y_1,x_{11},\ldots,x_{1p}),\ldots, (y_n,x_{n1},\ldots,x_{np})~) $$ of $n$-many samples where for each sample $(y_i,x_{i_1},\ldots,x_{ip})$ the variable $y_i\in\mathbb{R}$ is ''dependent'' (the ''dependent...
I did a pre and post-test with a small number of students ($n=12$).These values came after a science intervention that took $4$ weeks. I used a Wilcoxon test for 2 related samples as there was not a normal distribution. And I have gotten some values, but I don’t know how to make sense of the values I got. Simply put, w...
The mean squared error has a famous decomposition into bias and variance. $$ \text{MSE} = \text{bias}^2 + \text{var} $$ Brier score is also a mean squared error calculation, and Brier score has a decomposition into measure of how well the model is calibrated and how well the model can discriminate between categories. C...
Suppose I have a single time-dependent variable $y_{t}$ (e.g. stock price) and a few hundred independent variables $X_{it}$ with data available for the same time frame as $y_{t}$ (e.g. company revenue, total market sales, interest rates, value of $y_{t-1}$ etc.) I want to identify a model to use for forecasting using t...
Hey just scratching my head with this problem: If I have a process that produces say 10,000 items. Each item can either be correct or incorrect (pass or fail). How many items do I need to check to be 95% sure that all items are correct? When performing these checks on this subset of items let's say I find an item that'...
Imagine two people must bet on the timing of the occurrence of an event, which we know will happen within the next 12 months, but we don't know in which month. Each person has 12 dollars and can bet in units of 1 USD, resolution monthly. It's 1 January, and Person B thinks the event can happen with equal probability in...
I am trying to report honest statistics about an experiment. I do not have a statistics background and am unsure how to approach this question. My experiment measures a signal (S) minus background control (C) for each data point, this is the 'response'. The points are plotted against concentration, the 'dose'. I measur...
I have a trouble understanding the concept/interpretation of confidence interval. It is commonly said that if I construct a hundred of 95-percent-confidence-intervals, then it is expected that 95 of those intervals would contain the true parameter. However, I am not sure why this should be true. Question 1: First, defi...
Im cleaning some panel data for a regression. Subjects are firms and a substantial amount of firms have been involved in mergers. Should I just drop all firms that have ever been part of a merger? Could I drop the smaller firms from each merger and keep the bigger firms?
Given a uni-dimensional CFA, reliability can be calculated as: $$ \omega = {\left(\sum_{i=1}^p \lambda_i\right)^2\over \left(\sum_{i=1}^p \lambda_i\right)^2 + \sum_{i=1}^p\sigma^2_i} $$ where $\lambda_i$ is the factor loading of item $i$ and $\sigma^2_i$ is the measurement error/unique variance of item $i$. It can be s...
Assume that you are using the FAST algoritm for corner/feature detection. You pick an image and run the FAST algorithm. Question: All these green dots are actully coordinates in x and y direction. What type of rotational invariance information can I get from only knowing the coordinates that are created by the geometi...
I'm using cox regression to analyse my data. The explanatory variable is a congenital disease (X) and the outcome is an another disease (Y), which is a comorbidity of the congenital disease. I'm looking at the association between the two diseases. The individuals in my data that has a congenital disease, may be diagnos...
Firth (1993) states in his introduction that for a $p$-dimensional parameter $\theta$ the asymptotic bias of the maximum likelihood estimate $\hat{\theta}$ may be written as: $b(\theta) = \frac{b_1(\theta)}{n}+\frac{b_2(\theta)}{n^2} + ...$, where $n$ is the number of observations. I understand why the first term is $\...
The minority class of my target variable is 40% of the dataset. Is there any point to upsampling them to 50%? or is upsampling only used when there is severe class imbalance?
I'm pretty new to categorical data analysis. I'm trying to understand why my confidence intervals are so wide, I've never seen CI's this wide. From what I'm reading online this is mostly related to the small sample size. Are there other things I'm missing? I've pasted some of my output from R. I was using 'epitools' OR...
I am studying Markov Decision Processes (MDPs) using Puterman's classic text, but am finding it challenging due to my limited background in measure theory and Borel subsets. Additionally, the lack of solutions for the end-of-chapter problems makes it difficult for me to check my own work. I would appreciate any advice ...
I'm planning a Kaplan-Meier analysis and need to determine an appropriate sample size for the study. I have two treatment arms and want to show that there is a differential biomarker effect depending on the treatment - I expect that the biomarker should be predictive of outcome for one treatment, but have no outcome as...
I am working on a bench study comparing two commercial devices (Device X and Device Y) and their ability to hold contact force over 30 seconds on a substrate at 2 independent angles (16 and 130). This will be done on fresh devices and after multiple articulations (0, 50, 100, and 120). The more articulations = device f...
I am doing linear regression in R. I have identified an outlier in my data: outliers::grubbs.test(all_pav$fmd_perc) Grubbs test for one outlier data: all_pav$fmd_perc G = 4.42003, U = 0.75274, p-value = 9.442e-05 alternative hypothesis: highest value 43.6823104693141 is an outlier I can see this outlier in my mode...
Good evening, I have a question concerning a linear regression. The first picture shows my model and the hypotheses. The second picture shows the linear regression output for H1, H2 and H3. I understand that H2 and H3 are not significant but H1 is significant. Now I want to know: Is the β vor H1: β = - 0,29 (Model 2) o...
Let $X$ and $Y$ both be standard normal distributions - so with mean 0 and variance 1, and independent of each other. Now let $Z = XY$. We know that $P(Z=0) = P(XY=0) = 0$, because the set $\{0\}$ is of measure zero, and this is a continuous probability. However, let's say that we know that $Z$ is equal to 0. This is p...
I have 4 IVs: gender (male, female), marital status (married, single), threat (continuous variable) and stress with four levels (ranging from 7 to 10 with ten being 'most stressed'). My DV is prosocial behaviour. I'm doing a binary logistic regression. I've been advised to do orthogonal polynomial contrasts on the ordi...
I understand that a neural network is a universal function approximator, meaning that it can learn to approximate any function that maps inputs to outputs. For a classification task, it creates a boundary line that separates different classes of inputs. For a simple case like the AND gate, it is easy to see how it crea...
I have a panel data with treated and non-treated firm year-quarters, and I would like to do propensity score matching to generate a treated/control firm subsample. The matching needs to be 1 to 1 and matched pair needs to be in the same year. The code I'm using is : m.out <- matchit(treated ~ covariates +I(year), ...
I've computed a ctree model, but the individual tree plotted is just one level, with all samples (below). How could this scenario have occurred? My response variable is a principal component and the predictors are nine environmental variables. There is no problem when I compute other principal components for the same d...
Wikipedia has an article about the Brier score whose notation confuses me. The article starts out easy enough by defining the Brier score to be: $$ BS = \dfrac{1}{N}\overset{N}{\underset{i = 1}{\sum}}\left( f_t - o_t\right)^2 $$ $N$ is the sample size. $o_t$ is true value $t$, either $0$ or $1$. $f_t$ is probability fo...
Let $X,X^1,\dots,X^{k-1},X^k\in\mathbb{R}$ be random variables, and let us define the conditional expectations as $$ f_{k-1}=\mathbb{E}[X|X^1,\dots,X^{k-1}]; \quad f_k=\mathbb{E}[X|X^1,\dots,X^k]. $$ Is it true that $$ \mathbb{E}\Big[\mathbb{E}[f_k\,|\,X^1,\dots,X^{k-1}]f_k\Big] =\mathbb{E}[f_kf_k]. $$ My attempt: \beg...
I am running a second-order (multiple indicator) latent growth curve. The model has three latent factors (excluding the growth intercept and slope factors) that each have 4-5 indicators. Two of them are time-varying covariates. My question is, "Do I need to add covariances among the residual variances of the factors me...
I have discrete, independent, but not necessarily identically distributed random variables $X_1,\dots,X_n$ that take on non-negative integer values. Each random variable has unknown distribution function $F_1,\dots,F_n$. However, for each $X_i$, I've got $n_i$ values that were drawn from it, $\mathbf{d}_i = (d_{i1}, \d...
I need to do a power calculation for a planned experiment, is my reasoning correct? 12 comparisons are planned success is defined as at least one H0 rejection Because a very specific missingness pattern is to be expected, I simulated one comparison (i.e. 2 groups) under Ha with the expected effect size. Because the ...
I have to perform a comparability study between pre and post change of a production process. I'm using the final purity to measure comparability and wanted to compare medians between pre (n=40 runs) and post(n=?). Median of purity pre-change is ~99% so distribution is very skewed and so far I'm using a beta distributio...
I have fit a GARCH(1,) model in Python, assuming the residuals are $t$ distributed. I am checking the standardized residuals. ARCH and Ljung-Box tests don't reject the null hypothesis. However, I am having trouble understanding the behavior of the graphs. The first graph displays the distribution of standardized residu...
I am trying to replicate the results in Table V of the paper Individualism and Momentum around the World (2010) by Chui et al. This is attached herewith. Dataset: Dependent variable: Monthly returns on momentum portfolios across 48 countries. The dataframe is shown below: Independent variables: Monthly indicators o...
My data has 5 binary dependent variables, 9 categorical independent variables, and 3 continuous independent variables, with a sample size of 1232. The 5 dependent variables are just different ways of measuring enrollment persistence, specifically Next Subsession Persistence, Next Term Persistence, Next Year Persistence...
Model distillation (or knowledge distillation) consist in making a student model learn from a teacher model in order to eventually use the student model as an alternative to the original teacher model. The student model is usually designed to be more efficient, so they are are for example made to have fewer parameters ...
I am looking at the results for survival analysis for leukaemia patients, categorised based on Copy Number Variation (CNV) levels using array comparative genomic hybridisation. So far I have plotted Kaplan-Meier (KM) curves and used the logrank tests for different leukaemia types. Additionally, I fitted a univariate Co...
In the setup, assume $\left(\mathbb{R}, \mathscr{B}\left(\mathbb{R}\right), P\right)$ is the underlying probability space and suppose that $\left\{\mathcal{F_n}\right\}_{n\in \mathbb{N}}$ is a filtration inside the Borel sets. I am interested in recovering the asymptotic normality of a maximum likelihood estimator with...
I use Gaussian mixture model (GMM) to infer probability density of multidimensional data written as: $p(x) = \sum_{j=1}^{K}\pi_j*N(x|\bf \mu_j, \Sigma_j)$, where $K$ is a number of mixtures, $\pi_j$ are their mixing coefficients and $\bf \mu_j, \Sigma_j$ are corresponding mean vectors and covariance matrices. These par...
If we want to calculate $\mathbb{E}[X]$, we know this is $\int_{-\infty}^{\infty} x f_X(x) dx$. When we want to calculate $\mathbb{E}[X^n]$ (for, say, positive integer $n$), we also do this with respect to the pdf of $X$, i.e. $\mathbb{E}[X^n] = \int_{-\infty}^{\infty} x^n f_X(x) dx$. Why can we do this? Is $Y = X^n$ n...
I want to simulate an AR(1) process, knowing the last observation, but not the first. This should be an easy problem, but it does not seem to be so. Specifically, I can generate sensible average behavior, but the time series of individual units running through the process have a pronounced "kink" at the time I start ba...
Suppose that we make measurements of an effect, and we know that the values that we obtain follow a normal distribution. But we don't know the mean nor the variance. The hypothesis is that 95% of the measurements are below a threshold $\theta \in \mathbb{R}$. So far, I have tested this with a binomial test. If I have $...
I have a multi-class problem that which classes are simultaneously mutually exclusive and have ordering. You can think of the classes as being some score: 0 (Low), 1 (Medium), 2 (High). What I would like to do is make a custom loss function that will capture this characteristic. Following from Section 7.2.1. XGBoost's ...
I am trying to understand sklearn's function for computing the roc_curve. If I understand correctly, one needs the TPR and FPR to compute ROC. However, sklearn's function takes as input - y_true, y_score. How does one compute TPR with y_score, when it's a probability estimate of the positive class? That doesn't tell wh...
Assume we have 2 predictors $X_1$ and $X_2$ and an outcome $Y$ that we wish to model with the following function $y = e^{\beta_0} * X_1 ^{\beta_1} * X_2^{\beta_2}$ Also assume that we have some priors for our parameters $\beta_0,\beta_1, \beta_2$ and we run MCMC as to generate posterior samples of our parameter estimat...
Latent Class Growth Analysis and Growth Mixture Models (synonyous; henceforth referred to as GMM) explain between-subject heterogeneity in growth on an outcome by identifying latent classes with different growth trajectories. The below tutorial refers to how to implement them in R using the packages "lcmm" and "flexmix...
This question was already asked at Stackoverflow - R Language Collective, but they said this might be a better place to post this question, so here I am. I'm doing the statistics in R. I have this database with over 6,000 entries and 75 variables. I want to make a few models. The outcome variable is always mortality. T...
This question relates to: How to pick the winner in the "Play the Winner" treatment assignment scheme (Urn model) which is like a Pólya urn model where the additions of balls into the urn relate to an additional randon variable. Let's start with an urn that contains $x=2,y=1$ red and green balls.* Pólya urn: We draw r...
I'm using coyote telemetry data to understand the impacts of various environmental characteristics on their survival. The data I have includes the locations of a few hundred animals throughout their tracking period, mortality data for the animals who were recovered postmortem, and the birth year of some individuals. I ...
This may seem like a pretty simple question, but I want to make sure I am getting this right because it seems pretty foundational. I'm reading this note on conformal prediction. In the very first section the scenario is this: We collect i.i.d pairs $(X_i, Y_i)$, $i=1,\dots,n$ from distribution $P$ on $\boldsymbol{\math...
Assume we want to estimate the following model $y = e^{\beta_0} * x_1^{\beta_1} * x_2{\beta_3}$ which we can linearize into $\log(y) = \beta_0 + \beta_1 * \log x_1 + \beta_2 * \log x_2$ Assume that the IV's can have zero value entries. To deal with this why does one not just insert indicator variables as: $\log(y) = \b...
I am currently reading the book "Forecasting with Exponential Smoothing: The State Space Approach". On the bottom of page 14, it says that “In the special case where $\alpha=\beta^*$, Holt’s method is equivalent to Brown’s double exponential smoothing”. I also found a similar statement in the Duke university’s online ...
A (essentially) tau-equivalent model has the following specifications: the factor loadings are constrained to be equal the intercepts are constrained to be equal (tau-equivalent) or allowed to vary freely (essentially tau-equivalent) the residual variances are allowed to vary freely When specifying this type of model...
A model was fit as below: m1 <- lmer(log (ld50) ~ var * strain * time + (1|rep) + (1|rep:var) + (1|strain:env), dt) The response ld50 ranges from 0.15 (lower bound) to 93.77 (upper bound). There are several datapoints at these bounds. The residual plots look like this: What is the best way to transform the dataset? W...
I am currently interested in modelling the time of related events, and I am currently confused as to how to incorporate all different sources of information in a single model. Consider a toy example with two events $A, B$ which happen at times $Y_A, Y_B$ respectively. We may have information on when these events may ha...
I am currently working on data representing the abundance of microorganisms in a categorical way, like 0 = no organisms; 1 = 1-5 organisms; 2 = 6-10 and so on (5 being the highest number). And i am not quite sure which dissimilarity index is best to use with vegdist for that kind of data, to then do Pcoa etc. So i want...
I have been reading about experimental design, and Randomized Complete Block designs (RCBD) in particular and I have a few queries. What exactly is a randomized complete block design ? Is there a standard definition? When should we use this kind of design ? How do we create one, and how do we analyze it (in SAS ideally...
I am currently working on data representing the abundance of microorganisms in a categorical way, like 0 = no organisms; 1 = 1-5 organisms; 2 = 6-10 and so on (5 being the highest number). And i am not quite sure which dissimilarity index is best to use with vegdist for that kind of data, to then do Pcoa etc. So i want...
I'm very new to mixed models (this is my first attempt) and have about 2 months experience in R so please forgive my ignorance. I am seeking guidance on my current project analysing the relationship between floral species richness and pollinator abundance using a Generalized Linear Mixed Model (GLMM). Summary of curren...
Goal My analysis goal is to estimate the expected value of the outcome variable under three different conditions defined by a set of 3 categorical explanatory variables with two levels each. However, my model also has many categorical variables which i'm treating as covariates (or "nuisance variables"). Background The ...
I have two linear regression models: one with intercept term, and the other is without. I wanted to compare the models based on their parameters. MLE estimator for intercept model is well known to be equal to $$ \hat{\beta_1}= \frac{S_{xy}}{S_{xx}}=\frac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sum (x_i-\bar{x})^2} $$ and MLE ...
This is question 10.6(c) from Time Series and Forecasting (2nd Edition) by Brockwell and Davis. The parts (a) and (b) of this question can be found here in another SE question. Question: Suppose that $\{Z_t\}$ is a causal stationary GARCH($p, q$) process with $Z_t = \sqrt{h_t}e_t$, where $\{e_t\} \sim$ IID($0,1)$, $\su...
I know that if it says < 3.9e-11 it is significant because it is less than. But this time it has no < symbol, just the value of 3.9-11. Does this mean its not less than or is it still significant? does it need to have the < symbol for it to be less than 0.05? I know that the symbol e means that its very small but i jus...
I got two questions which are somehow closely related: Let's take the famous study of Acemoglu et al. (The Colonial Origins of Comparative Development: An Empirical Investigation) as an example. When replicating you will discover, that in the first stage (i.e. regressing the endogenous variable, which in the study is a...
My first post of StackExchange. I am working on data analysis project for comparison of fraud and nonfraud transactions. My objective is to compare the feature vectors of nonfraud transactions and compare them to fraud transactions. For this I am computing similarity scores between nonfraud and fraud transactions based...
I'm having a hard time trying to figuring out how to resolve a problem that involves a Poisson distribution and a Binomial distribution. Let's suppose that the total number of offspring (sons and daughters) in a randomly chosen family can be described as a random variable with a Poisson distribution parameter λ = 1.8. ...
I have data from a longitudinal study, specifically MRI data and performance on a neuropsychological test at two time points. I would like to test whether the change in gray matter in Brain Region A is a better predictor of the change in my neuropsychological measure than the change in gray matter in Brain Region B. Wo...
I am confused about how best to compare means when the sample is small and they are not normally distributed. I have survey data which measured the mental wellness status of a very small sample of a known population size (~5,000). To report the difference in wellness scores according to different categories (e.g., sex ...
Description of the experiment Each experiment is a performance done by an artist/athlete, and these are independent. I have $k=4$ judges labelled $J\in \{1,2,3,4\}$ that can classify a performance into one of $m=5$ categories labelled $C=\{Elegant, Powerful, Graceful, Technical, Instinctive\}$. Observing $N=200$ experi...
I am conducting a service evaluation study and want to assess the association between referral type (self vs. clinician) and gender (Female v Male v Other). Therefore my contingency table is 2x3. I have counts that are less than 5 e.g. Other - Clinician referral = 1, Other - self-referral = 0 as so thought Fisher's is ...
I have a population-based cohort and am exploring between two approaches to 1:1 matching: Hard matching that includes the logit of the propensity score (one step) Hard matching then creating a propensity score and performing propensity score matching (two steps) I've found papers that use approach 1 and papers that u...
Coupling from the past (CFTP) is a Markov chain Monte Carlo method for sampling exactly from a distribution. Briefly, in its vanilla form, CFTP simultaneously simulates a Markov chain starting from each state in the state space. Whenever two (or more) chains arrive at the same state during simulation, they coalesce (i....
I'm working on a project to classify customer requests based on a dataset that includes request descriptions, labels and sentiments. The goal is to predict the label (and sentiments) of customer requests (using a supervised algorithm). Here's an example of my dataset: descriptions labels sentiments Customer req...
Below is a made up scenario to exemplify my issue. I have two questionnaires asking individuals how much headache they have compared with 7 days ago. The scale is from much less through little less, same, little more to much more, coded as -2, -1, 0, +1, and +2, respectively. This was asked in two different ways: how m...