instruction
stringlengths
9
38.7k
Cross posted from Mathoverflow Let $X$ and $Y$ be two random variables such that $X\sim Exp(\lambda)$ and $Y$ have positive support and (strictly) increasing hazard rate $h_Y$. $X$ and $Y$ are independent. Let $Z=X+Y$. We observe $Z$ and want to infer the hazard rate of $X$ conditional on $Z$; $h_{X|Z}$. The interpreta...
I am dealing with a variation of a standard problem. Given an objective function $O := E_{a \sim P_\theta(A)} [f(a)]$, we can calculate its gradient $\nabla_\theta O$ as follows: $$\nabla_\theta O = E_{a \sim P_\theta(A)} [\nabla_\theta \log P_\theta(A=a) f(a)],$$ which can be approximated using samples from $A$. Howev...
Gradient descent involves significant computational effort, whereas the method of least squares enables direct and accurate calculation. Does gradient descent offer any advantages over least squares estimation? The only potential advantage of gradient descent that I can identify is that it allows us to use other loss f...
I actually work on medical datas to predict outcome after treatment on patients with metastasis lesions of carcinomas. Each patient have different number of lesions with some with like 30 lesions and others, only 3, and, among these lesions, some will be classified as "0" (stability or response), and others as "1" (pro...
Let's say I have a population of 1M objects. I want to make a binary classifier to use on that data, but I can't manually classify all the 1M to create training data because that would take too long, so I: Take a small sample of that population Lable that sample manually Train a classifier Calculating the model's rec...
If there are two groups of people A and B which are both normally distributed around the same mean, and 80% of the total group is of type A and 20% is of type B, I know that if I randomly sample from the overall group that my random sample would have the same 80/20 breakdown. However, if I select from only the top .3%,...
I understand that it works best for image generation to add white noise and no drift because is simpler. My question is, theoretically speaking, can the noise follow a certain distribution and the drift can be any function of state and time (signal), and the neural networks can learn to distinguish it from noise? A lot...
I would like to know how to algebraically construct cardinal spline bases, as I would like to make a prediction with a natural cubic spline model which uses them; however, the only source I have found is Simon Wood (2017), which I do not have access to. I am familiar with the construction of truncated power series base...
I have data from a cohort of 10,000 people who were followed for ten years to analyze the relationship between stress and the risk of dementia. The stress levels were independent variables, and the dementia incidence was response variable. I used the cox model to calculate the hazard ratios for dementia incidence accor...
I have a time series that I'm using for forecasting and I'm facing an issue with a flat period. In my time series, I have the following dynamic: In the past the quantity was stationary (red part), almost intermittent but there's some data; however after some time the series started to pick up and behave like a regular ...
Is it okay if my outcome for time series linear regression and linear regression is the same? I have time series data with 756 observations and for each year there are 252 observations. The time series data is from 2015-2021. It is an individual data type. All my independent variables are categorical and I categorized ...
I have two models: Black Box: Fedformer https://github.com/Zero-coder/FEDformer White Box: A linear function I want to predict home load, I use Black box predic time-series got a pth file. Then I use White box to calculate load base on linear math function either. I want to add weight for these two models to get a bett...
The Bernoulli product measure $\mu$ can be defined for each $p\in (0,1)$ on $\Omega = \{0,1\}^\mathbb N=\{\omega=(\omega_i)|\omega_i\in\{0,1\}, i\in\mathbb N\}=\Pi_{i=1}^\infty \{0,1\}$. The measure $\mu$ is essentially defined by a collection of Bernoulli random variables $X_i:\Omega\to\{0,1\}$ which take the value $...
I want to find out if 2 proportions are different or not. For one, sample size is <30. For the other, it's much >30. Can I use the Z test since one size is large? Or do i have to use the t test? Or can I not compare since the numbers are very different? I'd be grateful for any help. Thanks.
We want to test the effect of dietary supplement on two groups of cows (randomized and controlled for starting weight and age). Group 1 (6 cattle) receives supplement 1 and group 2 (6 cattle) receives supplement 2. They are housed in the same pen but groups are isolated from each other. Animals are weighted once a mont...
My question is about situations where I analyse data from a survey (eg. service satisfaction) where some of the questions are presented only to a specific sub-group of respondets (eg. only respondents of age 65+ were asked about service options available only for them). I want to use this data in a prediction model (eg...
I think I see a contradiction between two blog posts, please help me decide if there's an error somewhere or how do these align: lilian weng claims this: while wouter van heeswijk claims this: [ who is right?
Can I and if so, how can I, use the output of a MCMC method as the input for an independent Metropolis-Hastings algorithm? Maybe this question reduces to: How can I get (independent? or at least "almost uncorrelated") samples from a distribution which I only have access to through sampling from a Markov chain which has...
I am trying to perform spatial panel data analysis using the splm package in R. However, I encountered an error when applying the Moran test and LM tests to the entire panel data. I have generated random data over 10 time periods, including variables for income and crime. I created a spatial weights matrix using the ma...
I have ran a latent basis analysis and got the results below. S BY AE1 0.000 0.000 999.000 999.000 AE2 0.714 0.185 3.867 0.000 AE3 0.734 0.219 3.348 0.001 AE4 1.024 0.300 3.414 0.001 AE5 ...
I've read that Adaptive Gaussian-Hermite quadrature is better for binomial distributions than Laplace estimation is, but would like to understand how it works/why it’s better. My particular situation: I have a mixed model with a two-way interaction and random intercepts for participant. When I tried it with Laplace, th...
I certainly should read Jakob Bernoulli's Ars Conjectandi again but let me share my concerns. I'm just wondering when and how the Bernoulli distribution $Be(p)$ (and related distributions like the binomial $B(n,p)$) with real binomial proportion $p$ was introduced. Indeed, classical probability theory defines probabili...
tslm(Life_expectancy ~ Age + Gender + Race + trend, data=ts_df) Can I do something like this? I actually tried using this as a model and I got a different outcome but the p-value of trend variable was insignificant. Does that mean that there is no trend in my data? I did the vif test.
I'm reading about Actor-Critic in lilianweng, and I'm wondering about why is this the action-value function update? what function are we taking the gradient of here?
My objective is to see if there is a significant difference in BHB concentration between age categories in farm animals. Farm should be a random effect in the model. The issue is that BHB concentration is left-truncated (lower detection limit at 96). I have 94 data rows, of which 63 are at the lower limit of detection....
Assume one is given two series of binomially distributed data: $$X_{1k} \sim Binom(n_{1k}, p_{1k})$$ $$X_{2k} \sim Binom(n_{2k}, p_{2k})$$ $$k\in \{1\ldots K\}$$ The goal is to estimate $p_2 - p_1$ along with it's credible interval, given some priors on $p_1$ and $p_2$. Similarly to the paired $t$-test, I'd expect the ...
I have a no-trial question: I want to soft cluster the apps from Google Store. Most of the parameters are numbers, so no big clue. There are also "tags" but this is like using categorical features. I can use a one-hot encoding. The pain is about the titles, which still contain a lot of useful info. To keep the feature-...
I'm currently trying to understand graph neural networks and got stuck with comparing MPNN and GCN. In my understanding, MPNN is more of a "general framework", while GCN is a specific "instantiation" of that framework. Accordingly, a GCN can be seen as a type of MPNN. Now, a MPNN always consists of a message function, ...
Say we are fitting a penalized model, such as a linear regression with lasso regularization. We expect to obtain a model with the most significant covariables. The method starts with many covariables and ends up with just a few, as we use to do with backwards stepwise methods, but the result is obtained in a single ste...
What statistical test should i use for comparing samples with different sizes? I am using a public dataset from DataSUS, I want to see if there are differences between the mean/median for the same type of surgery in different hospitals. The number of surgeries is distributed along the years: For surgery type 1, hospita...
For my research I am looking for a stochastic process that fulfills the following conditions. The process takes values between 0 and 1, $X(t) \in [0,1]$ for all $t \in \mathbb{R}$. The process ends if it hits either 1 or 0. Denote this time by $T^*$. If $X(t) = p$, then the probability that the process hits 1 (instead...
Normally, I am testing the calibration of a probability of default model with the binomial test. The ECB is suggesting the Jeffreys Test. Are they related in any way? Is the Jeffreys test superior to the simple binomial test in any way? The goal is to compare forecast rate of success (defaults) with actual success. Se...
I have a model which predicts a binary outcome (default/no default). The discriminatory power of the model is normally quantified with Somers' D which is the same as Gini in the binary context. $Gini = 2 \times AUC -1$ AUC is also nicely explained here: https://developers.google.com/machine-learning/crash-course/class...
Let's say that a random variable $X$ takes the values $(x_1, x_2, \dots, x_n)$ over the sample space $\Omega$. As far as my understanding goes, the entropy of a given variable is meant to give an idea of how small are the probabilities of the same variable taking the values that it takes, and thus knowledge of a varia...
I'm working in PyTorch and I would like to use a Temporal Convolutional Neural Network (TCN) to perform binary classification for each timestep of an input sequence, therefore a Sequence-to-Sequence (Seq2Seq) TCN. I'm considering the TCN PyTorch implementation defined here and here which is used in this MNIST example t...
A method to handle missing data is with multivariate imputation by chained equations. During this process, we create many datasets (as many as you specify) with imputed values for the missing data. Then, models are fitted for each of the datasets and the estimated coefficients across all the fitted models are pooled to...
I recently discovered TLS for a bio-statistical (ecological) problem I am working on. However, I was not able to find a lot of (ecological) literature that uses TLS in their analysis. From other disciplines I mainly found papers that focus on image recognition, that look at calibrating instruments for measurement error...
How do I improve the accuracy of the following data. It is from the following Kaggle competition which I am doing (despite it being closed for a school project). afinn <- get_sentiments("afinn") %>% mutate(value = case_when(value > 0 ~ 1, value < 0 ~ -1)) nrc <- get_sentiments("nrc") %>% ...
In a previous question (Entropy of an image) and in various sources on the web, the Shannon entropy of an image is considered to be the entropy of the frequency distribution of the grayscale values. In this way a random image where the pixels take the values 0 or 1 with the same probability has an entropy equal to a si...
From Wikipedia, the Weibull distribution is defined with the exceedance distribution function (aka survival function) $\exp[-(x/\lambda)^k]$. If I transform the random variable $x$ using $x'=ax^b$ then $x'$ is also Weibull, with new parameters $\lambda'=a \lambda^b$ and $k'=k/b$. And it seems that any Weibull can be co...
This is about a joint project with a subject matter expert, and I'm the statistician. I will not explain the background and simplify the statistics problem as the background is rather complicated. The model that we actually fit is a negative binomial mixed effects GLM, but the problem can be explained using a Poisson r...
I have dataset with a (unique) ID, a date (yyyy-mm-dd format) and an arbitrary measuring value x. The dataset is sorted by date (first) and, multiple IDs have the same date, by ID (second). If I plot the data in a scatterplot everything is fine, until I intruduce a moving average for my data. As some dates can appear m...
There is a distribution $D(\theta)$, where $\theta$ represents the parameters of the distribution. To sample from the distribution, a bunch of people are called to give their samples $x_1, \ldots, x_n$. Given those samples, one can estimate $\theta$, and we'll all be on our merry way. However, a lot rides on what $\the...
The survival package function survfit() calculates a confidence interval for the estimated median survival time. It seems clear that this interval is calculated as the set of timepoints for which the 95% CI for S_hat(t) contains 0.5, and as such the interval will vary depending on which transformation is used to const...
I was studying mathematical statistics written by Joe Blitzstein when I encountered the derivation of the PDF of Cauchy distribution. I cannot understand why the distribution is the same between X/Y and X/|Y| (that is, why P(X/Y < t) = P(X/|Y| < t)). I know that since X and Y are iid Normal(0,1), they each have symmet...
I have the following data: Seven substances (hereafter S1–S7); Inside each substance, I have 30 scores (10 for each of three layers (let's call them A, B, and C)). The scores (1–5) are also ordinal. An example: S1 A - 10; B - 10; C - 10; S2 A - 10; B - 10; C - 10; And so on. So, I have two questions: Compare the effec...
I want to sample uniformly from the area bounded by $y=0$, $x=3$, and $y=\sqrt{x}$: If I draw $x$ from $U[0, 3]$ and $y$ from $U[0, \sqrt{x}]$, the density will be higher in the bottom left corner: I tried to fix this by making the number of points on a region bounded by $x=a \in [0, 3]$ on the right, the square root...
I have sales data (quantity sold (tons) and the prices that those forest products were sold ($/ton)) of three forest products (e.g., sawtimber, chip-and-saw and pulpwood) and sales of these products were done by individual forest owners. Considering the fact that these three forest products can come from a single tree ...
I am looking for the method that estimates a parameter to maximise the correlation between two distributions. I am measuring the speed of a rowing boat that goes up and down a river. The crew goes at different speeds - doing fast 500m and then goes slower again, for example. Because of the river flow going downstream t...
I'm trying to create an example of a distribution with all positive values, standard deviation > mean, and skewness =0 (third moment). I cannot. Is that possible? Can you prove it mathematically? Thanks.
My experimental design is similar to that from a classic study of metal alloy hardness. The classic example: A researcher designs an experiment to study the hardness of a metal alloy. A three-stage nested design was conducted that included: Two alloy chemistry compositions. Three ovens for each alloy chemistry composi...
I am trying to see which predictors in my dataset are interacting with each other to see if their inclusion can improve model prediction. I followed these steps to do my analysis: First I used lm on all predictors. Then I used backward regression to select predictors. Then I ran lm on the selected predictors. Then I r...
I'm using IPUMS CPS data for my analysis of various subgroups. IPUMS CPS is a weighted data set. My initial sample with 33 variables has 152,732 observations. My subgroups have gotten significantly smaller as I control for more characteristics, gender, race/ethnicity, age, etc., which is what I assumed would happen, bu...
Every animal farm needs to be verified by its city council in a regular time frequency, which could be every six months or 12 months. We report how many farms nationwide which fail the verification each month. If I want to compare one city's failure rate against the nationwide rate (excluding that city) monthly, what t...
I am a bit confused about the terminology used in the context of sampling of populations. The Horvitz-Thompson estimator, as well as the Hansen-Hurwitz estimator, for example, are examples of estimators introduced to deal with various sampling methods. However, I don't understand why they are considered to be estimator...
I understand the Shannon diversity index being used in spatial analysis when comparing multiple sites of measurement, but can it be used to measure abundances, richness, diversity, etc. on a temporal level? I haven't found much literature looking at data series of community ecology using it.
I am trying to replicate the results from a GEE I have done with SPSS in R. The dataset I am using can be found here SPSS Script GENLIN Lying BY Week Day (ORDER=DESCENDING) WITH Temperature Humidity Wind_Speed C_Rain /MODEL Week Day Temperature Humidity Wind_Speed C_Rain Week*Day INTERCEPT=YES DISTRIBUTION=POISSON LINK...
I wuold like to do a mediation analysis with exposure as A and outcome as Y (binary value). However, there are two mediators, M1 and M2 (both continuous values), and I wuold like to obtain an estimate of the indirect effect via M1, an estimate of the indirect effect via M2, and an estimate of the direct effect via neit...
I have done a observational study testing a hypothesis something like this "Days alive and out of hospital for one year after surgery is more than one year before surgery". My data looks something like below. The actual sample size of the study is small ($n = 90$) for testing a hypothesis such as I have. library (data....
I was reviewing the derivation for the variance of ordinary least squares estimators and experienced some confusion. $$ \Large Var(\hat{\beta}) = \frac{\sigma^2}{\Sigma^n_{i=1}(X_i-\bar{X})^2} $$ From this article, there was this formula, which said in an OLS model where $y_i = \alpha + \beta x_i + \epsilon$, and $\eps...
I'm doing time series forecasting using Prophet. My forecasting model returns not only a prediction y_hat, but also an uncertainty interval y_hat_lower and y_hat_upper. I wanted to calculate some metrics, like RMSE, MAE, etc. to evaluate the model's performance but don't know how to incorporate the interval in the calc...
I refer to this seminal paper (Matching Methods for Causal Inference with Time-Series Cross-Sectional Data) by Kosuke, In Song and Erik. Context In the paper, the authors propose the use of a two-layer adjustment to the typical DiD estimator - (1) treatment history matching and (2) refinement methods such as PS weights...
I'm using fastai to run some experiment models. I've downloaded the Kaggle fingers dataset and with that ran the code below. What I don't understand is why, although train_loss & valid_loss are going down as epochs are applied, the error_rate keeps still at 1.0. What could explain that? import fastai ... fingers = Data...
Say if I have a input feature with length 50 and the ground truth bounding box is [10, 20]. If I pad the input to fixed-length 100 and mask the padding in the model, then in the output, should I make the model to predict the raw bounding box [0.1, 0.2] (relative to the padded length 100) or the scaled box [0.2, 0.4] (r...
Suppose $X$ is a random variable $\in (0,1]$ $f(x)$ is the CDF of this random variable $g(t)=\operatorname{mgf}(-t)$ where "mgf" is the moment generating function. Can we infer the behavior of $g(t)$ at $t=t_0$ from behavior of $f(x)$ for $x\approx 2/t_0$? Theorem 2.3 in Coqueret's "Approximation of probabilistic Lap...
I am trying to better understand the importance of "Cure Models". Reading some introductory materials on this topic, its mentioned that traditional Survival Models rely on the assumption that all observations being modelled are expected to eventually experience the "event". Cure Models are apparently intended to be use...
I am building a recommender system, in which for one system there will be only one user. So we cannot use something like user-user data. Recommendation is an item which contains 10-15 attributes ie categorical values. And user can like/dislike the item. Dataset looks like below table, only it has 10-15 attributes. Som...
I am reading this article: https://www.datacamp.com/tutorial/pca-analysis-r The article says: We need to center/scale the numeric variables, compute the correlation/covariance matrix and then invoke princomp with that correlation/covariance matrix as the first argument. The help page for princomp says: ## Default ...
I am trying to see which predictors in my dataset are interacting with each other and their inclusion can improve model prediction. I followed these steps to do my analysis: First used lm on all predictors: Then use backward regression to select predictors. Then run lm on the selected predictors. Then run lm on the sel...
I am evaluating an intervention that reduces seclusion in mental health care wards. So, I will be using negative binomial regression to determine if there is a significant difference between intervention and comparison sites in reducing seclusion events. My outcome variable will be seclusion events (SEC) and the predic...
I am working on a synthetic tracking problem in a two-dimensional space, where the start and end positions are known and noisy measurements of the state variables are given at discrete time steps. As a first filtering step, I am using the Kalman Filter initialized with a very small P and my known start state. Subsequen...
If you assume a Gaussian distribution for the "errors" of your regression model, you can express the maximum likelihood, so the coefficients giving the highest likelihood for the observed data, with the sum of squared "errors" of your regression model. I am trying to calculate the AIC for my quantile regression models,...
This is partially a coding question so I hope I'm on the right platform for this. I am fitting a dynamic factor model using the state space framework. I don't know the initial distribution of the state, since I don't know anything about it. (I hope this is the right train of thought). I have read in this paper by Durbi...
I run Pearson correlation for 2 variables and the results say that r = .16, signifying a negligible correlation. However, the p-value is significant p = .05 Do the 2 variables have a significant relationship?
I have 3 linear regressions with differently scaled dependent variables and the same independent varibales. I standardized the dependent variables for comparison reasons. The other regression includes a binary dependent variable. I want to run an OLS and not logit/probit so I can compare the results. But can I standard...
I am implementing Logistic Regression via Iteratively Re-weighted Least Squares (in Rust for what its worth). The iterative procedure is: $$ \mathbf{w}_{k+1} = (\mathbf{X}^T \mathbf{S}_k \mathbf{X})^{-1} \mathbf{X}^T (\mathbf{S}_k \mathbf{X} \mathbf{w}_k + \mathbf{y} - \mathbf{\mu}_k) $$ I am running into the problem o...
I'm looking at two proofs for the policy gradient theorem. van heeswijk starts of with expressing the policy gradient as a gradient over expected reward trajectories: and the rest is easy. However weng starts off with a gradient of the value function of a random state: and the proof is much more involved, and require...
Given $X \sim N\left(\mu, \sigma^2 \right)$, I want to find the distribution of $$Y = \Phi \left( X \right),$$ with $\Phi \left(x\right) = \int_{-\infty}^{x} \frac{1}{ \sqrt{2\pi}} e^{-\frac{t^2}{2}}dt$, i.e., CDF of a Standard Normal Distribution. More specifically, I want to get an expression for $SD \left[Y \right]...
Accuracy stayed the same but F1 score went from 0.0 to 0.5, ROC-AUC from 0.0 to 0.7 (with non-linear activation the classifier predicted everything to be 0). Isnt non-linear always more precise than linear, just more demanding computatinally? Linear separable classes can be separated just as well with a non-linear acti...
I have asked listeners to rate some voices on 10 different questions. There were 2 groups of listeners. Group 1 had Set A of questions whereas Group 2 had Set B. Listeners responded on a Likert scale from 1-7, where each end of the scale was labelled (Strongly disagree 1, strongly agree 7). As such, I'm treating the re...
By default Prophet will return uncertainty intervals for the forecast yhat. Unfortunately, the documentation about those "uncertainty intervals" is extremely vague, and it doesn't help that statisticians have precise definitions of both confidence intervals and prediction intervals (there is a big difference!), but n...
Participants completed a survey containing a pick, group and rank question. In detail, they were provided 16 items and asked to choose the ones that are relevant to them. Afterwards, they should rank these selected relevant items, i.e., most relevant item = rank 1, second relevant item = rank 2 etc. I am looking for th...
I'm trying to use cross validation to select which models are suitable, I'm following the R code here: https://rpubs.com/rdelgado/405322 I have used this code: library(caret) folds <- createFolds(training_set$MH7A, k = 10) # Regresion Logistica cvRegresionLogistica <- lapply(folds, function(x){ training_fold <- t...
I am new to time series regression. I am trying to understand the effect of differencing the time-dependent data before applying regression analysis. I tried fitting lots of regression models but in all those cases the model assumptions are violated and show a high autocorrelation. I was told that interpretation of the...
In order to leverage a cox model for calculating adjusted survival curve - one must estimate the baseline hazard function. To my understanding this has to be estimated (non parametrically) for observations where all categorical variables are set to their reference category and all continuous variables are set to 0. Th...
I have a question about how a split system should work. I have a product. Which looks like eBay. We conducted an experiment that should increase the number of users who choose one of the categories. What's the point, I have a Default option that looks like the photo (Group A), B group (Icons made large), C group (Same ...
In "A new coefficient of correlation" (Chatterjee, 2019), Chatterjee defined an asymptotically unbiased estimator for the following index, which is zero for independent random variables $X,Y$ and one if $Y$ is a deterministic function of $X$: $$\xi(X,Y) = \frac{\int \mbox{Var}\left(E(1_{\\{Y\geq t\\}}|X)\right) d\mu(t)...
I am analysing a dataset with the following characteristics: We have three different groups. The difference between them lies in different levels of expression of a specific gene (no expression, medium expression, high expression). This could then be thought of as an ordinal variable. The response variable is a purely...
I have run an elastic net on a relatively small sample (n= 320) with 17 predictors and 5-fold cross-validation (no train-test sample because of the small sample size) and 100 bootstraps. When I look at the predictions using the minimum lambda and alpha, I get a relatively full prediction table, with coefficients of var...
I have a dataset with biomass, dbh, height, wood density, site, and species. As data were not normally distributed, I converted biomass, dbh and wd using the log() function. Then I developed a linear mixed model using the lmer() function in R Studio. I kept biomass as the response variable and the remaining other param...
Both AUC and Average Precision (AP) are commonly used to evaluate the quality of a ranked list of relevant / irrelevant documents. When evaluating a search engine, we want to evaluate the quality over multiple queries, therefore we naturally define MAP, the mean AP over multiple queries. Similarly, why don't we define ...
I would like to run a regression on some data I have on high school students and their choice of university they apply to. The data I have gives me characteristics on the students as well as on all the different university programms they could choose. What i want to do is run a regression to understand student's decisi...
How is longitudinal forecasting usually done? I know a bit about longitudinal (panel) data analyses, but I have not yet forecasted from longitudinal data. I tend to think that building several time series forecasting models is a solution: since we have N subjects in longitudinal data, I think I need to build N forecast...
Using the paraPen term and gamma to control how much penalisation, what is the correct structure of penalty matrix input for paraPen for an interaction to be penalised? In the case of a numeric variable we would use: paraPen = list("numeric_variable" = list(rank = 1, diag(1))) In the case of a factor/character variable...
I'm currently working with a dataset with a sample size of 174 from a questionnaire that measures 6 types of personality traits with 5 response options per item (Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree) I've generated a polychoric correlation matrix to inspect each item and I need some assistance wi...
Suppose I have a probability measure $\eta$ on a measurable space $(\mathsf{X}, \mathcal{X})$ and I have an empirical approximation of it $$ \eta^N(dx) = \frac{1}{N}\sum_{i=1}^N \delta_{X^{(i)}}(dx) $$ for some particles $X^{(i)}$ that I have obtained through importance resampling with a proposal measure $\nu$. Is the...
I'm reading Using Weights in the Analysis of Survey Data by David R. Johnson . When we conduct a survey, people have different likelihood to respond. For example, suppose there are 50% males and 50% females in the population, and 40% young people and 60% old people. Suppose females are more likely to respond than males...
I fitted, using glmmTMB R package, a zero-inflated negative binomial GLMM, with offset and a random factor, to investigate which variables could explain animal species' range filling. The response variable (Range_filling) is expressed as cell counts, and to account for the total area available I have put its log as an ...
Can I create dummy variables if my variables are ordinal categories? this makes sense? Furthermore, I want to study the correlation of the categorical variables, do I do it before or after transforming them to dummies?
Are accuracy, AUROC and related measures (sensitivity, specificity) that are commonly used to estimate the performance of a supervised machine learning model using cross-validation etc. collapsible metrics? What I mean by that is suppose we want to estimate the accuracy of an ML classifier for some population composed ...