instruction
stringlengths
9
38.7k
After trying to understand different implementations of intraclass correlation (ICC), inter-rater reliability, and bland-altman statistics, I'm not quite sure what is the right choice here, and would appreciate being set right. I am analysing data from an experiment with human participants using two commonly employed, ...
I need to calculate the sample size for a proposed logistic regression. For the dependent variable, outcome is coded as disease or no disease. The major predictor is a continuous variable. There are 10 potential covariates but some might be removed after model fitting, due to not being statistically significant or clin...
bb <- function() { y <<- c(0,sort(runif(9999)),1) x <<- seq(0,10000)/10000 y <<- y-x } plot(x,y,type="l",asp=30) abline(h=0) The R code above shows you the graph of a Brownian bridge – a random function whose probability distribution is the conditional distribution of a Wiener process given that its value at $1$ (and ...
I have counts (from multiple cell types) here only tumor is shown. I want to quantitatively define the clusters below as tumor rich/tumor poor based on tumor count. Tumor count represents no. of tumor cells in these clusters. What is the appropriate statistical test I should use to say e.g. Cluster 0 is tumor rich com...
I understand what linear (w.r.t. coefficients) models are. For example, the power model $Y=k X^p$ is nonlinear..$Y= \beta ^X$ is also nonlinear, etc. Ordinary-least-squares (OLS) is one of the many methods used to estimate the coefficients for a model like $Y=b_1 X+b_0$ (linear). We get nice formulas that estimate the ...
I have data from a survey which was asked people 1) how often they used a particular tool (daily, weekly, monthly, annually, etc) and 2) many hours they usually spent using it (0 - 4 hrs, 5 - 9, 10 - 14, and so on) My ultimate goal is to compare access frequency and usage amounts between different tools and identify to...
Consider the disc $|z-c| \leq R.$For the case of a unit disc ,the probability desnity of the distance from origin of a randomly and uniformly chosen point in the disc is given by \begin{equation} f(u) = \begin{cases} 2u, & \text{if } \quad 0 \leq u \leq 1 \\ 0, & \text{otherwise} \end{cases} \end{equation} However ...
I have a dataset with counts of events, population and time, and need to perform a meta-analysis of incidence rates (IRs) per person-month. By assuming random effects (thus, allowing for heterogeneity of variance across studies), and a Poisson distribution for counts of events (the parameter estimate for each study bei...
I have the following problem: I have a registration of people who enter a building, I have the name, entry date and end date. I also have the times at which events occur inside the building. I want to find patterns on said data. To do that, I have constructed a python program in which, for an specific person, I get as ...
I've started playing with BERT encoder through the huggingface module. I passed it a normal unmasked sentence and got the following results: However, when I try to manually apply the softmax and decode the output: I get back a bunch of unexpected tensor(1012) instead of my original sentence. BERT is an autoencoder, ...
An exponential family verifies a maximum entropy property: each density is the maximum entropy density given the expectation of its sufficient statistic. On the other hand, from my understanding, the entropy of the distribution at time t of a Markov process increases with t. Given an exponential family, is there a stan...
I have a dataset with 7 predictors and 1 numerical response. I am modelling them with different ML regression models (so far: SVM, tree, Gaussian Process, Ensemble and neural networks) in MATLAB. To further test the different combinations of the predictors, I tested every possibility of a combination of the predictors....
I have three test scores of a student. The three single scores are generated by an IRT-based test using computer adaptive testing and are reportet with standard error bars. For the report I want to calculate the mean of the three single scores. Is there a way to aggregate the three single standard errors into standard ...
I am in the following context: each patient has at least 2 measurements, but possibly more (up to 5 measurements), of a given biomarker. The first measurement is taken at baseline, but the date and number of subsequent measurements vary depending on the patient. We also have for each patient, additional adjustment cova...
I have two groups of vectors A = [[0 0 0 0 1], [0 0 0 1 0], …] and B = [[0 0 1 0 1], [0 1 0 0 1], …]. I want to find the pattern that differentiates the vectors in A from the vectors in B. How to do that? Example output: if both the 2nd and 3rd term and/or the 4th and 5th term are both equal to 0, then the vector belo...
I was reading about visualizing post-hoc tests and I happened to come across a Python package called Orange. Looking into the package, the function used for calculating the CD value seems to be deprecated, but I came across this copy of it. My question is about the values that are hard-coded, as shown below. I would re...
I have plotted a normal Q-Q Plot and a histogram to check the normality of this set of discrete data. My interpretation is the data are not normally distributed since they do not fall on the linear line and the histogram does not shape like a bell curve. However, for discrete data which contains lots of repeated value ...
I'm calculating the beta coefficients for some stocks using a single-index linear model with the OLS method. I'm computing the betas at different return intervals to assess the interval effect on the estimates. My question is, how do I handle outliers when the time horizon is 4 years? In some monthly returns (so around...
I want to analyze forest regeneration after a forest fire. I have a data frame containing NDVI values (NDVI_mean) (NDVI is a vegetation index for plant vigor) of different study sites (Treatment) over time (date). The study sites are grouped in different management treatments (Management1). This is the head and tail of...
We are working on a blood value biomarker type (lets call it NEW_bm) for a specific disease. We got data of 4 years follow-up and did a multivariable Cox-regression to see, if it has predictive capacity or not. We adjusted for several "usual" variables like age, sex, and some other already established blood values. We ...
I have several questions regarding this proof: Shouldn't the $\propto$ be used instead of the $=$ when we leave out the $\frac{1}{\sqrt{2\pi\sigma²}}$ ? Is a maximization problem simply inverted to a minimization problem by $\cdot (-1)$? Is the second last line correct? Why is $(-(y_i - (\beta_0+x_{i1} \beta_1 + ...)...
Consider a service like Netflix. A drop in user engagement is a leading indicator of churn (users unsubscribing). They try various things to keep people hooked. Other than making engaging content available, they have digital product teams working on improving these three factors: Number of titles watched - by improvin...
I would appreciate some help with the following problem: We have the following panel model: $y_{it} = h(x_{it}\beta + c_i) + \epsilon_{it}, \quad t=1,\ldots,T, \quad i=1,\ldots,N $ where \begin{align*} c_i | x_i &\sim \mathcal{N}(0, \sigma_c^2) \\ \{\epsilon_{it}\}_{t=1}^{T} &\text{ are independently distributed } \mat...
Context: Our company sells a product "A" to different region of the world. Our department measure the reliability of the product by measuring the % of product that failed and return by our customers. In each regions there are a several customers, but the same customer can't be in 2 regions. We measure customers satisfa...
I have data that looks like this: Here the first column is a factor with 2 levels (0 and 1) that represents whether a person played 2d game first or 3d game first (basically order of play). The last 2 columns are continuous variables represting score in 2d and 3d games. I want to answer the question that whether the s...
Edited to focus on the math (thanks whuber): Given a sequence $z_1,…,z_n$ of complex numbers and a fixed real number $σ$, find a sequence $x_1,…,x_n$ from the set $\{0,\pm1,\pm2\}$ minimizing $$ \sum_{j=1}^n|s_j-z_j|^2 $$ where $$ s_j=\sum_{k=1}^j\exp(ix_k\sigma) $$ $σ=(5/180)π$ The real problem is in 3D space and the ...
The following comes from a book called Bayesian Statistics by Ben Lambert: Assuming the following model for $r$ disease-positive people out of $n$ people: $$Pr(Z=r, \theta) = {n\choose r}\theta^r(1-\theta)^{n-r}.$$ The probability that one disease-positive is $\theta$ and the probability that two randomly chosen indiv...
HCV.Egy.Data <- read.csv("~/Stat/Metaheuristic ML/hepatitis+c+virus+hcv+for+egyptian+patients/HCV-Egy-Data.csv") table(HCV.Egy.Data$Baselinehistological.staging) HCV.Egy.Data$Baselinehistological.staging <- as.factor(HCV.Egy.Data$Baselinehistological.staging) library("randomForest") library(caTools) split <- sampl...
We have a dataset with a response (dependent) numeric variable called "CTIR", a fixed (non-random) independent/explanatory numeric variable called "Temperature" and a random factor called "Tank". We are using a Linear Mixed Model to explain the effects of Temperature on CTIR and accounting for the effects of the random...
In a meta-analysis of some research work, there are many situations in which the literature reported the mean values and their corresponding standard deviations in log-transformed forms. The question is: how can I transform back the SD to the normal values, is there any formula or equation that could help in this regar...
Let $\mathcal{X}$ and $\mathcal{Y}$ denote the domain set and label set respectively. Also let $\mathcal{D}$ be a distribution over $\mathcal{X}$ and $f:\mathcal{X} \to \mathcal{Y}$ be the true labeling function. So for generating the data, we first sample from $\mathcal{D}$ and then apply function $f$. We define the e...
I am solving this problem from Bishop's 1995 book on Neural Networks: In a multi-layer perceptron a hidden unit has a constant activation for input vectors which lie on a hyperplanar surface in input space given by $w^Tx + w_0 = const.$, while for a radial basis function network with basis functions given by the equati...
I am trying to understand the effect of migration of a male member on the employment outcomes of left-behind women. I have monthly observations for 5 years. I am using a fixed effects model with month level and year level fixed effects. The employment outcome is the number of hours spent on family farm by women. I reas...
I have 20 field plots. In each plot, I have taken between 1000–1500 measurements (continuous values) of a given variable using an instrumental device and recorded information qualitatively through three variables that can take up to, respectively, two, three and four categories (observed categories). I am interested in...
If in general one wants to apply the Frisch-Waugh-Lovell "Partialling Out"-approach, should we include constants and in which of the following regressions? (1) In the first stage where we regress X1 on X2 in order to get the residuals? (2) In the auxiliary stage where we regress Y on X2 in order to get the residuals? ...
I have a set of $X_1,...,X_n$ samples with covariance $\Sigma_1,...,\Sigma_n$. The multivariate sample mean is then $$ \left(\sum_{i=1}^n \Sigma_i^{-1} \right)^{-1} \left(\sum_{i=1}^n \Sigma_i^{-1} X_i \right).$$ The covariance is $$ \left(\sum_{i=1}^n \Sigma_i^{-1} \right)^{-1}. $$ However, I cannot find a formula for...
My rowdata in R, as revealed by str() shows that: Variable A is of type character (chr), and variable B is of type numeric. Variable A has 4 levels representing solutions A, B, C, and D. I used as.factor() to convert A into a factor. Variable B has 3 levels representing different concentrations of 25, 50, and 75 mmol/L...
Consider a data generating process $$Y=f(X)+\varepsilon$$ where $\varepsilon$ is independent of $x$ with $\mathbb E(\varepsilon)=0$ and $\text{Var}(\varepsilon)=\sigma^2_\varepsilon$. According to Hastie et al. "The Elements of Statistical Learning" (2nd edition, 2009) Section 7.3 p. 223, we can derive an expression fo...
I am working on building a model which contains time series input variables. I build the data around a Linear Regression model and found that the residuals are autocorrelated. Promptly shifted to using a ARIMA model after some research. My question is what is the risk involved here. As for the comparison done on a set ...
I've encountered a problem question: The probability of success for a random variable follows a Beta(5, 3) distribution. The posterior mean is θ = 0.625. The odds of success is defined as θ / (1 - θ). Simulate a large number of samples from the posterior distribution for θ and use these samples to approximate the po...
I saw this question https://stats.stackexchange.com/a/518651/403725 where the distribution of "gambler ruin times" is derived (Discrete Phase Type Distribution): $$\mathbb{P}(T=t) = w_0 \cdot \frac{(t - 1)!}{(\tfrac{t+w_0}{2})! (\tfrac{t-w_0}{2})!} \cdot \frac{1}{2^t}.$$ I am interested in learning how random ruin time...
i have a nuanced ARI question for which i can't find any reference. say i have two clusterings, say ClusteringA and ClusteringB, and i am comparing them using ARI. now, i'm not interested in the ARI itself, but in the contribution of each cluster in ClusteringA to the ARI. A synthetic use-case that may demonstrate the ...
I am calculating the moderation (interaction) effect of one variable on the relationship between two variables using Mplus. All of them are continuous variables. Before I calculated the interaction term, I standardized two independent continuous variables to prevent multicollinearity. After providing this preliminary i...
I have a deterministic process $x(t)>0$ for $0 < t < T$, governed by an ODE for which I want to do parameter inference in a Bayesian sense. The process is hidden but I have $n$ stochastic observations every time interval $\tau$ ($n = T / \tau$) distributed as a Poisson: $y(m\tau) \sim Poi\left(\int_{(m-1)\tau}^{m \tau}...
In my experiment we looked at colour change (luminance) following a predatory stimulus (presence and lock of being the two treatments). The data consists of luminance before, after and the % change between. Data is independent with 23 individuals for each treatment. I want to examine if treatment had an effect on the c...
I've fit a random forest regression model to predict a continuous landscape metric y. One of the explanatory variables in the model is continuous (Longitude), while another is categorical (Class) with two levels (Class 1, Class 2). Class 1 has a higher mean y and observations that are evenly distributed across the long...
There seems to be a reverse correlation to the number of coefs I end up with, to the number of features. I.e. as I add features, I end up with less non-zero coefficients. Seem counter-intuitive to me. Why might that be?
I have a logistic mixed model (lme4 package in R). I want to assess whether participants scores on the measures 'sumspq', 'sumpdi', and 'sumcaps' significantly affect the difference in performance between 2 conditions. I first run the model: performance ~ Condition*(sumspq+sumpdi+sumcaps)+ (1|participant) Results show ...
I want to compare three groups: Children, Caregovers and Experts. I cannot do an ANOVA as my data does not meet the assumptions. Therefore, I need to do a Kruskal-Wallis test. For Post-hoc I am planning to use contrasts. First, I only want to compare children and adults (caregovers and experts). Second, I want to compa...
Background We are performing a register based cohort study analysing the effect of influenza exposure (no/yes) on time to event in pregnancy. Exposure period is any time during first trimester. Followup starts from beginning of second trimester until event or end of pregnancy, whichever comes first. We plan to use the ...
I would like to understand how the block_size parameter in the huggingface transformers library works, particularly in comparison with model_max_length. I am interested in models being able to attend to long sequences. It seems that long input sequences will be chopped into blocks according to the block size, so that e...
I have a question regarding the Kullback-Leibler divergence. I am working on a project, in which we compare numerically distributions: the empirical distribution of the data compared to an approximate distribution. To measure the divergence, I use the Kullback-Leibler divergence. I've noted that I get negative KL-diver...
Suppose we have continuous outcome variable $Y$, and we have a set of covariates $\mathbf{X}$ (assuming they are all continuous) and two binary variable $a$ and $t$. The goal is to estimate the effect of $a$ on $t$, but we suspect an interactive effect between $a$ and $t$, i.e., the effect of $a$ on $Y$ differs when $...
The goal is to construct settings that allow analytical computations of the mutual information in the form: $$I(X; Y) = H(X) - H(X | Y)$$ I am wondering if that is possible when X is some multivariate Gaussian and Y is a binary class variable. Here is an attempt at showing if that is possible. Is the following stateme...
I have data that sums to 100 % +/- 5%, and I was reading that data that sums to 100% should be altered before doing PCA. A method that I found others have done is to use the centered log-ratio (clr) transformation. I'm not sure if I should do this on my data set, since some samples have a sum of 105%, but an increase i...
Suppose you have a set of data $y_i$ and the corresponding linearized data $f_i$ obtained through linear regression. Set: $$(R')^2=\frac{\sum_i (f_i-\bar{f})^2}{\sum_i (y_i-\bar{y})^2},$$ that is a fraction with the same denominator as the usual regression coefficient $R^2$ but at the numerator you put the average $\ba...
I am investigating the effect of predictor variables population.size (continuous), farm.type (categorical) and control measure y.n (binary) on my response variable outbreak duration (continuous). I believed the best distribution to account for was a Gamma distribution and when running my model and testing the assumptio...
I want to check if my logistic regression assumes linearity of independent variables and log odds. I have made the model and tried to construct the linearity of independent variables and log odds, but I am unsure if this was done correctly. Furthermore, I do not know how to interpret this. I have used this code in R: m...
I am running a very simple version of a mediation analysis with five variables, $y, x, t, z1, z2$. It's simple in that I am only including the mediated effect. I first run $y = x + t + e1$. Next, I run $t = z1 + z2$. Assume I obtain coefficients $\beta_x, \beta_t, \delta_{z1}, \delta_{z2}$ as coefficients. The coeffici...
Background: I am working on a problem, where I am making predictions for a time-series data. I am considering two approaches: Use LSTM, predict n samples using recursive strategy (suggested e.g. in here: How to make LSTM predict multiple time steps ahead?) Do not treat data as a time series, build linear regression mo...
Assume you have a set of $n$ independent random variables $X_1, X_2, \dots, X_n$ with unknown distribution and mean (finite) values $\mu_1, \mu_2, \dots, \mu_n \in \mathbb{R}$. Moreover, there are $n$ known probabilities $p_1, p_2, \dots, p_n$ with $p_i > 0$ and $p_1 + p_2 + \dots + p_n = 1$. Upon it, we construct a ra...
I have a problem which requires to find relationship between two nominal categorical variables. What can be used to find such relatioship?
I am testing an applicant tracking system and giving it resumes that have implicit mention of race, and asking the system to rank them. There is a control resume with no implicit mention of race. For the baseline, I ran 20 trials of making the ATS rank identical control resumes (no mention of race). It ranked one of th...
The question that follows is from a machine learning textbook (Reinforcement learning Suttion and Barto page 39 link). Given: a probability distribution over actions $x$ (a policy) at time $t$ denoted $\pi_t(x)$ the expected reward, $R_t$, at time $t$ immediately after taking action $a_t$ denoted $q_*(a_t) = \mathbb{E...
I'm quite new to this topic, but I've set myself the task of understanding how to demonstrate that the average of prediction errors in the sample for a machine learning algorithm, which consistently estimates E[Y/X] (convergence in probability for each X), converges in probability to zero. I'm a bit lost and initially ...
Is it possible to prove that a set of exponential family distributions are linearly independent? I want to show that $\sum_k c_{k} F_{k}(\pmb{x},\pmb{\theta})=0$ has only the trivial solution $c_k$'s are $0$, where $F_{k}(\pmb{x},\pmb{\theta})$ is the CDF of an exponential family.
For K-means algorithm, among other methods using distance-based measurements to determine similarity between data points, why we have to standardize the data points with mean as 0 and standard deviation as 1? My understanding is such a way will reduce the variation of the output (to avoid extreme values). Who can provi...
I was wondering if it is possible to have 2 samples (A and B), where A is stochastically dominant over B (via Mann Whitney, or Kruskal Wallis), but where conversely B has a significantly higher mean than A (via 2-sample Welch test). A and B can not be symmetric for this to be possible, and probably not have the same sh...
Suppose we have a Mixed Effects Regression Model: $$Y = X \beta + z b + \epsilon$$ $$b \sim N(0, \Sigma_{b})$$ $$\epsilon \sim N(0, \sigma^{2}I)$$ $$\Sigma_{b} = \begin{bmatrix} \sigma^{2}_{b1} & \sigma_{b1b2} & \ldots & \sigma_{b1bn} \\ \sigma_{b2b1} & \sigma^{2}_{b2} & \ldots & \sigma_{b2bn} \\ \vdots & \vdots & \dd...
This is a concept in regression I have never been able to understand. Suppose we have this model with an interaction term: $$y = b_0 + b_1 \cdot \text{{age}} + b_2 \cdot \text{{gender}} + b_3 \cdot (\text{{age}} \cdot \text{{gender}})$$ where gender is a binary variable (1 for male and 0 for female). Case 1: When fitti...
I am trying to decide the appropriate model and perform power analysis. Suppose a data contains 2 groups (A,B) and 28 participants from each group. All of those participants are measured 15 times on each of 8 conditions (c1,c2,...c8), so each participant get 8*15=120 continuous measurements in total. I understand the s...
I'm currently trying to find the best way to analyze whether habitat restoration treatments affect arthropod family richness on a sand dune ecosystem and am having trouble determining the random effects and fixed effects in my model. Two treatments (herbicide and mechanical removal) and a control were conducted on 9 ra...
I am interested in finding the relationship between a nominal categorical variable and a numerical variable. We can't use scatter diagrams, or measurements of correlations for finding such relationships.
I have a dataset that contains commentary on football matches. We have two labelers, and they have labeled which team is attacking in each commentary. As you can see, different matches have different teams competing against each other. Also, the number of commentaries is different for each match. How can I calculate in...
I'm analyzing a dataset that contains a feature 'street_name' with 5980 unique values. I used the LeaveOneOutEncoder class for encoding, but I noticed that the cardinality reduced a lot. There are now 340 unique values. In another feature called 'name' the cardinality increased. Before there were 309 unique values and ...
We are currently using a closed-source software for model optimization. Since it is closed, we have no transparency into the underlying code, which therefore by definition makes it challenging to switch away from the software to open source alternatives. I would like to ask the community if they have any hints into wha...
I am having problems with the interpretation of my SEM results. My SEM consists of 1 IV (basic psychological need satisfaction [bpns]), 2 DV (Burnout [MBIscore] & Job Satisfaction [JobSat]) and 2 mediators (Emotional Intelligence [EQ] & Affect Ratio [corAffectRatio]). I constructed my model with the following code: SEM...
I'm working on a hardware product where reliability is paramount. So, one test I've done is to power-cycle units repeatedly, seeing if they properly start up. Result in 10k power-cycles of a group of five units is that there were twenty-eight failures of two different kinds (occurrence of a specific unit failing when c...
I have a dataset with around 5000 observations. I have an independent variable 'passed' which is number of tests passed. This variable ranges from 0 to 6, but only has 9 observations in category 6. I'm unsure if I should treat is as a factor or as a numerical variable. Reasons for continuous: Plotting estimated mean l...
I have this Venn chart that represent a dataset prediction of Identifying if our products are classified as "A41" standard or not The Blue Circle represents a Machine Learning Model prediction results The Yellow Circle represents the actual A41 standard classification The Green Circle represents another method we tried...
The target variable is revenue, with 81 observations and 10 features. The target distribution is such that a standard log transformation doesn't yield an approximately normal distribution, but revenue**(1/4) does. Prospective models are trained on that transformed target but evaluated on the back-transformed predicted ...
Callaway and Sant'Anna (2022) describe a doubly robust difference-in-differences (DiD) method that is attractive in staggered DiD (multi-group treatment times) for several reasons. It can prevent "bad comparisons" between not-yet-treated and treated to which a classic TWFE DiD approach is agnostic. It allows recovery o...
Setup: I am using hyperopt for xgboost hyper-parameter tuning. In each trial, the corresponding configuration is evaluated with time-series cross-validation (CV). The CV validation performance the only objective for the tuning process (common practice). Facts: The tuning process is effective at increasing the CV valida...
I wrote a neural network from scratch and it works but I have a question there. My NN uses full batch and the gradients are therefore calculated with the entire matrix. Because I was interested, I checked how tensorflow.keras does it and they calculate the gradients for each individual row of my input and not the entir...
This is something I have been thinking about for a while - suppose we fit a regression model and then plot the prediction interval for a given variable vs the response: https://strengejacke.github.io/ggeffects/articles/introduction_plotmethod.html No matter if this is done for regression model, logistic regression mod...
I have a dataset with time-series and cross-sectional variables with a sample size of less than 100. I have three variables (var1, var2, var3) that do not vary over time and a time-series variable (var4) that does vary over time. I plan to examine associations between var1 and var2, var2 and var4, and var3 and var4. Be...
I'm working on an analysis in which I conducted multimodel inference and model averaging using glmmTMB, which I used for the ordered beta distribution and I would like to stick with. I dredged the global model, took the 95% confidence set, and calculated the average coefficient for each predictor. Now, however, I would...
When calculating the degrees of freedom to use in a t test for a difference in means, allowing for unequal variances: This answer suggests that we should (when possible) correct the estimated standard deviation used in the Satterthwaite equation to compute the degrees of freedom $\nu$ for a t-test. A comment disagrees...
There are many reasons not to test binary outcomes with a linear regression (as opposed to a logistic regression). If one did though, is there any scenario in which the F-test for the coefficient of determination ($R^2$) would yield a false-positive? That is, could the F-test be significant when in fact none of the var...
Suppose one calculates a posterior distribution on some parameter $P(\theta\mid x)$ based on some prior. Now suppose we take that data and divide it into two parts, such that $x = x_1 \cup x_2$. Intuitively, breaking up the data must lead to the same posterior given the same prior, i.e. $$P(\theta\mid x) = P(\theta\mid...
I need a way to measure the circularity of a complex random variable. A complex random variable is circular when its PDF depends only on its magnitude and does not depends on its angle. For example, $z$ been a complex random variable $z=x+iy$ where $i=\sqrt{-1}$ and $x$ and $y$ are real random variables the PDF of $z$ ...
This is my first time working with a Likert scale and I need help with choosing a proper test in SPSS. I have a Likert statements and want to see if there differences (and if yes what were the differences between them) based on age (18-25) and 25-30) and gender (women, men, other, rather not say). What would be the bes...
Consider a linear regression model $$ Y=X\beta + \epsilon, $$ where $Y\in R^n$, $X = (x_1,...,x_n)^T\in R^{n\times p}$ are i.i.d. $p$-dimensional observations, $\beta\in R^p$, and $\epsilon = (\epsilon_1,...,\epsilon_n)\in R^n$ are i.i.d. Let $\hat\beta$ be the estimator of $\beta$. Then the residuals are $\hat\epsilon...
The domain and codomain of a probability function for a discrete sample space can be defined as ... Domain: Power set of sample space Codomain: $y \in [0, 1]$ How can I define the domain and codomain for an uncountable sample space? Where should I look for more information?
If $X$ is a random variable with PDF $f(x;\Theta)$, then we define the likelihood function as: $$L(\Theta; x) = f(x;\Theta)$$ As I understand, we say that $\Theta^*$ is the true MLE estimator if $\Theta^*$ meets the following condition $$\Theta^* = \arg\max_{\Theta} L(\Theta; x)$$ As such, MLE estimators have the follo...
I will run a experiment to check if a given change, represent some significance in user interactions. I have two sets, sampled from two groups, one called control which counts the number of interactions from 30 sampled users in control group, and I have treatment which counts the number of interactions from 30 sampled ...
I am trying to understand why the Likelihood Function of any distribution from the Exponential Family is Convex. This convexity property makes optimization/parameter estimation easier when working with regression models (e.g. GLM) that are based on probability distributions from the Exponential Family. I spent the day ...
Suppose: \begin{equation} x_1\in \mathbb{R}^{p_1}\\ x_2\in \mathbb{R}^{p_2} \end{equation} such that \begin{equation} x \sim \mathcal{N}( \begin{bmatrix} x_1\\ x_2 \end{bmatrix}; \begin{bmatrix} \mu_1\\ \mu_2 \end{bmatrix}, \begin{bmatrix} \Sigma_{11} \Sigma_{12}\\ \Sigma_{21} \Sigma_{22} \end{bmatrix}) \end{equation...
I am conducting a meta-analysis and I'm trying to ascertain how to test for publication bias and heterogeneity. However, I have used multiple datasets to calculate effect sizes, and therefore I'm unsure how to go around this. For example, in comparing locomotory behaviour in animals of the taxonomic Order, Artiodactyla...
I've been tackling the concept of Mixed Effects Models on and off for the last 9 months. Every time I would give up and come back later to try and understand it again with my basic statistics knowledge (I come from a medicine background, so I have no high-level mathematics knowledge involving calculus and derivations f...