instruction
stringlengths
9
38.7k
Statement of the Problem Suppose $Z = (X, V)$ with $$ \begin{align} X &\sim \mathcal{N}(\mu_X, \Sigma_X) \\ V &\sim \mathcal{N}(\mu_V, \Sigma_V) \end{align} $$ I write $p_Z, p_X, p_V$ for the distributions of these random variables. I wanted to check that if $f$ is an invertible transformation and $Z^{(i)}\sim ...
I’m trying to do my data analysis (SPSS) for my thesis and I’ve been stuck for days. My supervisors also don’t know what test is best or they don’t respond to emails. I have 1 continuous MV (sleep score), 1 dichotomous IV (2 different samples), and 1 continuous DV (school test score). I wanted to compare the two sample...
I'm reviewing kernel density estimation (KDE), maximum likelihood estimation (MLE) and expectation maximization (EM) algorithm for density estimation and struggling to differentiate what each algorithm's merits are compared to it's predecessor. I'm aware that if data has two or more peaks, i.e., it came from two or mor...
For a Markov chain $X \rightarrow Y \rightarrow Z$, we have the following data processing inequality: $I(Y;X) \ge I(Z;X)$. Now for the Markov chain, $(W,X) \rightarrow Y \rightarrow Z$, can we prove that the following inequality holds true: $I(Y; W,X) \ge I(Z; W,X)$? Also can we prove the followup inequality: $I(Z; Y) ...
I am log-transforming my predictor variables to meet the linearity on the logit assumption for logistic regression. In so doing, I am adding a constant to ensure the minimum value is 1 . My question is, if I then standardize my columns (e.g., min-max scaling), I will again end up with zeros that I will have to add a co...
I want to get verified if I can say like this. here is the GLM output: glm(formula = purchase ~ PC1 + month + weekday + job, family = binomial(link = "logit"), data = data_train) Deviance Residuals: Min 1Q Median 3Q Max -2.4295 -0.8625 -0.5331 0.8478 2.1372 Coefficients: Estimate S...
In hierarchical multiple regression (not to be confused with hierarchical linear models that account for variance components), you add model terms by block. The fit of the new model is measured by the difference in multiple R-squared values and an F-test involving the residual sum of squares of each model. My question ...
From the general linear model, we know the following : $E(\pmb{\hat{\beta}}) = E((\mathbf{X}^T \mathbf{X})^{-1}\mathbf{X}^T\mathbf{Y}) $ and $Var(\pmb{\hat{\beta}}) = \sigma^2(\mathbf{X}^T \mathbf{X})^{-1}$. Does that hold true when interaction effects are included, that is $\mathbf{X}$ contains variables and the prod...
Let's say I have 4 groups of football fans, and I want to see who screams loudest, and I want to run an ANOVA. My dependent variable is loudness, and my independent variable is Fan_Type, with 4 levels. Do my residuals overall need to be normally distributed, or for each group? It seems like what I've been reading is th...
If I have a linear model $$ Y = X_1 \beta_1 + X_2\beta_2 + e$$ where $X_1$ is endogenous to $e$ but $X_2$ is not, then simply performing OLS will yield an unbiased estimate for $\beta_2$ but not $\beta_1$. As a whole, this seems intuitive, but I am having trouble proving that the estimator is indeed unbiased for the $\...
I was reading this answer to a question that asked why TD learning was biased. The answer showed that TD learning was biased due to the starting value of the value function: \begin{align} V_{n+1}(s) &= V_n(s) + \alpha[R + V(s') - V_n(s)] \\ &= (1-\alpha)V_n(s) + \alpha(R + V(s'))\\ &=(1 - \alpha)[V_{n-1}(s) + \alpha[R ...
I am working on an algorithm which will detect the anomalies in multivariate timeseries. Suppose there is a time series My algorithm will compute two equations: lower_equation_y and upper_equation_y. lower_equation_y = slope1 x X1 + slope2 x X2 + slope3 x X3 + lower_bound_intercept upper_equation_y = slope1 x X1 + s...
Suppose that I observe i.i.d. draws of two independent variables, $X$ and $Y$. My goal is to estimate $\mathbb{P}(X < Y)$, preferably in a consistent and unbiased way. How exactly should I do this? Example and proposed approach. To illustrate, suppose that my draws of $X$ are $(1,2,1,2)$ whereas my draws of $Y$ are $(2...
The problem is: Consider the “triangle” learning model, where $h : R^2 → \{−1, +1\}$ and $h(x) = +1$ if $x$ lies within an arbitrarily chosen triangle in the plane and $−1$ otherwise. Which is the largest number of points in $R^2$(among the given choices) that can be shattered by this hypothethesis set? The answer is...
I'm working on a study where I want to explore whether two covariates, let's call them C and D, can help explain the differences we observe in our dependent variable, which we'll call B (depression scores). To do this, I'm using another predictor variable, A, which has five different groups (ADHD, ASD, Dyslexia, Dyscal...
I have an issue when calculating log-likelihood for null model to double-check GLMResults.llnull parameter: https://www.statsmodels.org/devel/generated/statsmodels.genmod.generalized_linear_model.GLMResults.llnull.html#statsmodels.genmod.generalized_linear_model.GLMResults.llnull First I generate some data: from scipy....
Let $X$ be a binomial random variable, $X \sim \mathcal{B}(n,p)$. When $k > \mathbb{E}[X] = np$, are there no Hoeffding-like bounds on the probability $\mathbb{P}[X \leq k]$? When $k \leq \mathbb{E}[X]$, it is easy to find that $\mathbb{P}[X \leq k] \leq \exp\{-2n(p-k/n)^2\}$, by means of the Hoeffding bound. When $k >...
Two sets of methods for correcting for selection bias are g-computation (standardisation) and inverse probability of censoring weighting (IPCW). I'm having a difficult time understanding how to apply the former. As a demonstration, I generate some data from the following DAG - Figure 8.4 from Hernan and Robins Causal I...
I am performing an analysis on different values of complement (in total 18, 9 in blood and 9 in CSF). We aim to analyze if any of these complement values: Differentiate between 3 diseases (Disease 1, Disease 2 and Disease 3) Predict 3 different outcomes (EDSS at last follow up (numerical, with a quantile regression), ...
I'm currently studying a paper by Winkler et. al on permutation inference for the general linear model and am confused by their reasoning and notation. They first introduce a formulation for the general linear model: Y = M ψ + ϵ (Eq. 1) where Y is the N × 1 vector of observed data, M is the full-rank N × r des...
I want to simulate data from distributions that are not normal but have equal mean give mean example for these distributions For example, I have this example for non-normal distributions but have different means set. Seed(1234) a<-matrix(rlnorm(30*100, 0,2),100) b<-matrix(rcauchy(30*100,1,1),100) c<-matrix(rt(30*100,4)...
I have simulated data of a 4-dimensional random variable $(X_1,X_2,X_3,X_4)$. The individual pdfs of these random variables, i.e., $X_i$ where $i\in\{1,2,3,4\}$ turns out to be stable distributed with no mean and variance. Though I am able to use fitdist MATLAB COMMAND to fit these distributions to Weibull distribution...
I calculated Cramer's V by taking the square root of the chi-squared value divided by the product of the sum of all observations and the number of columns minus one. My p-value comes from the bootstrapped sample. The question is does the chisq.test() in R compute also the chi-squared value from the bootstrapped sample?...
In information geometry, we consider a manifold of probability distributions, together with the Fisher Information metric (given by the Fisher Information matrix). I have some intuition (see Wikipedia) for what the metric means locally, i.e. the length of infinitesimal vector $d \theta$ on tangent space of point $\the...
The aim of my question can be better illustrated by this quote extracted from the third chapter of Elements of Statistical Learning (link to book): I'm trying to understand why, given that the error term follows a Gaussian distribution with mean 0 and constant and finite variance, do the coefficients also follow a Gau...
I'm planning to run a regression analysis to estimate [adjusted] relative risk of a binary outcome data (essentially, analyzing the relative risk or risk ratio of an event happening), using a number of independent variables with values ranging from 0-7 (discrete), with survey weight; therefore, I suppose the "survey" p...
This question was asked six years ago but figured it was worth an update. I'm attempting to filter news data based on a set of keywords. I think the ideal process for this would be some form of: Input keyword list -> Identify additional words that commonly occur with this seed list in vector space. -> Tag all articles...
Lets say I have a collection of tensors, each tensor representing a time series with 64 points and 4 features. The dimension of each tensor would be [64,4]. I am trying to classify these series. For that I am first passing these tensors into a Transformer Encoder (having 2 attention heads and 2 encoder layers) that out...
I am solving the Laplace equation $\nabla^2 u = 0$ on a 2D equispaced grid (spacing $ h $) with boundary conditions $ u(x=0) = 1 $ and $ u(x=L) = 0 $. My solver is approximate, yielding a solution $ u_{\text{approx}} $ with local errors at each grid point. I derive a parameter $ M $ from $ u_{\text{approx}} $ as follow...
I am using the Python package giotto-tda to calculate persistence diagrams of certain 3d point clouds using a Vietoris Rips filtration and euclidean distance. I am especially working with 1 and 2-d persistence, i.e. cycles and voids. Question: Do anyone know if there's a way to get representatives of a homology class f...
I am new to this. My study has three conditions (between subjects - low coordination, high coordination, high coordination with ostensive cues) and three repetitions of a game (within subjects - Game 1, Game 2, Game 3). The outcome variable is binary (i.e., participant's left the game, they did not leave the game). I'v...
My definition of a random vector is a vector $(x_{1},...,x_{n})$ that maps from a sample space to ${R}^{n}$. An example of this (in my understanding) would be a random process such as drawing one card from a deck. Let us say all potential suits of the card are the sample space {hearts, clubs, diamonds, spades}. An exam...
I am trying to understand the backpropagation algorithm in a multi-layer perceptron environment. Algorithm 6.4 Backward computation for the deep neural network of algorithm 6.3, which uses, in addition to the input $\boldsymbol{x}$, a target $\boldsymbol{y}$. This computation yields the gradients on the activations $\...
I would like to do a placebo test to ensure the result of my main staggered DID results. I have a country-level mandate that goes into effect in different years during my sample period, and in some countries, there was no mandate. I examine the effect of this mandate on firms' outcomes in an international sample from 2...
My outcome is a child cognition scores (y). I will skip the exposure for now. My covariates are regular features like , childsex, Mother's BMI, AgeAtAssessment, Mother's Alcohol consumption, Mother's Tobacco use and Centers where the subjects were recruited for study. The general data distribution shows random missing...
If you have a roulette table that has 7,000,000 places and you have 10 balls (and only one ball can fit onto each number at every roll), how many rolls would it likely take for a ball to land on every number?
I'm not completely sure if this question has been asked before, but I couldn't find one that suit my problem so far. So basically I am doing single cell analysis, and I have roughly > 100000 cells or samples (rows), and I calculated the pearson correlation between 2 variables (columns), in this case is gene expression ...
Question You can read the Machine Shop example in the SimPy documentation, however I have tried to put it into its mathematical description below so that reading Python is not necessary. Suppose a workshop with $n$ identical machines. Any machine is either working or broken, and each machine begins in the working state...
Say $\mathbf{Y} \sim \mathcal{N}(\mathbf{\mu}, \mathbf{D})$ where $\mathbf{D}$ is diagonal and $A$ is any real matrix, how could you calculate $\mathbb{P}(\mathbf{Y}^T\mathbf{A}\mathbf{Y}>0)$? In the case $\mathbf{A}$ is diagonal I can see that it would be possible to write $\mathbf{Y}^T\mathbf{A}\mathbf{Y}$ as a non...
I am currently working on an analysis project involving simultaneous testing of several hypotheses. I intend to use the multcomp R package, which calculates the family-wise error rate for multiple hypotheses based on the multivariate normal- / t- distribution, as I understand. Before I use the multcomp package, I would...
I have a count data, and most of my explanatory variables are binary (they represent different types of support given to a group). Three variables seem to be correlated with each other. I don't want to drop any of them as the categories are different and essential. So, I thought maybe I could create another variable co...
One of the OLS assumptions concerning the $X$-matrix (with a constant) is that the columns $(1, x_{i1}, \ldots , x_{iK})$ are not linearly dependent. This looks intuitive to me, because of the dummy-variable trap. In another text book I found the assumption is $E[x_i x_i']$ is positive definite and finite and that the ...
I have two time series. One is an actual recording of physiological signals, the other is a binary representation of activations (0 or 1) based on a simulation of the process underlying the physiological signals. The simulations are not aligned with individual recordings of the physiological signals, nor can I assume t...
The following is the precursor to the policy gradient algorithm Why is the return $r(\tau)$ over the trajectory taken out of the gradient as if it is constant w.r.t the policy parameters $\theta$. Is it not that if the trajectory $\tau$ depends upon the parameters then the return should too
It is possible to find discrepancies between the results of ANOVA and post-hoc tests. The results of post-hoc tests are valid (with the exception of the Fisher LSD test) even if the overall P value for the ANOVA is greater than 0.05 (1, 2, 3, 4). How should such results be presented and interpreted? There are some ques...
Background Ordinary HMM Consider an ordinary Hidden Markov Model $\lambda = (\pi, A, B)$ with $N$ hidden states $\{1, 2, ..., N\}$ and $M$ observation symbols $\{v_1, ... v_m\}$. Let's denote a state $i$ at time $t$ as $q_t$. Then $\pi$ is the initial distribution $\pi_i = \mathbb{P}(q_1 = i)$ $A$ is the transition ma...
I have a dataset where the subjects are job contracts. It spans from the 80s to 2019. Each contract has a start of contract and end of contract date, unless they were still active in 2019 in which case their end of contract date is "2099". I want to use survival analysis for the duration of contracts during different t...
I am using bootstrapping to estimate the standard error of a weighted estimate. The process to calculate the estimate is: Sample from the population Calculate a weight for each individual based on their and other individual's covariates (the goal is to have the sample marginal covariates better resemble those in anot...
I have weekday data ($n = 1551$) from the past 5 years (2019-2023) with attendance at a large restaurant. I am just getting started, and for each weekday I calculated the mean and the variance as per (rounded to 0 decimals): Weekday Mean Variance Mon 48 1320 Tue 51 1505 Wed 49 1490 Thu 47 1531 Fri 44 13...
I have 2 research questions, dependent variable of 1st question is a binary variable and I use logit regression to estimate it on STATA. The dependent variable of second research question is in percentage (proportional variable, between 0 and 1 including 0 and 1). I use fractional response regression on Stata. In both ...
I have DNA and RNA counts of 4 time points with 4 replicates. I want to quantitate the change in RNA copy number relative to DNA copy number for each gene in the genome. I especially interested to test if there is a linear relationship between these two. I am thinking of using linear mixed effect regression model to ac...
Let $(\mathsf{X}, \mathcal{X})$ be a measurable space, $\pi(dx)$ be a probability measure on it, and $K:X\times\mathcal{X}\to[0, 1]$ be a Markov kernel. I have the following property $$ \int K(x, A) \pi(dx) = 0 $$ In the textbook then they say that this means that $\pi$-almost surely $K(x, A) = 0$. I don't understand ...
I have two independent samples 1 and 2, and want to test a null hypothesis that the median of sample 2 is lower or equal to the median of sample 1. Is there a non-parametric test for that?
I conducted a hierarchical cluster analysis in R on a pool of 20 words that have certain common traits. I used hclust(). After, I did multiscale bootstrap resampling using pvclust(). While smaller-level clusters have very similar or even the same AU and BP values, the more the cluster becomes general (the more subclust...
I would like to use an Bayesian approach to compare a continuous non-normally distributed variable taking values between -1 to 1 between two populations. The measurements are not paired. Overall my data is comparable to the example shown in fitting a distribution to skewed data with negative values (in the sense that i...
I have some 1-D spatially distributed count data, and I'd like to model it as a function of a relatively smooth latent variable. I've managed to get a version of this to work using a Gaussian process in Stan, but I'm wondering if there might be a simpler, more appropriate or faster alternative, since my data differ som...
Question: Suppose that $\boldsymbol{Y} = \boldsymbol{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}$, and the errors have zero mean, and are uncorrelated with constant variance. Let $\hat{\boldsymbol{\beta}}$ be the least squares estimator of $\boldsymbol{\beta}$. Let $\boldsymbol{H} = \boldsymbol{X}(\boldsymbol{X}^T \bo...
I am running a fixest effects regression of the following model. $$Y_{it} = \beta_0 + X_{it}\beta_1 + T_{1it}\beta_2 +T_{2it}\beta_3 + X_{it}T_{1it}\beta_4 + X_{it}T_{2it}\beta_5 + \alpha_{it} + \epsilon_{it}$$ where, for simplicity, $Y_{it}$ is continuous while $X_{it}$ and $T_{jit}$ are categorical. (In fact, there a...
I am running an ecological/environmental experiment in a salt marsh with 5 experimental treatments and 3 replicate soil samples taken from each treatment. I have been taking measurements from these treatments across three seasons, giving me three timepoints for my experimental variables. I want to run a mixed effect mo...
I am trying to develop a linear mixed-effect model for a dataset with a somewhat complex nested structure. The scenario is roughly the following: I am measuring the attention level of students at different points in a school year. The highest level of my hierarchy is District, which is marked as either Liberal (L) or C...
I have the following variables: $\beta,\Omega,\tau$. $\tau$ is a hyperparameter for the prior on $\beta$. For a fixed $\tau$, I have the conditionals:$p(\Omega|\beta),p(\beta|\Omega)$. To generate samples from the joint distribution, I would adopt the following Gibbs Sampling scheme at each time $t$. Sample $\Omega^{t...
I have not come across a contrast matrix like the one I would like to make. To put it in situation. I have the following model: design_matrix <- model.matrix(~ factor1*factor2, data = data) factor1: Has 4 different levels. factor2: Has 3 different levels. response: single cell log normalized count data My data dimens...
In Wooldridge's advanced book, on page 105, the F-statistic for 2SLS regression is introduced. Let me illustrate the computation step by step with the following concrete example: \begin{equation} \text{ln(wage)} = \beta_0 + \beta_1 exper + \beta_2 exper^2 + \beta_3 educ + \beta_4 kidslt6+ \beta_5 kidsge6 + u \label{w...
I am estimating a marketing mix model on sales using linear regression. My goal is to estimate the effect of marketing and branding on sales (not forecast the future). I have 4 years worth of monthly sales and media data and I want to use seasonality as a covariate in my analyses because there is a clear seasonal sales...
If I have a dataset with cases and controls ( cases being people with colon cancer, control are people without colon cancer), and for each case or control, there are multiple relatives linked to them with their own variables. The rows are duplicated because one person can have multiple relatives. We would like to inves...
1: If there is an overfitting risk in the ensemble technique whether random forest or boosting method, we can use the early stopping hyper parameter so that we can stop training if we feel like there is overfitting in the training set? For random forest, we can still have overfitting if we have too many complex trees....
Say I have a population size of 1000 students from schools in different towns (assume they are in the same class year, of mixed gender, same country/state). The mean, variance and standard deviation of their height is M0, V0 and ST0. From this, I create three subsets Subset 1 (a random sampling of 100 students = M1, V...
I am using data from the Medical Expenditure Panel Survey (MEPS) to create panel data. My question is whether it is appropriate to include dummy variables, a fixed-effect term, and a random-effects term in one model. I will be using R for this analysis. For simplicity, my data is structured as follows Person Househ...
I want to test/prove if two regressions are fundamentally the same thing. But first, make this a reproducible example. Create the levels for each factor variable levels_a <- c("A1", "A2", "A3", "A4") levels_b <- c("B1", "B2", "B3") levels_c <- c("C1", "C2") Generate all possible combinations of factor levels combinati...
I am interested in the effect of an intervention on an outcome. We have set up a quasi-experimental design where we are comparing participants that received certain inputs to participants that did not receive the inputs because there were not enough to go around but they would have wanted to if there was. However, not ...
I am trying to conduct a sensitivity power analysis for a (2x2) ANOVA. The participants all received trials based on color or shape, and items could be either old or new. In G*Power I have the following information included into the analysis: a err prob = 0.05 Power = .80 Total sample size = 15 Number of groups = 1 Num...
I have a problem where I have to think of an example to explain a practical example of consistency and unbiased. The example I thought of is the sample mean. Consistency is when the estimator (sample mean) reaches the population mean when the sample size becomes infinity. Unbiasedness is when the estimator (sample mean...
Suppose we've got a dataset with a very large number of samples (say, billions), and a smaller number of features (say, hundreds). To calculate the coefficients of a single a ridge regression model, all we need are $X_{train}^TX_{train}$ and $X_{train}^Ty_{train}$, which are small and can fit in memory. However, it see...
I am running a Poisson model using glmer to look at the effect of a treatment on fat scores (scale from 1-5, hence the Poisson) of an animal. There are multiple timepoints in which fat scores were taken, so since there are repeated measures, I have a random effect of Animal ID added to the model. The model looks someth...
Hello, Would be nice if you could review my graph and tell me if there is something wrong or not. The context is that it uses a MLP.
I have an OLS model implemented in a rolling window scheme. The estimated params $\beta$ do change for each window, and the entire intention is to capture any structural change, but they should not be too "jumpy" either. I looked into tests such as MOSUM, and more generalized Chow tests, but on those metrics, the scena...
In the paper "Firms and Labor Market Inequality: Evidence and Some Theory" by David Card and coauthors (2018) I find this passage, where a logit choice probability is closely approximated by exponential probability in the case of a large number of possible choices. Can anyone explain the algebra behind this approximati...
Consider the problem of performing dimensionality reduction from a vector space $V_{1}$ of dimension M to another one, $V_{2}$, of dimension N, where N<M. Is there a technique or theory which guides how to map domain boundaries from $V_{1}$ to $V_{2}$? For example, say that the data in $V_{1}$ must satisfy min and max ...
Consider the following partially-defined Bayesian network: We know the probability of C given A is True and B is False We know the probability of C given A is False and B is True We know that C can only be true if at least one of A or B is True We do not know the probability of C given A and B are both True. (To gro...
I am testing my algorithm on 20 different datasets. So, as a result I derived 20 F1 scores based on precision and recall for each run (dataset). Is there any way to combine all these 20 F1 scores into one metrics or summary statistics to report how the algorithm performed on the 20 datasets?
Sorry if some of my terminology is off, I hope I can make the problem clear. I have two (independent) time series on the same plane, one trending slightly upwards and one slightly downwards, towards each other. At some point t=x, I use a Gaussian process to predict the future trajectory of both these time series, givin...
I am using dsrTest to calculate the directly-standardised rate and confidence intervals for some data I have. Example below: Year Sex Count Population StPop 2020 M 200 1000 5500 2020 F 300 1000 5500 2020 M 150 1000 5500 2020 F 400 1000 5500 I use this, which does work, but only on one row at a time, o...
When attempting to model univariate data (although, this could easily be extended to the multivariate case) that is unevenly spaced over time, a natural approach to be able to apply common time series methods would be to treat time as another variable to be modeled so that each observation is then a pair of a unix time...
I would very much like you all to answer this question of mine. I found it in a 2009 paper that reported sample sizes in the form of N=7-8, N=4-8, and so on (doi:10.1016/j.jdermsci.2009.07.001enter link description here ). Meanwhile I can't find its supplementary material and raw data. Can tell me how to deal with thi...
When we perform mini-batch GD, we estimate the true gradient: $$\nabla L = \frac{1}{N} \sum_i \nabla L_i$$ with: $$\nabla_B L = \frac{1}{B} \sum_{i \in B} \nabla L_i$$ where $B$ is the batch size. Notice, that the true gradient can be thought as the expectation value of a uniform distribution ($p_i = \frac{1}{N}$ for e...
I'm working on utility functions for discrete choice modelling, preferences are often modelled using quadratic preferences, which look like $$u(z) = a + q'z - z'rz$$ where $z$ are a vector of attributes, $q$ is a vector of parameters, $a$ is a constant and $r$ is a $n$ x $n$ parameter matrix. In this case if $r$ is of ...
I've got a question where there is a population of observations in (x,y) data points. y is mean independent of x (equal to zero no matter where x is conditioned at). Could the covariance change if we added more data points that keep y mean independent?
I found this equality on p.6 in this document proving that Bayes Predictor is optimal (i.e. it achieves the minimal generalization risk) amongst al hypotheses: $$ \mathbb{E}_{(x, y) \sim \mathcal{D}}[\mathbb{1}_{[f_{\mathcal{D}}(x) \ne y]}] = \mathbb{E}_{x \sim \mathcal{D}_{X}}[\mathbb{E}_{y \sim \mathcal{D}_{Y|x}}[\ma...
I need your help to solve a classification problem. Typically, we have independent variables and we try to predict a target variable. I have a different type of problem to solve. In my case, let's take a simple example. Suppose I have a database with 6 variables: "white_blood_cells," "age," "weight," "gender," "medicat...
I have a scenario where 3 subjects evaluate 12 cases of a problem with two pieces of equipment. Each subject evaluates each case with equipment A, then equipment B. The outcome variable is binary, 0 (the subject came to an incorrect conclusion) or 1 (the subject came to the correct conclusion) My hypothesis is that equ...
Consider a Markov model with two absorbing states $a$ and $e$ and three transient states, with an associated transition probability matrix like so: $$\begin{pmatrix} 1 & 0 & 0 & 0 & 0 \\ p_{ba} & p_{bb} & p_{bc} &0 & 0 \\ 0 & p_{cb} & p_{cc} & p_{cd} & 0 \\ 0 & 0 & p_{dc} & p_{dd} & p_{de} \\ 0 & 0 & 0 & 0 & 1 \end{pma...
I cannot understand why in a ridge regression if I remove some coefficients from the penalty term I have a stronger shrinkage of the remaining coefficients that are included in the penalty term. From the data I obtain I believe this statement, but I cannot understand how this happens. Because the lambda tuning paramet...
If I take some estimator X. Lets say that X is unbiased. Suppose I have 100 samples and each sample has 5 points. I now calculate the value of X on each sample. Because X is unbiased, this means that the average value of X will equal to its population value (ex: real value)? And because X is unbiased, this will be true...
My question is about rank aggregation, which is in relation with statistics and decision sciences. (if this question is off the topic of this site, plz let me know.) The question is that I have N candidates and N ranking lists in which each candidate is omitted, that is, candidate 1's rank is omitted in the 1st ranking...
Many well-known methods address specific forms of model uncertainty that can be adjudicated empirically. For example, if we are fitting a predictive model and there is uncertainty about the set of covariates that have nonzero coefficients, common approaches to variable selection will in principle find the "right" model...
I have data that looks like this when I plot a histogram. I have this data for several years (this is a count of values per group) and each year looks very similar. Is there a way that I can: more accurately describe this distribution (with words or with a function) compare a distribution from the current year to pr...
I have trained a DRF model using h2o and the shap summary plot came out like this. Why aren't feature contributions centered? It seems weird that one feature contributes negatively and all the others positively. How should I interpret this? Is this an indication of a problem in my data?
I am looking at an I(1) process for an AR(3) model: $$x_t=\theta_1x_{t-1}+\theta_2x_{t-2}+\theta_3x_{t-3}+\varepsilon_t$$ I rewrite it using the lag-operator: $$(1-\theta_1L-\theta_2L^2-\theta_3L^3)x_t=\varepsilon_t$$ And the I factorise the characteristic polynomial: $$(1-\theta_1z-\theta_2z^2-\theta_3z^3)=(1-\phi_1z)...
I am working on a multi-level logistic regression model with a binary outcome and a circular predictor. Thanks to this post, I know that I have to add sine and cosine of the circular variable as a predictor and that I can calculate the amplitude $a$ and the phase shift $\phi$ from the regression weights $w_1$ and $w_2$...
I want/need to analyse the influence of certain parameters on the share of cycling in the total number of trips. What I have is a database of more than 960,000 trips within Germany in 2017, containing: Trip data: length, mode of transport, weather, purpose, ... Personal data: age, attitudes, access to car (y/n), drivi...