instruction
stringlengths
9
38.7k
I have run a Gamma model where I try to predict the bioturbation potential by some sediment predictors. We sampled multiple stations over 10 years. Therefore I included station and year as random factors and added an autocorrelation term. model <- glmmTMB(BPc ~ mudfraction + medsand + X250.500um + shellfraction + (1|St...
In the cLDA (constrained longitudinal analysis) analysis the baseline value is already taken as a response, so it doesn't have to be included on the right side of the model. But in MMRM ANCOVA (mixed-model for repeated measures; not a mixed model - it's just generalized least square) it's common to adjust the values (e...
I have two logistic regression models, model 1 and model 2. I want to find out which model is better. I'm predicting the default rate. I have compared the two models using Gini, plotted gini on month to month basis. But I want a business metric which can help me show a monetary benefit that model 2 can give over model ...
I am training a GAN in which I am optimizing or reducing the loss of the generator and the discriminator simultaneously. However, the images generated are very noisy. What could be the hidden reason? Why the simultaneous optimization of the loss functions does not ensure good images in GAN? Generally GANs are trained b...
I am wondering if there is a relationship between the performance quality of a predictive model (e.g., a classifier) and the reliability of corresponding feature importance values? To give an example: I created two binary classifiers using two different sets of features. One classifier performs slightly better than the...
So it turns out I have misunderstood what k-fold CV actually does. I had originally thought that (e.g.) 5-fold CV splits the whole dataset into 5 subsets, then on each iteration the model is trained with 4 and tested with the held-out subset. But various documentation (https://scikit-learn.org/stable/modules/cross_vali...
Given $X1,\dotsc,Xn \sim \mathcal{Geo}(p)$ , and I need to find the MLE and the CI for the MLE. I found the MLE for this distribution, using the maximum likelihood function: $L(p;X) = (1-p)^(Xi-1) * p$ I took the $log$ of $L(p;X)$ and then the derivative of it, and found that $\hat{p} = 1/\bar{X}$. Now, what should I ...
I am trying to use Support Vector Regression on a (neurophysiological) dataset where the position of points on a circular manifold in N dimensions is correlated with a circular variable (phase of an oscillation of a separate system). Before starting, I am trying to solve this on a dummy dataset. I have dots from a circ...
I am searching for intermediate/advanced online courses in statistics/econometrics that employ python. Exploring the main platforms (i.e. Coursera, Edx, etc..) I found either very basic courses that use python or more intermediate/advanced courses that use R. Anyone here aware of where I could look for this?
From the book Applied Multivariate Statistical Analysis by Johnson and Wichern, the following covariance matrix is written as an orthogonal model. $$\bf \Sigma = L{L^\top} + \mathbf \Psi $$ $$\left[ {\begin{array}{*{20}{c}}{19}&{30}&2&{12}\\{30}&{57}&5&{23}\\2&5&{38}&{47}\\{12}&{23}&{47}&{68}\end{array}} \right] = \le...
I have trained a CNN based pose estimation network that outputs segmentation masks and keypoints. I have used Adam optimizer, 1e-4 learning rate and cyclical learning rate scheduler. As shown on figure, on 40th epoch there is a extreme spike and then there occurs a steady state loss for all epochs. What could have caus...
I am trying to find the best fitting function in case of logistic regression using R. regr_A<-glm( cbind(X$M, X$N-X$M)~...., data=mydata, family="binomial" I want to have the best "composition" of only three regressors for example like regr_A<-glm( cbind(X$M, X$N-X$M)~exp(v1^2)+sin(v2)+v3^8, data=mydata, family="binom...
Cross-validation with metrics such as F1 can be implemented in two ways: For each cross-validation split, calculate F1_split on the validation dataset. F1_result = average_by_splits(F1_split) For each cross-validaton split, calculate confusion_matrix_split on the validation dataset. confusion_matrix_result = sum_over...
I was looking for an equivalent for Stata's command lincom in R. I tried the comparisons() function from marginaleffects package. However, I get different confidence interval than the one from lincom in stata library(tidyverse) library(marginaleffects) library(haven) faculty <- read_dta("https://www.stata-press.com/da...
I have been into discussion about the usefulness of applied PCA before Logistic Regression for some classification task, the claim is as follow: In some cases, Applying PCA and Logistic Regression together leads to almost the same separating hyperplane as just Logistic Regression alone (PCA + LR ∼ LR ). In such cases t...
I don't have a statistical background, so a lot of this stuff confuses me (sorry if this is a bad question). But, I am trying to construct a few Probit regression models in R on a dataset that consists of only categorical variables. All my dependent and independent variables are categorical. I have already identified ...
I am working with a time series data (date column and a value column) and I have extracted date features(weekday, weekend etc) and rolling means or the prediction. For features to be given equal importance, I used min-max scaling i.e., all integer features are converted to range (0,1). My question is Do I also need to ...
Let f be a mean 0 variance 1 density. Let $g(x) = f\{ (x - \mu) / \sigma \} / \sigma$. What is the mean and variance associated with g?
I have been reading posts on this forum about how to assess LCA models. One question asked about BIC statistics to assess model fit. The answer said that you shouldn't really worry about the absolute value of any single BIC statistic; the BIC only matters relative to other models. Some seem to argue that you can get di...
is it totally meaningless or impossible to do factor analysis between two measures with different age ranges? For example, I want to test if two personality measures are testing the same underlying broader construct (like latent factors...), but the two measures are tested in different ages of the same group of people ...
I am unclear about deriving both hazard ratios and a predicted cumulative incidence curves under competing risks. After reading this interesting article: https://statisticalhorizons.com/for-causal-analysis-of-competing-risks/ I was under the impression that the most approriate way to estimate hazard ratios (for effect ...
Let's say I was conducting an experiment with 4 factors. Three of them have qualitative settings, so I can simply designate one as +1 and one as -1. But one of the factors is numeric, and I would like to investigate three levels. If the other three were numeric as well I could treat this as a 2^4 with center points, b...
If we run the Metropolis-Hastings algorithm for a target distribution $\mu$ with proposals from a quasi-Monte Carlo sequence $(y_n)_{n\in\mathbb N}$ (such as a Sobol sequence) and the generated chain is denoted by $(X_n)_{n\in\mathbb N_0}$, will $$\frac1n\sum_{i=0}^{n-1}f(X_i)\xrightarrow{n\to\infty}\int f\:{\rm d}\mu\...
I learned that you can use random effects as a way to induce correlation in regression models. Say, we measure cholesterol over a 12 week period. The random effect "tells" the regression model that the data isn't independent: person's response in week 1 should be correlated to their response in week 2 and so on. Of cou...
I'd like to combine Bayesian and non-parametric (e.g. XGBoost) models, with the goal of getting a probability distribution over my target variable rather than a point estimate. I have a prior, and I have some non-parametric models that produce reasonable results. My best guess is something like fit a simple Bayesian re...
I am currently trying to look at how the likelihood of reaching a particular insect life-stage (in this example 1st instar) is influenced by both temperature (factor: 5 levels - 20, 23, 26, 29, 32 degrees Celsius) and species (factor: 2 levels - HA and AP) using a logistic regression model as below: eggmodelA <- glm(cb...
I have a model (a neural network) which produces estimates for the parameters of latent random variables (e.g. the $\lambda$ param for an exponential distribution). I don't observe the r.v. directly, but the result of another process which acts on pairs of variables. I then compute the MLE and do usual SGD. Let's assum...
I'm working on the insurance dataset with R, and I'm trying to do a lm with charges as the target. I did the following: Removed the severe outliers (3*IQR) Removed the multivariate outliers with Moutliers using chemometrics Checked the boxcox lambda value and transformed the target with log Applied boxTidwell for chil...
I am looking at modeling a categorical response that has multiple measurements per "product" using a classification tree. Each product can have up to three measurements in the dataset, essentially one per each team that measured it with some products not being available to some teams. Because not all observations are t...
Can we say that the assumption for linearity is met? I'm confused because the tails are heavy, and deviations have a bow-shaped pattern. Still, I think that the linearity has met because the majority of the points fall along the line. I have a large-sized dataset of 13k entries. My data is: enter link description her...
I'm performing analysis on the data found in the NHANES package in R. One of the vectors describes the estimated number of days that participants drank alcoholic beverages. I want to classify them as Alcohol_Disorder/No_Acohol_Disorder. The 95% confidence interval is (65.30, 72.36). I feel compelled to subtract each n...
I used Xgboost AFT model to predict survival time but get some infinity predictions. Is it normal? How should I interpret that? I changed aft_loss_distribution from 'normal' to 'logistic', then had inf predictions
What's the difference between a lurking variable and a confounding variable? From what I read, both lurking & confounding variables masks the true relationship between a pair of variable, but it is unclear to me how they differ? I read in a few places that confounding variables are "considered in the study" while lurki...
I am creating a model in R Studio for NCAA football games and am encountering values that seem lower than they should be. Here is my function and returned R-squared value. lm(formula = rushing_yards ~ yards_per_rush_attempt, data = games.box) This is the end of the model summary: Multiple R-squared: 0.778, Adjuste...
I am trying to create ratings/skill scores using ranking systems like Elo, TrueSkill, and OpenSkill. All of these systems are similar in that they have a distribution that represents players' skill and that the update after a match is dependent only on the parameters of the distribution. Are there similar methods that ...
How can I find the expected value and median of $X\sim \chi^2$ with degrees of freedom of $12\,$? The information I get from every other source, I find, is confusing. I am using R.
I have a trained logistic regression model with 5 input variables. Then I added another new input variable and used all of them (6 input variables) to train a new logistic regression model. With the obtained coefficients, I got two values based on the logistic function when the inputs are given. Next, I set the new var...
The question given is: When performing a test regarding the population mean, $\mu$, we decide not to reject $H_0$ when $\bar{X} > 3.$ It is known that $n = 50.$ If the true value for $\mu$ is $\mu = 3,$ what is (approx) probability of Type 2 error. The answer to the question is 0.5. My working goes as follows: $H_0: ...
Can I calculate the t-value of some population, if I only know the mean and standard deviation of the data and not the actual data itself. If not, what are the values I should know to calculate the t-value of the data?
Suppose $L(\theta;X)$ denotes the likelihood of a model where $\theta$ is the parameter and $X$ is the data. $L(\theta;X)$ doesn't have a closed-form solution for MLE. I use a numerical procedure to obtain an estimate $\hat{\theta}$. Then how can I obtain the asymptotics of $\hat{\theta}$? I am unaware of this area so ...
I have two time series measurement of protein "activation" under two different conditions, (A) and (B). My end goal is to fit a model and use the model parameter that best describes the rate of "activation". The data looks similar to panel D below: (Reference) Question 1. Is there a model that best describes the data ...
We have $X$ and $Y$ as independent discrete random variables both in ${1, 2, ...}$. Their pmf's are: $f(x|\alpha)=P(X=x)=\alpha(1-\alpha)^{x-1}, x=1, 2, ...$ $f(y|\beta)=P(Y=y)=-\frac{1}{\log\beta}\frac{(1-\beta)^{y}}{y}, y=1, 2, ...$ $\alpha, \beta \in (0, 1)$ Given that $\frac{1-\alpha}{1-\beta}=\frac{1}{2}$ --- (*),...
I know that marginal normals do not imply joint normal, as some examples in here gives. However, but I don't know of any theorems that talk about conditions under which marginal normals can imply normals. The solution in here is not satisfying (they only give a necessary condition). In summary, I have two questions Su...
I have a set of 32 intercorrelated variables and a target. I hypothesised that these variables would linearly and positively contributed to the target, and hence a non-negative linear regression model is adopted. However, I would like to investigate on the relative importance of variables, instead of the correlation co...
Consider a panel with data $(y_{i,t})$ for $i\in\{1,...,N\}$ and $t\in\{1,...,T\}$. Problem: I want to know how the cross-sectional average of $y$ behaves in an average time period. My approach: For each $t$, I calculate the cross-sectional average of $y_{i,t}$: $\bar{y}_t=\frac{1}{N}\sum\limits_i y_{i,t}$. I take th...
I was watching cross entropy video from StatQuest. While explaining why to use cross entropy over SSE in multi output scenario with softmax output activation, Josh gives this graph of both losses: He the says that loss is very high for CE than MSE. But I am not able to get how he got that orange straight line. I tried...
As part of my thesis, I'm currently doing an event study. In one class, we got the formulas below for the t-statistic which I've used in my paper. Stupidly, I've trusted the reference to MacKinlay (1997) in the documents (actually from my co-supervisor). While proofreading and checking references, I just realized that ...
I have the following data for two different sampling points: proteins from three different drought intensities (control, moderate and severe), and also using two diferent treatments (sterilized and non sterilized) in climate chamber pots and was told to perform a mixed linear model to see the effect of the sampling poi...
I have two circular predictor features (two angles between 0 and 360 degrees) and a circular outcome (another angle, between 0 and 360 degrees). I'd like to be able to fit a model and get predictions of the outcome along with their certainty / confidence. Normally for non-circular data I'd try something like multivaria...
Kalman Filters propagate using a single previous state estimate $\hat{x}$ with covariance $P$. Is there a formal way of propagating using two previous state estimates with different associated covariance matrices $P$? I'm working on a filter that estimates an attitude vector, however I need to use the previous two stat...
We generally use the term residuals to refer to the difference between the training data values and the model's predicted values, but I wonder if there is a different/better term to refer to the difference between the testing data values and the model's predicted values, particularly within the field of machine learnin...
I have a scale that I would like to validate using CFA. The scale measures different aspects of fear of any given stimulus. In my first study, I had participants create their own stimulus and then they responded to the scale items. This means that each participant had a different stimulus from the others. EFA suggested...
In the DAG above, we have $A$ conditionally independent of $E$ when $C$ and $B$ are observed (that is $A\perp E|B,C$), but not when only $C$ is observed (that is $A\not\perp E|C$). I don't have a good intuition on why this is true, it feels to me like it should still be conditionally independent. Could anyone give me...
I do not understand the meaning of colors in nodes/leaves when building decision trees by sklearn.tree DecisionTreeClassifier. Here's my code: from sklearn import tree from sklearn import datasets from sklearn.tree import DecisionTreeClassifier import matplotlib.pyplot as plt iris = datasets.load_iris() X =...
Median Regression under non-parametric set-up (Nadaraya Watson Estimate) Data: $\{(Y_i,X_i):1\le i\le n\}$ Interested in estimating $\phi(x)=\text{median}(Y|X=x).$ Possible estimates are Minimize the following to get the weighted median i.e.,$$\min_{\phi}\sum_{i=1}^n|Y_i-\phi(x)|W_n(X_i;x,h_n)\quad\text{where, } W_n(X...
I am dealing with the following problem: I have to do a multivariable logistic in R, using the command glm with the argument family = binomial. The dependent variable is (obv) a binary variable (worker) with a Yes/No outcome and the predictors are gender, student and type of event. gender and student are binary varia...
When estimating an ordered logit using MASS::polr is it then possible or a good idea to interpret the coefficient from the summary output or is it necessary to determine the exp() and use the intercepts to determine the probability also? If so, how can the coefficients then be interpreted? Can you give examples of when...
I have the following problem. I have a group of people where male and female members differ in their score on a certain scale. After an intervention both gender scored higher in a post test 6 months later. The increase in the score for women is roughly 9 % whereas men improvend only roughly 6 %. What is the appropriate...
I have a variable $x \sim N(0,1)$, of dimension $p$, with each $x_i$ independent. I want to find the quantile, $q$, such that $$\mathbb{P}\left(\frac{\sum_{i=1}^p (|x_i| - b_i) }{c} \geq q \right) = a, $$ where $c>0$ is a scalar, $a \in (0,1)$ is a specified value, and $b$ is a $p$-dimensional vector, such that $b_1\ge...
I used the plm() function for a 2-way fixed effect model with zip_code and month (yy-mm) fixed effects. The data table used for the model is panel data with id and date (yyyy-mm-dd) as the panel indexes. The model looks like this: plm(DV ~ IV + zip_code + month, data = panel_data, effect = "twoways", index = c("id", "d...
Edit to explain how this is different from the suggested duplicate: Reduce Classification Probability Threshold My question relates to the same topic, but is thoroughly different, so I'm surprised this was flagged as a duplicate. I want to know, specifically, how I go from looking at an ROC curve and identifying the pl...
I'm trying to train a text classification model that can predict label $A$ and $B$ accurately. However, 95% of the text examples in my dataset, which is representative of the kind of data I want my model to predict on, are not examples of $A$ nor $B$. I instead labeled them as $O$ for other. I need more examples for my...
I am trying to apply the following definition of Fisher Information: \begin{align*} \mathcal{I}_{1}(\theta) = \mathbb{E}_{\theta}\left[\left(\frac{\partial}{\partial\theta}\ln f(x_{1}|\theta)\right)^{2}\right] \end{align*} But I have not succeeded so far. This is my attempt so far: \begin{align*} \mathcal{I}_{1}(\eta) ...
I have 2 regression equations: 1st Regression: $I_t = a_1 + \beta_1E_t+X'_t\delta_1+\epsilon_1$ 2nd Regression: $I_t = a_2 + \beta_2E_t+X'_t\delta_2+Y'_t\lambda_2+\epsilon_2$ The two regressions are the same, except for the additional term $Y'_t\lambda_2$ in the 2nd Regression. I would like to summarize these two regre...
There are several hypothetical instances of causality despite the lack of correlation between two variables, some of them have been mentioned in this forum - Does no correlation imply no causality? Would anyone be able to share examples of real-world published cases in which there was clear causality without (linear) c...
Lets say I have $x_{ij} \sim Bernoulli(p_j)$ and $d_j = \sum_{i=1}^n x_{ij} \sim Binomial(n, p_j)$ I could do binomial logistic regression by regressing the logit of $p_j$s on some predictors. If I was then interested in doing some cross validation like LOOCV, what is the difference in leaving out one $x_{ij}$, computi...
My understanding is that instrumentals variables regressions estimator is consistent, but not unbiased, for identifying the causal effect of a variable x and y. I understand that for an instrument,z, cov(z,error) = 0 is the identifying assumption needed to ensure that the instrumental variable regression estimator is a...
Let $\hat{f}=\arg min_f \left( \sum_{i=1}^n (Y_i -f(X_i))^2 + \lambda \int [f^{(m)}(x)]^2 dx\right)$ Suppose $\lambda = \infty$ and consider the cases when m = 0, m = 1. I am trying to understand what the subsequent function will look in both cases. When m = 1, the penalizing term forces $\int [f’(x)]^2 dx$ to be small...
I have data $x_1,...,x_n$, $y_1,...,y_m$ and $z_1,...,z_p$ where $$x_1,...,x_n\sim N(\mu_x,\sigma^2_x)$$ and $$y_1,...,y_m\sim N(\mu_y,\sigma^2_y)$$ and $$z_1,...,z_p\sim N(\mu_z,\sigma^2_z)$$ Now let's assume I want to take a Bayesian approach and place the following priors: $p(\mu_x,\sigma^2_x)\propto (\sigma^2_x)^{-...
I want to resample an existing study with the primary aim of investigating how the empirical sampling distribution of a statistic varies with different sample sizes. For example, if the original study has $N=100$ observations, I'd like to investigate the form of the empirical sampling distribution when $N=1000,~ 100,~ ...
Hi lets say your CDF is from $Unif(-1,1)$ so $F(x) = (x+1)/2$ Its easy to understand how $$P(X<x) = F(x) \implies xP(X>x) = 1 - F(x)$$. But how do I breakdown $P(|X| < x)$ or $P(X^2 < x)$? What about $P(|X| > x)$ or $P(X^2 > x)$?
Large model, small training data but good result? I have text auto-encoder model where I have used few layers of Transformer and trained it using my own data. I have a vocab size of 18664. Here is my model: Encoder: class TransformerEncoder(nn.Module): def __init__(self, input_size, num_head, hidden_size, num_layers)...
I'm trying to run a simple mixed model by subject id: y=week. Since it's repeated measures, I assume that I need to use mixed model even though I want to run the model by subject id? In addition, since the measurements are equally spaced, I tried to use AR(1) covariance structure. However, my code(below) didn't work an...
I have this vector of frequency values x = c(100,400,500,600,700) when conducting chi square test goodness of fit I have this result that has a global significative p value chisq.test(x) However I am looking for a posthoc test function in R that can tell me which values are significantly different from each other and...
How can I find the converging distribution of $$\frac{1}{\sqrt{n}}\sum_{i=1}^nY_i^2,~Y_i \overset{\textrm{iid}}{\sim} \mathcal{N}(0,\sigma^2)$$ as $n\rightarrow\infty$? My first thought was CLT but I do not think it works because of the division by $\frac{1}{\sqrt{n}}$.
I ran logistic regression by R. I want to know what relation there is between AIC of each predictor variable and final AIC?
My output is a table of coefficients, together with standard errors and 90 % confidence intervals, nothing else. I miss the degrees of freedom but I do have the number of observations. How can I calculate a F-statistic testing if some of these coefficients are mutually zero in R?
I have a stationary (constant mean, constant standard deviation) time series $y_t$, that contains some missing values and some incorrect values (values so far from the distribution they are obviously wrong). I have a simple method to detect these incorrect values which works well. However, I would like to know if there...
I am following computation statistics by givens and after looking at the supplementary code, I find that: $$I''(\beta) = -Z^TWZ$$ Where Z are the column vectors of the covariates, and W is the diagonal matrix with ith diagonal entry $\pi_i(1-\pi_i)$ The code is provided as the following: hessian = matrix(0,2,2) hessian...
I am new to mixed-effect models and statistics, and I need to do a project for my thesis using mixed-effect modeling techniques. My research aims to model how cardiovascular risk scores change over time. In this case, my mixed-effect model is lmer(log(Score) ~ Time + I(Time ^2) + (1+ Time + I(Time ^2) | Patients)) I ...
I have a question that is quite simple, but I can't wrap my head around it. Say I have hourly data for one year, say 2020, and I split this data into a train and test set where the training set is the first 11 months. I estimate the coefficients for these 11 months according to this model: $$ Y_t = \beta_0 + \beta_1 Y_...
When i train my model with 30 epochs, the training and validation error curves seems to stagnate: However, when i train my model with 60 epochs, the training and validation error curves start to decrease: Can anyone explain me why? In the first graph, shouldn't the minimum validation error be closer to 0.10 instead o...
Let's say I have a discrete distribution $p$ over n states that I want to sample from, but I only know a similar probability distribution $q$. However, I can obtain unnormalized probabilities $c \cdot p(i), \ i \in {1, ..., n}$ at a high computational cost. To get approximate samples from $p$ I was considering using MC...
Dear statistics experts I need your help with something that has bothered me for a while now. My problem revolves around perfect prediction and essentially boils down to: Why would we ever set up and estimate a statistical prediction model if we could just use the conditional distribution instead (given that we have en...
I have 2 questions regarding the likelihood value calculation with glm. It seems that sometimes it calculates the likelihood value including the binomial coefficient and sometimes it does not. Tow cases are described below: Why does glm calculate the log-likelihood value differently for the following two cases at the ...
I have doubts concerning the correct interpretation of the odds ratio when I am dealing with categorical variables. I try to explain it better: Suppose having a multivariable logistic model (glm) with gender as one of the possible predictor. Then, I compute the odds ratio with the corresponding confidence intervals and...
Situation customer contracts available as scanned images were turned into text files using OCR software the resulting texts contain spelling errors that occurred during OCR, e.g. words like "useful" were mistaken as "u5eful" Question What are current best practices for correcting these OCR spelling errors as a post-p...
I think I have a pretty simple question about constructing confidence intervals for normalized random variables. If I have i.i.d random variables $X_1, X_2, X_3, ..., X_n \sim F$ for some distribution $F$, and say i have the standard mean estimator $\mu = \frac{1}{n}\sum_{i} X_i $, then it is easy to construct confiden...
I have result from R: polars polr(formula = cat ~ log_pop21 + birth + ngrw, data = new_df, na.action = na.omit, Hess = T, method = "logistic") Coefficients: log_pop21 birth ngrw 3.1346164 1.0315305 -0.2486664 Intercepts: 0|1 1|2 2|3 3|4 4|5 10.04250 12.66218 15.00460 18....
I would like to ask whether you could suggest me a test for the following situation: I have two groups (A and B). Both groups have data for a categorical variable called X that has 3 categories. I would like to test whether the answers for each of the category are different between two groups. For example, I want to kn...
for the past few months I've been working on a project that tries to predict a price for metaverse real estates (Virtual Houses). The game is called sandbox and it is sold in cryptocurrencies, which causes it's prices to vary a lot. The data contains every transaction that's occurred during the 3 years: which land was ...
This question is an extension of a prior question. I have a longitudinal dataset with several binary variables, along with an id variable and a time variable. In my research project, these binary variables are observed behaviors during a videotaped task (0 = absent, 1 = present) and I am interested to examine how the b...
I need a guide on how to derive the posterior distribution for $\theta$ and checking whether it is proper. I have been given that the likelihood function is $$L(\theta; x) = \theta \exp(−\theta x).$$ You decide to perform Bayesian inference on $\theta$ given a realisation $x = \{x_i\}_{i=1}^N$ of an i.i.d. sample $X_1...
What is the matrix $(X'\Omega^{-1}X)$ X) in Generalized Least Square / Weighted Least Square? More precisely, We know:
I am trying to understand whether omitting insignificant features (with weights close to zero) will change the overall result of a multiple linear regression problem and if so by how much. In particular, I would be interested in deriving an explicit error bound (if this is possible at all?). 1) To establish a common gr...
Suppose I have two mean zero, independent Gaussian random variables $X \sim \mathcal{N}(0,\sigma_1^2)$ and $Y \sim \mathcal{N}(0,\sigma_2^2)$. Can I say something about the conditional expectation $E(X^2| k \geq|X+Y|)$? I think the expectation should be given by the double integral $$ E(X^2| k \geq|X+Y|) =\frac{\in...
I received abnormal results when using glmrob (R function from robustbase) when assessing the association of a binomial independent variable X0 with a binomial dependent variable Y using logistic regression. The log odds ratio of X0 jumped from 16 (exp of 2.74) to a whopping 200 (exp of 5.3) after adjusting for X1, X2,...
Conceptualization of RM ANOVA: So the way that I conceptualize repeated measures ANOVA is that I have some dependent variable that is measured across different levels of one or more independent variables. So if I wanted to see if the valence of an image (positive, negative, neutral) makes people squirm in their seats (...
I am simulating a DGP like this: $$\operatorname{logit}[p(y) = 1] = \beta_0 + \beta_1\textrm{Treatment} + \beta_2\textrm{Treatment}\times\textrm{IsFemale} + \beta_3\textrm{ IsFemale} + \beta_4 \textrm{IsSmoker}$$ and assume I know there is an interaction effect. library('paramtest') library('pwr') library('ggplot2') li...
I conducted AIC selection on a set of models, and isolated my top 3 models. I then calculated the AIC weights of each model, and got the values 0.99, 1.92e-14,and 6.9e-18. I never saw weight values that low, and am worried I might have screwed up somewhere. Has anyone else seen AIC weights like this?