instruction
stringlengths
9
38.7k
I am working with NHANES survey data and I am trying to use a twophase survey design along with calibration to adjust for item non-response. For now, I am following an example from Lumley's Survey book pretty closely to do this. I have the following code below to set this up. nhanes_df <- nhanes_df |> mutate(w2 = nro...
I ran a three-level SEM and I have got perfect Model fit indices (RMSE=0, CFI=1, TLI=1). Data structure is households (hhid) nested inside the clusters (vilid), and being measured twice. The number of observations is 1160 (600 households but being measured twice). The number of clusters is 38. I am using Mplus to estim...
I have developed a binary classifier using LightGBM, where I've primarily used the AUC metric due to its simplicity, ease of use, and interpretability. Recently, I've taken an interest in utilizing the mean average precision-k (MAP@k) metric, and I understand that LightGBM offers two variants for this particular metric...
The definition of distribution is(as far as I know) "a function that maps the outcome of an event to it's probability" and all the definitions of random variable I've come across say almost the same. So what is the difference?
I'm analyzing a monthly district-wise dataset of 10 years to determine factors influencing dengue incidence. The dataset is not stationary and the dengue incidence shows a seasonal pattern. My instructor suggested using panel data analysis, I tried pooled models, fixed effect models, first differenced models, etc but t...
I have some model which I want to cross-validate. I want to use a leave-one-out cross-validation (LOO-CV), as I have only little data. I created a model for all of my data, did model selection and confirmed with model diagnostics that the assumptions of my model are met. I wrote myself some code to validate my model (n...
Update 7/26/23 Sorry for the lack of data in the original post. I put together a dummy data set in the image below. In this case the target for contaminant out is ~2, although there are diminishing returns at less than 2. I'd like to come up with a single variable to describe the relationship between contaminant in a...
I have a very large dataset with mixed-type variables. When I apply the Gower's dissimilarity measure to obtain the distance matrix, it is running out of memory. Due to the large size of the data, it's no use if I increase the memory size by memory.limit(size = xxx). So I am wondering, is there some effective approach ...
Suppose there's a bag with four balls; color 0 appears once, color 1 appears once, color 2 appears twice. How many ways are there to draw these balls? Having done this by hand, I believe there's 12 different options: ball1 ball2 ball3 ball4 1 1 0 2 1 1 2 0 0 1 1 2 2 1 1 0 0 2 1 1 2 0 1 1 1 0 1 2 1...
I am struggling to analyze longitudinal data on a prognostic model. I used a multivariate Cox model to select predictors at time1. I also have measures of these predictors at time2 (the event of interest), but only in those observations that had the event (I don't have data at time2 of those observations without the ev...
I model a stock price with a completely random walk: In each step I multiply the price with normal distributed random number with an mean of 1. Then I compute a signal, which is True if the moving average of the last 10 prices is above the current price. When I now look on the mean of the prices where the signal is ...
I'm estimating the coefficients of variation (CV) for features in a dataset. Each of the features is well represented by a normal distribution. I've done the estimate in two ways, both using bayesian methods. In each case I fit the model to zscores then invert the transform for the samples. The two approaches are inde...
On https://www.cs.ubc.ca/~murphyk/Teaching/CS340-Fall07/L4_knn.pdf Page 6 The author (Kevin Murphy) plots the training and test errors associated with kNN classifer. I am not sure how training error is derived, since for kNN there is no training phase.
I have two groups of people, those who finished a treatment with a drug and those who didn't. Also, I have the amount of adverse reactions each individual had to the drug. An individual could have from none to 3 or 4 adverse reactions. I need to test if there is a difference in the amount of adverse reactions individua...
I'm working on an algorithm which is permitted to use a training set of approximately 250,000 dictionary words. I have built and providing here with a basic, working algorithm. This algorithm will match the provided masked string (e.g. a _ _ l e) to all possible words in the dictionary, tabulate the frequency of letter...
Select 3 letters at random, one at a time without replacement, from the word VARIANCE. The discrete random variable X represents the number of times is selected a letter A a) find the complete probability distribution of X
I am working on a frog classification problem where I have 15 unique species and 2 recordings per species. Would it be a valid experiment if I were to have my training set of the 15 unique species with 1 recording per species and augment it through, time-shift, pitch adjustment, noise injection, spectral augmenting, an...
Suppose $X_1,\ldots,X_n\sim\operatorname N(\mu,\sigma^2)$ and you can observe only the sample size $n,$ the two extreme values, and the first, second, and third quantiles of the sample. Among unbiased estimators of $\mu$ based only on those five statistics, which has the smallest variance?
In my GWAS analysis, I got some very low p-values (I have a very large dataset), below E-600. R Studio is not able to plot the values below E-300. Do you have any suggestions on how to plot these, and if there is some software that could do it?
Apologies, I'm not a stats-person, I'm looking for a concept that I'm struggling to Google. I have a boolean function that returns true or false at some unknown chance c. I have a sample of 100 function-executions, 70% of which returned True. I'm looking to graph, for every value 0-1 the odds that the function actually...
I am looking for a significance test to compare between two association matrices (contingency tables) - preferably to test whether the odds ratio is the same. I have looked at some questions here but they don't provide the answer I am looking for. For example, I would like to compare the following tables: (Apologies t...
I am trying to come up with a normalization for a set of data. My company puts our products through a series of testers (people) to score our products on key metrics. I am able to access all records from each tester and when I look at the averages, I find that some testers always have scores higher than the standard de...
Let $X$ and $Y$ be independent random vectors (denote this by $X \perp Y$ ) . Let $A=[|X|\leq t ]$ and $B=[|Y|\leq t ]$. Since $X\perp Y$, we know that $A$ and $B$ are independent, so the indicators $\mathbf{1}_A$ and $\mathbf{1}_B$ are independent. I wanto to show that $X \mathbf{1}_A$ and $Y \mathbf{1}_B$ are indepen...
I want to test the hypothesis that the coefficient for tobacco use by age is greater in women than men using the couples data (CR) from the Demographic and Health Surveys (DHS), which has a complex survey design. Tobacco use (yes/no) and age data are sampled from couples in a household. Each row therefore includes colu...
Edit: The question that was linked as an answer speaks of heteroskedasticity and multicollinearity, but this data set passed the Breusch-Pagan test and VIF, respectively. And in any case, I still have no idea what use the coefficient is for atr as its insignificant. How am I supposed to create a regression equation usi...
Given a standard 52 deck of cards with [12/52 being an Ace, King, or Queen], if you draw 21, what are the odds that 6 (or more) of the 21 cards are either (A,K,Q)? How do you go about calculating that and how could I do the same for exactly 6, or 5+, 5 etc.
I am comparing a certain activity in an animal using a one-tailed Mann-Whitney U-test. I would like to know if the activity increases from treatment A to treatment B. Alternatively, I could look at whether it decreases from treatment B to treatment A (if that works better for the test), since it's the same thing. Howev...
I did a Spearman correlation test and I used 14 samples(12 form group 1 and 2 form group 2). P value =0.04. here is the plot: I repeated the analysis for group 1 only (12 samples) and removed group 2 (2 data points). The significant is lost and p value become high p=o.11. here is the second plot: The question is: Is ...
Can the final hidden state of LSTMs/RNNs be utilized as a sequence embedding for documents or sentences? These embeddings could then be applied to tasks like classification or clustering to leverage the spatial relations between them. The learning process can be self-supervised, for example, by using X: [<sos>,"I","at...
I am trying to use a gam function (mgcv package) to decompose the response variable pulse voltage into a combination of polynomial and exponential components. I get the following error: Error in UseMethod("smooth.construct") : no applicable method for 'smooth.construct' applied to an object of class "ex.smooth.sp...
We are in a 8 m corridor. Each bin is 1m wide. There are 5 bins that are dark and three bins that are light. The robot has a light sensor and can detect whether a certain bin is dark or light. If the bin is dark, the sensor reports "dark" in 80% of the times and "light" in the remaining 20%. If the bin is lighted, the ...
The following question is an interview question about probability: There is a list of items and how many times each item is purchased (range from 10 to 100,000 times). The probability of users buying each item is uniform (same across all users). Let's say we have an item "A" that has been recommended ten times and pur...
I am trying to familiarize myself with the Cullen and Frey plot. So, I generated 1000 exponentially distributed numbers using the command: x <- rexp(1000, 2) Then, with the fitdistrplus package, I created the Cullen and Frey plot. install.packages("fitdistrplus") library(fitdistrplus) descdist(x, discrete = FALSE, boo...
I have a dataset containing atmospheric methane concentrations where each data point has two dimensions: one for measured concentrations and the other for modeled concentrations. The dataset is divided into two subsets based on daytime and nighttime timestamp. My goal is to investigate whether there are systematic devi...
The problem Imagine that you have two different tools that produce data at given time points $t_1,...,t_m$. Suppose that we only have access to the mean and standard deviation of the data at each time points for each tool. Let us write it like this: means of tool 1: $T_1(t_1),...,T_1(t_m)$ and the standard deviation $...
Could you verify that i understand the author correctly here? New to Bayes. [...] These assumptions [the prior and the likelihood] also allow us to simulate the observations that the model implies. They allow this, because likelihood functions work in both directions. Given a realized observation, the likelihood funct...
I feel like this is may be obvious, given similar questions and the responses given on this site. I'm still unclear as to the underlying latent variable specification with logistic regression though. When estimating parameters in a logistic regression, I assumed that we define a model in terms of independent variables ...
I have a confusion over an integral involving a multivariate and a univariate Gaussian. We know that in the case of two multivariate Gaussians the following is true: $$ \int \mathcal{N}(\mathbf{y}|\mathbf{A}\mathbf{x} + \mathbf{b}, \mathbf{S}) \mathcal{N}(\mathbf{b}|\mathbf{m}, \mathbf{C}) \mathbf{db} = \mathcal{N}(\m...
unfortunately I have a problem with my lavaan output in R Studio (Version R-4.3.0). I would be very grateful to get help with my problem! I do not get standard errors, z and p values displayed. For understanding here is my multiple mediation model and the corresponding output: mbiMediation <- ' mbi_100 ~ b1*scs_100 + b...
Systematic reviews are typically performed on single papers. Nevertheless, the concept of "systematic review of meta-analyses" is not new (see, for example, here:pdf). Are there guidelines on how to perform them?
I am analyzing my data with a generalized additive mixed model (GAMM) with the following structure: y ~ Var1 + s(Var2) + s(Var3, bs="re") Var1 is a factor with three levels and an unbalanced sample size (level1, n=7; level2, n=24; level3, n=5). I need a post-hoc test that checks pairwise comparisons between all levels...
Most problems about martingales start with an assertion similar to the following one: Suppose that $X_n$ are iid such that $\mathbb{E}[|X_n|]<\infty$ and $\mathbb{E}[X_n]=0$. Then $S_n = \sum_i^n X_i$ is a martingale. Why do we require $X_n$ to be iid? Can the previous statement be extended or generalized (maybe under ...
ID Sex Surface B1 1 female UN 1255 2 female UN 542 3 female UN 818 1 female UN 274 2 female UN 261 3 female UN 314 1 female UP 552 2 female UP 548 3 female UP 721 1 female UP 431 2 female UP 354 3 female UP 738 4 male UN 901 5 male UN 619 6 male UN 861 7 male UN 713 8 male UN 717...
I'm struggling with something that at first sight seemed simple to me but turned out no to be. I have a big df (112 samples x 58 characteristics), these characteristics are all binary (presence/absence, yes/no) coded as 1/0. Here's a random example: condition<-c(rep(0:1,20)) char1<-sample(0:1,20,replace = T) char2<-sam...
I am working with data from different brands where I have how much the different brands were bought for a particular day over the period of 1 year. However, I know beforehand that some of the data is not reliable. Specifically, I know that some brands report 0s that are actually missing values for particular days. This...
The mathematical formulation of partial log-likelihood function (https://in.mathworks.com/help/stats/cox-proportional-hazard-regression.html) is defined as: The above formulation does not take into account the 'id' information. And in the documentation of CoxTimeVaryingFitter (https://lifelines.readthedocs.io/en/lates...
Currently I am applying negative binomial regression. My total sample size is 669 as this is a follow up data. Count variable (dependent variable) is mental health visits, primary independent variable bullying victimization 0=No, and 1= yes, other are covariates which I need to adjust. 609 participants has 0 frequency ...
I came to know from somewhere that there is a technique called delta method which can be used to approximate the distribution of a function of a random variable using the distribution of the random variable itself and the first two moments of the function. It is often used in situations where the distribution of th...
I've been handed off some data to analyze and I'm looking for something simple and straightforward. The main study question is testing the efficacy of 7 herbicides, with one untreated control. The 1 response variable of interest variable is mortality, which con be expressed a number of ways: % mortality, # of dead tr...
Let $X \sim Beta(a,b)$. I was wondering what is the distribution of $\frac{1}{X}$?. Here is my derivation by using transformation of random variable. Let $Y = h (X) = \frac{1}{X}$, which implies $h^{-1} (y) = 1/y$ and $h^{'-1} (y) = -1/y^2$ \begin{align} f_Y (y) &= f_X( h^{-1} (y) ) \left|\frac{d}{dy} h^{-1} (y)\right...
I have a question regarding how to determine the number of independent tests when performing multiple testing corrections. Suppose my research hypothesis is whether age is related to cognition decline in females, and I have four cognitive outcomes. In my actual analysis, I tested the association between age and cogniti...
I have a continuous response variable called "distance," which was measured in two different years (2019, 2020), and each year exhibited a significantly different distribution. In 2019, the best-fitted distribution was "log-normal," while in 2020, it was a "gamma" distribution. To analyze the data, I utilized the "brms...
I implemented an MCMC algorithm for the following regression model: $$y_i \sim N(\mathbf{x}_i'\boldsymbol{\beta} + \eta(\mathbf{s}_i) + \theta_i,\sigma^2),$$ $$\boldsymbol{\beta}\sim N(\boldsymbol{0},10^6\mathbf{I}),$$ $$\boldsymbol{\eta} \sim N(\boldsymbol{0},\sigma^2_\eta\mathbf{R}(\phi)),$$ $$\boldsymbol{\theta}\sim...
This question is more out of curiosity than necessity. Any useful resources/literature will be massively appreciated. Recently started research in a new field that I’m unfamiliar with: economic policy evaluation. And much of the research relies on comparing data with counter factuels; the calculations and variations in...
Why is the distribution of the sum of the values on two dice bell-shaped and symmetric if two uniform dist. sum is triangular distribution via Irwin-hall distribution?
The goal I want to run dominance analysis on a mixed-effects beta model, to approximate the relative importance of a set of predictors (2 factors, 1 scaled continuous, 1 continuous with splines). The random part of the beta model would be random intercepts, with a nested structure: (1|random1/random2). The mixed-effect...
I would like to test whether there is a statistically significant difference between % of ethnic minority students registered in 2018/19 (before the pandemic) and 2021/2022 (after) at a college. I have the actual numbers as well. I am mindful that they are not samples but actual proportions (hence my confusion). Can an...
Cross-posted (kind of) from Academia Stack Exchange We have a research paper that we want to get published in a journal. The paper is some simple statistical analysis of a survey we made. One of the questions in the demographics section is "What is your profession?" and you are given 4 options plus "Other" where you ca...
Assume that you have a matrix $X$ and you want to project it onto a subspace by using PCA. It will work. Then you are trying to use a linear autoencoder to projecting $X$ onto the same subspace. It will work too. Question: Assume that the PCA projection has $c$ components. Can a linear autoencoder project $X$ onto the ...
I analyse chemical data from surface water and groundwater for a scientific paper. My data is split into three main groups: The River, row A consisting of "x" wells, and row B consisting of "y" wells. The main reason for this study is to check whether it is a statistically significant difference between the river, row ...
To simplify things, I will ask my question in the case of simple logistic regression but I am also interested in the case with multiple explanatory variables. Let $\vec{x} \in \mathbb{R}^N$ be the observed values of the explanatory variable and $\vec{y} \in \{0,1\}^N$ be the corresponding observed values of the binary ...
I am trying to compute measures of word/sentence similarity from word embeddings that I would like to use for classification. However, cosine similarity often runs counter to how I as a human would judge word similarity. Are there any other, more sophisticated measures for word similarity? For example, I used Open AI e...
I'm reading a meta-analysis that compared the risk of an adverse outcome in the intervention and control group. The meta-analysis yielded a summary effect size (risk difference) of +3.9%, with a 95% CI -1% to +9%. The authors concluded that this confidence interval 'exclude >1% reduction in absolute risk' because the l...
To implement variational inference in a Bayesian model, one essentially has the choice between different approaches that differ in their degree of automation and flexibility: manually deriving update equations for coordinate ascent variational inference (CAVI) and implementing them (e.g. using numpy) performing stocha...
I performed a Bayesian hierarchal regression with the brm package. Looking at the parameter estimation and confidence interval, I found no support for one of the parameters. However, when I computed Bayes Factor (using different packages), I found strong evidence (BF=11). I am assuming I am doing some kind of a syntax ...
I am trying to find the formula/method of computing the total sample size for a stratified population, given this information: Stratum | size | mean | SD Large | 200 | 60 | 15 Small | 400 | 10 | 5 The problem statement is as follows, nothing more: "A stratified sampling of (companies) is going to be made.Th...
I conducted exploratory factor analysis (EFA) on 69 variables and sample of 346 (1:5 variable to sample ratio). I used Principal Axis Factoring (as it is the most used extraction method for common factor analysis) with Promax rotation (initially I used Direct Oblimin, but some of my factors had negative correlations wi...
I'm trying to create a robust logistic regression model, because I detected outliers in my data, but I'm receiving this error: Error in solve.default(crossprod(X, DiagB * X)/nobs, EEq) : system is computationally singular: reciprocal condition number = 1.38186e-16 I already search about, a lot of people said that i...
I've been trying to wrap my mind around the best way to test for differences within some data I have collected for a study I am finishing up. I have multiple questions that I just can't seem to find answers to that I feel good moving forward with. I have two factors: treatment (radiation and control) and time after tre...
Hi trying to better understand the statistical approach for the below problem. We'd like to build a logistic model (binary outcome) with two independent variables: one binary and the other continuous. The tricky part is that the continuous variable is dependent on the binary variable. To clarify I'll use an example reg...
I conducted a hierarchical analysis with a compound Poisson linear model (cplm) in R, using the cplm package, and found a significant interaction effect. I want to perform a region-of-significance analysis to understand where, across the continuous independent variable, the effect of the binary independent variable is ...
I need to see if there's a statistical difference for each ID between CHLA, CWBA, and CH and what that difference is, AS WELL AS, if Species Type is a factor. Which R package would do this? I have the following data: ID Species_Type Total…¹ Hairl…² Mass_…³ `%_fur` CHL1 CHL2 CHLA CWBA CH <chr> <chr> <db...
With regards to hierarchical models I often see these referred to as groups borrowing information from each other e.g. It will be seen that the hierarchical model posterior estimates for one school borrows information from other schools source I was hoping someone could explain where this interpretation comes from. A...
How would you approach conducting a power analysis to estimate how large of a sample you would need to conduct a difference in differences estimate? For example, for a T-test, I would just set effect size, significance level, and power level and I can calculate the sample size needed. For a difference in differences, w...
Researchers often employ multivariate longitudinal/repeated meatures models when they collect multiple measures ($k\in K$) on each of multiple occasions ($t\in T$) for each of multiple units ($i \in N$). Such model include longitudinal/multi-group item response models, structural equation models, and multi-group confir...
I would like to construct a kernel from very large samples which makes it impossible to construct the N by N kernel matrix. I can use RBF sampler (random fourier features) to make the dimension more manageble e.g. 1000 features. my goal is to use kernel regression to make prediction for new data points? I know how to d...
I have a daily diary dataset with daily ratings of mood (e.g., daily rating of happiness) between two treatment conditions. The complete number of days of ratings vary widely across participants and there is missing data, i.e., participants forgot to fill out a form on a particular day. I am ultimately interested in wh...
I am currently doing an interactions paper with cox models to assess time to criminal recidivism as an outcome, but am struggling with the interpretations. My two variables that are part of the interaction are continuous count variables: v1 - Ranges from 0-5 v2 - Ranges from 0-2 Here are basic findings from the cox mod...
How would I interpret and report the highlighted boxes? The variables: Injury (0=uninjured, 1=injured) Sex (0=male, 1=female) Diet(1=10%EA, 2=50%EA, 3=100%EA, 4=150%EA, 5=200%EA) (note: the “event” is death; the hazard ratio indicates odds of death)
Consider the standard Cox proportional hazards setting with non-informative censoring. (See https://web.stanford.edu/~lutian/coursepdf/unitcox1.pdf for example.) If our observations are triples $(Z_i, U_i, \delta_i)$, where $Z_i$ is a vector of covariates aka predictors, $U_i$ is the observed time, and $\delta_i = 0$ i...
I'm relatively new to GLMM and am experiencing some difficulty with model convergence. Specifically, I have a data set from 200+ participants, each of whom completed 200 trials of a visual search task. I'm trying to examine whether their RTs changed as functions of trials (from the 1st trial to the 200th trial, centere...
Suppose $x_i \sim N(10,4)$ - ie, the distribution is known. There is a noisy signal $s_i \sim N(x_i, \sigma_e^2)$ and I want to estimate $\sigma_e$. I see some pairs ($s_i, x_i$) but they are not 'random' (there is some selection on $s_i$ - say, I see these values mostly for large values of $s_i$). What approach would ...
I have groups of individuals in a population. These groups have different sizes--for example, group 1 has 50 individuals and group 2 has 1000 individuals. I want to show the differences in the groups' demographics data. I have categorical demographics like gender and location. I've thought about doing simple percentage...
Background I'm a data analyst. The Business unit I'm assigned for needs to segment users based on power vs non-power users so they can target each segment with proper treatments. Goal Segment users (power vs non-power) based on their spending level (revenue generated to the company) on a small sample (20k users) Find...
I have two simple questions about generalized linear models (GLMs) which for some reason I could not find a good reference for: What is the form of the hypothesis/predictor for generalized linear model? i.e., some function $f: x \mapsto \widehat{y}$, $\widehat{y}$ is the prediction of the label of $x$ What is the usu...
I am running a pooled OLS regression as a benchmark model on a panel data set of online forum member activity. The aim of the model is to understand the relationship between exposure to hate speech and its adoption. The pooled model therefore includes exposure to hate speech the previous month as the independent variab...
I’m a bit stuck with what seems like a simple question. I have data from an experiment whereby participants had to provide ‘yes’ or ‘no’ answers (so the response mode was binary). Their scores, however, are not binary as there were multiple conditions and I took the average score for each condition. The final scores in...
The central limit theorem in its most popular form states that (without being too formal) for a set of random variables $X_1,X_2,...,X_n$ independent and identically distributed with mean $\mu$ and standard deviation $\sigma$ we have that $\sqrt{n}(\bar{X}-\mu)$ converges in probability to a normal distribution with me...
I have one categorical IV, one categorical moderator, and a continuous M and Y. I runs a moderated mediation model 7 based on proposed model of my study. The result show that there is a significant index of moderated mediation, but one of the conditional indirect effects are nonsignificant. How should I interpret that?...
We can read in Jaynes' Probability Theory: The Logic of Science that the family of Gaussian densities $$ f_{m}(x) = \frac{1}{\sqrt{2 \pi \sigma^2}}e^{-\frac{(x-m)^2}{2\sigma^2}} $$ with $m\in \mathbb{R}$ is the only translation invariant family such that the MLE of $m$ for iid samples is the empirical mean: $$ \hat m_{...
I use a transformer model to make some predictions similar to time series classification. The model consists of some embedding layers, multihead attention and dense layers. Why does the model loss decrease sharply at the beginning and the validation loss gradually?
I'm new to Inverse Probability of Treatment Weighting and trying to understand the mechanism. From several practical guides I understood, that the weights should add up to the population size for treated and untreated samples (e.g., here or here). Now I have a dataset with unbalanced treatment data and non-normal distr...
Given a model (returning scores between 0.0 and 1.0), and 1000 positives input examples 100000 negative input examples I'd like to calculate the AURPC. Calling the model is costly, so I don't want to invoke it on all 101000 (1000+100000) samples. (~2k samples would be ok.) The "normal" approach would be to evenly sub...
From "An Invitation to Statistics in Wasserstein Space" (Victor M. Panaretos and Yoav Zemel) Theorem 2.2.1 (Convergence in Wasserstein Space) Let $\mu, \mu_n \in \mathscr{W}_p(\mathscr{X})$. Then the following are equivalent: $\mu_n \rightarrow \mu$ weakly and $\int_{\mathscr{X}}\|x\|^p \mathrm{~d} \mu_n(x) \rightarro...
I have seen in many places that the vc-dimension of H, an hypostases class which consists of rectangles parallel to the axis is 4. yet when constructing this 2D constellation of points i can't seem to find any label assignment which can't be labeled by some rectangle...
I'm sorry for such a silly question, but I would like to ask about post hoc comparisons that I could use to follow up on a significant, although hard to interpret, three-way interaction. I ran a mixed-effects logistic regression model with glmer() predicting categorization responses from the speech cue weighting task w...
I'm currently reading James1997 - Generalizations of the Bias/Variance Decomposition for Prediction error. My ultimate goal is to see how, in the special case of squared loss, bias-effect and variance-effect reduce to the commonly known bias (squared) and variance. There is an arithmetic trick being used that I somehow...
I am working with fishery data. I have a data vector called SFL that contains the sizes of the fish caught. Here is some sample data: # Two normal distributions c1 <- rnorm(1000,2,0.5); c1 <- c1[c1 > 0] c2 <- rnorm(1000,6,2); c2 <- c2[c2 > 0] # Sorted SFL vector SFL <- sort(c(c1, c2)) Here my histogram: # Histogram ...
In the first training epoch, the Adam optimiser seems to reset the weights of my model if I have use_ema=True. I am compiling a keras model and loading weights from a file using model.load_weights(<path_to_weights>) To make sure that this is the case I set the learning rate of the optimiser (from tensorflow.keras.opti...
I'm currently dealing with a Gibbs sampler of the matrix variate generalized inverse Gaussian distribution. In order to check the correctness of the Gibbs sampler, I'd like to know what are the distributions of the entries, or at least their expectations.