instruction
stringlengths
9
38.7k
I am new to statistics but had what I think is a pretty simple question: Prediction machine 1 correctly guesses the outcome of binary (yes/no) events 60.4% of the time. Prediction machine 2 correctly guesses the outcome of binary (yes/no) events 71.88% of the time. These machines work independently and have no knowledg...
Diebold (2015) wrote a follow-up paper/essay reflecting on how his work with Mariano to develop the Diebold-Mariano test has been abused over the years. One of the main points in the follow-up paper is the advantage of looking at model performance over the entire sample and then penalizing according to the parameter co...
I am reading a paper in which the authors models tree survival (mortality). They go and remeasure tagged trees for decades to establish "survival functions" for the given tree species and note whether they are still alive or dead. Initially when the trees are young, they measure every year but as the trees get older th...
At my organization, we use a deterministic formula mid-month to predict an end-of-month value. We have some data on the historical performance of this prediction. We know the value of the average prediction percent error ((Predicted - Actual)/Actual) and correspondingly we know the standard deviation of the predictio...
I'm sorry if this is trivial or a known problem. Assume $x$ is a Gaussian random variable in $\mathbb{R}^d$, and $z = A^T x + e$ for some $A \in \mathbb{R}^{p \times d}$ and independent $d$-dimensional Gaussian noise $e$. Assume further that $y=b^T z + \epsilon$ for some $b \in \mathbb{R}^p$ and again, Gaussian noise $...
Suppose I have a set of observational data as a time series where the observations are collected at uniform interval over the course of several years. The data exhibits seasonality over the course of both the day and the seasons of the year (it's environmental data). I am interested in examining the data stream over ...
I am working on a project to determine the variables that better predict the binary outcome. I am using conditional random forest and permimp::permimp to assess the importance of variables for my subgroup analysis. Now, I want to make probability predictions from a properly constructed random forest, based on each new ...
Assume the following model: $y = b_0 + b_1 * x$ where we set some priors to $b_0, b_1$. Let $I$ denote our historical data and $x^*$ denote future inputs. Let $p(b_0, b_1|I)$ denote our posteriors. We can then define the posterior predictive distribution as $p(y^*|I, x^*) = \int p(y^*|b_0, b_1, x^*)p(b_0, b_1|I)$. Now ...
I have two variables: cell death and diet, but on the diet variable I have several groups that I want to compare. I was thinking of doing multiple Mann-Whitney tests, but that would be very time consuming. So I was wondering if doing a Kruskal-Wallis test would be similar. Any help on this? I added one example of the ...
I have estimated an OLS model and a Negative binomial model of ln housing search (ln S) per unit (for instance, the average number of visitors per house or bidders per house) as a function of predictors. Then I predict ln S at various levels of 2 of the predictors (High, Medium and Low quality) and (boom exp, boom con,...
In Regression Modeling Strategies page 79 (4.7 Data Reduction) reads: Data reduction is aimed at reducing the number of parameters to estimate in the model, without distorting statistical inference for the parameters. This is accomplished by ignoring Y during data reduction. Manipulations of X in unsupervised learning...
The RBF kernel is given by $$ k(x,y) = \exp\left(-\frac{\| x - y \|_2^2}{2 \sigma^2}\right) $$ where $\sigma$ is the length-scale parameter. I want to use the random kitchen sinks method to create a basis that approximates this kernel with parameter $\sigma > 0$. The random kitchen sinks basis is given by $$ Z = \sqrt{...
Been wracking my brain over this one but can't quite get it. I want a distribution for the population size of randomly-chosen cities, where I can assume the city's rank obeys Zipf's law with a known largest city. I can sample this by first uniformly sampling a city's rank, and then looking up its population size as max...
I have been trying to simulate data that shows bias in the estimated regression coefficients when there is data Missing At Random. In this case I am not interested in the estimated coefficients themselves, but on the predictions that the model makes. To do this I have followed these steps: Generate two uncorrelated ex...
Players A and B each have $10 at the beginning of a game in which each player bets at each play, and the game continues until one player is broke. Suppose that Player A wins on a single bet with probability p = 0.45 What is the average duration of the game? What is the probability that Player B wins the game? So far I ...
My question, in this calculator (https://sample-size.net/sample-size-survival-analysis/) why is q1 is fixed to 0.7 thus q0 is fixed to 0.3.
Assume I have two studies, say $\mathcal{S}_1$ and $\mathcal{S}_2$, with respective datasets $\mathcal{D}_1, \mathcal{D}_2$, parameters $\theta^{(1)}, \theta^{(2)}$ and response variables $y, z$. I have the following questions: If I am interested in using the response $y$ from the first study as a covariate in the sec...
Assume that you have an image $X$ and you want to search a specific small object inside the image $X$. It's only one object. So you training an AdaBoost model with only one valid train sample and the rest of the train samples, they are non-valid. After the traning is done, would not AdaBoost be trained to discriminate ...
Consider the Matern covariance function with the following parametrization: $$C_{\nu,\phi,\sigma}(h) = \sigma^2 \frac{2^{1-\nu}}{\Gamma(\nu)}\left(\sqrt{2\nu}\frac{h}{\phi} \right)^\nu K_\nu (\sqrt{2\nu} \frac{h}{\phi})$$ where $K_\nu$ is the modified Bessel function of the second kind, and $\nu, \phi, \sigma^2$ are po...
Let $M$ denote the median of a function $f(X)$ that is Lipschitz continuous with $\left \| f \right \|_{Lip}=1$. I am trying to show that if $\left \| f(X)-M \right \|_{\psi_{2}}\leq C$, then $\left \| f(X)-\mathbb{E}f(X) \right \|_{\psi_{2}}\leq C$, where $\psi_{2}$ is the sub-gaussian norm. I understand that the inve...
I have a study where the initial height of seedlings were measured at year 0 and again 11 years after treatments were applied and a net change in height was recorded. I have a split-plot design as follows: Treatment (whole-plot factor, 4 levels: TMT1, TMT2, TMT3, CONTROL) Unit (replicates of treatment, 20 total: 5 for...
I am brand new to stats and trying to run my first regression based on an existing dataset I've been given at work, and I need some help being pointed in the right direction. I'm self taught, so apologies in advances as my knowledge and vocab on the topic is very patchy! In the survey participants have been tested on ...
I have a plot with 5 cumulative incidence curves and I want to know which curves are different from each other. Right now I have a p-value from Gray’s test (p<0.001), which tests all the curves at once. I considered plotting just two curves at a time and calculating a p-value, but that doesn't have corrections for mult...
I'd like to know if my interpretation of this summary is correct. It is a hierarchical logistic regression I made with mixed models for an analysis of a generalization gradient. I've got fixed and random effects. The variables are the following: a) Group: group CONTROL is the intercept. The other group is INTERV. it's ...
Suppose there is some function: \begin{equation} f(t) = p(x) \end{equation} Where $p(x)$ is a PDF over $x$ at $t$. Some examples would be linear regression with error bounds or a Gaussian Process (typically $p(x)$ is gaussian) eg: How would one quantify the differential entropy of $x \sim f(t) \ \ st. \ \ t_1 < t < t_...
I am a beginner of mediation analysis. In my research, exposure, mediator, and outcome are binary (0: no, 1: yes). The data is clustered by unit. I have fitted the mediate model (M ~ E) and outcome model (O ~ E+M), and use the ‘mediate’ command for mediation analysis. However, I find myself struggling to interpret the ...
The purpose of weight initialization in the neural network is to keep the variance of calculation output in the layers to 1.0, and it depends on the calculations involved in the layers. Initializing weight W with Xavier initialization for Matrix Multiplication X@W.T at Self Attention in Transformer Architecture will u...
To fit a Cox model to recurrent event data (Andersen & Gill), using the R survival package, requires the user to cast the data into counting process format (see [1]). For recurrent event analyses, a subject can occur multiple times in this dataset. I understood that this is a programming trick that allows one to fit th...
I have a dataset and I want to do a logistic regression between the continuous variable "A" and the categorical variable "B". However, I also wanted to include "age" and "sex" variables as confounders in my statistical analysis. Could you please explain how can I do this in R? And also, how can I obtain the adjusted od...
I'm currently trying to analyze data similar to the following example: Suppose I have count data from a survey of US States (~10) relating to their population's feelings about how their current state government has been doing since their election. This variable is ordinal ("Made things somewhat/a lot worse, things are...
I am visually estimating fish length underwater to convert it in fish biomass by means of proper length-weight relationships. Obviously, my accuracy is not perfect. When making hypothesis about factors affecting fish biomass, would it be right to round the biomass data at the nearest integer and therefore being able to...
In Sparse Hilbert-Schmidt Independence Criterion Regression (Poignard and Yamada, AISTATS 2020), the authors consider a way to perform feature selection by taking the subset of features that maximises the sum of dependence between each feature and the target variable minus the sum of the pairwise dependence between eac...
I get the following loss behavior when training multilayer perceptron with mean squared error loss on some synthetic data using default Adam with default learning. (I am working on 1 demention data) I am using the training data == validation data because I want my model to internationally the overfitting: I am not usin...
I have a problem and I need help. I have a time series and I need to know if the data is correct. Let me explain with an example. Suppose I have data generated by an atmospheric pressure sensor. The total data is 100 and of them 90 are equal to 0 and the rest are probable values around 1000 hPa. In this case, it is mos...
I am trying to understand the maths behind scikit learn's Gaussian process classifier. There is a link to the book from which the algorithm was taken. It is a bit involed and there is a particular formula here that I don't understand. Namely : $$\mathbb{V}_q[f_*| X,y,x_*] = \mathbb{E}_{p(f_*|X,x_*,f)}[(f_*-\mathbb{E}[f...
I recently heard a proposal for a method to measure the degree to which confounding variables impact historic results of A/B tests. In order to ascertain the degree to which confounding has impacted the accuracy of previous A/B test results using a t-test, it was proposed that we historic data could be used to run simu...
I posted this question Bayesian Probabilities for Estimating the Percentage of Donut Lovers and it got closed. I thought maybe I could simplify the question (this is the first Bayesian problem I have ever worked on start to finish): Suppose 2020, there are 100 people: 75 in Group A ($N_{A,2020}$) and 25 in Group B ($N...
I have two tables. The first one contains $A,B$ and the second contains $B, C$. The two tables are independent and I am trying to compute the joint probability distribution $P(A,B,C)$ where $B$ from the first table equals $B$ from the second table by taking a random sample from these two tables. A B 2 2 3 1...
I have built an undirected graph that I want to use to train a binary classifier. The graph represents a network of clients connected through the addresses they used to register. For example, if my partner and I live in the same house, we would show up as C1 -> A1 <- C2, where Ci represents the i-th customer and Ai is ...
Is there an efficient algorithm to draw samples $x \sim P(x)$ from the PDF: $$ P(x) \propto \cosh^{m}(a x) e^{-x^{2}/2} $$ where $a\ge0$ is a real parameter, and $m$ a positive integer? Since this is a univariate PDF, my first attempt was to compute the CDF and use the inverse CDF method to sample it, but neither the C...
I try to explain my question with a simple example. Let's say we have two variables $x_1$ and $x_2$. At the first two stages of the forward pass, effects of $x_1$ with a knot at $a_1$ and $x_2$ with a knot at $b_1$ are added so we have: $$\beta_1max(0,a_1-x_1)+\beta_2max(0,x_1-a_1)+\beta_3max(0,b_1-x_2)+\beta_4max(0,x_...
I have a (probably simple) question on fixed effects estimation. I am trying to do baseline growth regressions of log GDP per capita against a number of covariates and, in line with the literature, I include both country and time dummies. The panel is unbalanced with 19 countries, 10-53 periods, resulting in 763 useful...
Say we have group $0$ distributed as $N(\mu, \sigma^2)$ and group $1$ distributed as $N(\mu+\delta, \sigma^2)$. We then use the Gaussian-distributed variables to predict group membership. It seems like we should have some way to relate $\delta\big/\sigma^2$ to the area under the receiver-operator characteristic curve, ...
I would like to know if there is a preferred typographic form for the term "z score". A search on Google scholar for "z score" shows six forms no markup: z score hyphenated: z-score capitalized: Z-score and 4, 5, and 6: the above forms with z italicized, e.g., z-score. I don't see any favorites with a quick scan of t...
I am reviewing this study where they measured fathers' stress, anxiety and depression levels at four-time points. And they measured the child's behavioural problems only at the last time. They then created dichotomous variables from this data (whether there was or wasn't stress, depression, anxiety or behavioural issue...
$X(t)$ is a stochastic process defined on the time interval $(0,T)$. Discretizing the time interval one can specify a random variable $X(t_i)$ as: $$t_0= 0 < t_1,t_2,...,t_{n−1},t_n=T$$ And may be considered as being dependent on the previous random variables $X(t_1),X(t_2),...,X(t_{i−1})$ and $X(t_i)$ may be considere...
I would like to clarify my understanding of Root Mean Log Squared Error (RMSLE): $$\text{RMSLE}=\sqrt{\frac{1}{n}\sum_{i=1}^{n}\left [\ln \left ( \frac{y_{i}+1}{\hat{y_{i}}+1} \right ) \right ]^{2}}$$ RMSLE effectively quantifies the average exponential-multiplicative error. For instance, a model with an RMSLE of $1$ ...
Cross Validated community, I am working with a dataset of restaurants that have been classified by both Michelin and Rafaelo rating systems. Specifically, Michelin has categorized restaurants into A, B, and C classes, while Rafaelo has rated them as 1-star and 2-star. Given these classifications, I would like to compar...
I just examined the $R^2_\text{adj}$ Formula on Wikipedia and found two ways to calculate the adjusted $R^2$. Firstly as $$R^2_\text{adj}=1-\frac{\frac{SS_\text{res}}{(n-p-1)}}{\frac{SS_\text{tot}}{(n-1)}}$$ And secondly as $$R^2_\text{adj}=1-(1-R^2)\cdot\frac{n-1}{n-p-1}$$ Where $n$ is the number of observations and $...
I'm learning how to interpret the output of the gratia::variance_comp function. I noticed that removing an interaction changed the confidence intervals of a variance estimate drastically. I removed the by= term from model 1, because k.check(m1) showed problems, increasing k wasn't helping, the plot wasn't smooth, and s...
I'm trying to make sense of the basics of time series, and I ran into a block of code by Rob Hyndman. library(ggplot2) library(forecast) set.seed(0) model <- Arima(ts(rnorm(100),freq=4), order=c(1,1,1), seasonal=c(1,1,1), fixed=c(phi=0.5, theta=-0.4, Phi=0.3, Theta=-0.2)) foo <- simulate(model, nsim=100...
Guo et al (ICML 2017) state the following. During training, after the model is able to correctly classify (almost) all training samples, NLL can be further minimized by increasing the confidence of predictions. Increased model capacity will lower training NLL, and thus the model will be more (over)confident on average...
I'm analyzing a crossover study, where subjects are measured at two time points during each treatment phase (Placebo or Treatment). Additionally, baseline measurements were taken before the experiment began and also post-experiment. The orders of treatments were changed. See bellow the design schema. The primary objec...
This example is take from Lippman's "Elements of probability and statistics". Let N be the number of fish in a lake the warden wants to estimate. He catches 100 fish, tags them and releases them back into the lake. Then, [assuming no change in N has occurred in the interim] he samples 120 fish to see how many of them a...
I am trying to create an intuitive example which shows why Mixed Effects Regression models perform Partial Pooling in the background. I previously tried to demonstrate that Mixed Effects Regressions perform Shrinkage/Regularization in the background (Why do Mixed Effects Regression models Shrink Parameter Estimates?) -...
I performed a Vector error correction model using Tourist Arrivals as a dependent Variable and Real GDP, Public Road Transport operated distance and Public Railway Transport operated distance as Independent variables. Although the model was significant it did not pass the Normality test. (Image1- model1) Then I conver...
Consider the stochastic process $(X_{n})_{n\in\mathbb{N}} = (A^{+}_{n},A^{-}_{n})_{n\in\mathbb{N}}$ defined over the same probability space $(\Omega,\mathcal{B},\mathbb{P})$ such that the occurrence of the state $X_{n + 1} = (A^{+}_{n + 1},A^{-}_{n + 1})$ depends on the occurrence of $X_{n} = (A^{+}_{n},A^{-}_{n})$, $X...
Hello. I'm studying the Monte Carlo Statistical Method textbook by Robert and Casella. I have a question about exercise problem 30 in Chapter 2. I've already solved parts (a)-(c), but I'm having difficulty understanding part (d). According to part (a), a smaller M leads to a larger acceptance rate, so isn't that desir...
I have a dataset of multiple purchases of the same product from a group of individuals. I aim to simulate the impact of increasing the pricing if the quantity of the purchased product by customers exceeds a specific value. I also assume that the increase in pricing might lead some customers to no longer purchase the pr...
I am interested in evaluating the relationship between age, BMI and lipid level. The lipid level is an outcome in my study. I think that the relationship between lipid level and age and the relationship between lipid level and BMI may be non-linear, respectively. Therefore, I would like to apply restricted cubic splin...
I’ve got a clinical time series dataset containing (hourly) heart frequencies from deceased and survived patients. I need to investigate whether there is a significant difference of means between those two groups (deceased vs. survived). By assessing the ACF the time series clearly turns out to be auto correlated. Also...
I'm working on a cox regression to analyse the association between an exposure and outcome. I also have a start time (time start for follow-up) and end time (time when getting the outcome or censored). So the model is written like this in R: model <- coxph(Surv(start, end, outcome) ~ 1 + exposure + strata(gender), robu...
I am studying nonlinear models. And I try to derive LM test for nonlinear model against well-specified parametric linear models The book gives score vector $s(\theta)$ and information matrix $I(\theta)$. I know that $$LM= s(\theta)’ I^{-1}(\theta) s(\theta)$$ $$(1\sigma^2) [ZZ’H’H-ZHH’Z’]^{-1}[\epsilon’HZZ’H’\epsilon]...
I see that encoders have the benefit over PCA that they can transform both linear and non-linear data. However, isn't non-linear PCA designed to work with non-linear data? So, why do we still prefer to use encoders instead of non-linear PCA?
Suppose you have observations on 50 different measures of joint viability. You have a control sample of 20 individuals not receiving an operation and a sample of 17 individuals before and after the operation. You also have some demographic data on the individuals. There’s a number of simple t-tests that could be run in...
I would like to perform an interrupted time series analysis to look at the impact of the pandemic on cancer incidence using individual level data. I plan to use a negative binomial segmented regression approach. I am concerned that there may be clustering by treatment facility as specific hospitals offer different trea...
I perform an accident analysis with decision trees. Some cases are clear (all info exists), other ones haven’t it. By my previous experience, I can add missing data (restoration costs). But I don’t know how to adjust probabilities for incomes more mathematically reasonably. I could use the empirical probability for dis...
I need to prove that my survey results or sample size is statistically significant. I did a 2 sample T test in R, where my supervisor said that "what is the statistical power of your results is not clear from this". I think t test will not apply to my data as mine is exploratory survey, with Yes, no answers, so no cont...
My IV's 1st stage F-stat is 4.7 (considered weak by the rule of thumb). The 2nd-stage regression coefficient is significant. I wonder what is the best way to interpret such observations.
I am interested in analyzing the total prescription of aspirin in NAMCS and NHAMCS (https://www.cdc.gov/nchs/ahcd/index.htm) during a given year for all visits. NAMCS and NHAMCS each had a weight and their weights were quite different, where I noted that neither weight sums to US population. However, NAMCS and NHAMCS w...
In stats models, I run a regression and get the following SE from the regression output: SE(const) = 0.028 SE(AveBedrms) = .017 SE(HouseAge) = .0001 From the sample dataset, I randomly sample with replacement and run a regression 50000 times. I then compute the standard deviation of the coefficients from these regressi...
Hello Cross Validated community, I am working on a dataset that involves multiple groups undergoing a series of interventions, with the aim to achieve a binary outcome (e.g., success or failure). The participants in each group can undergo multiple interventions until a specific condition is met (e.g., success achieved,...
I have often seen Mixed Effects Regression models and Longitudinal Regression models being referred to as basically the same thing. I have never quite understood why this is and am trying to figure it out. I wrote all 3 models out: The mixed-effects (random effects + fixed effects) regression model with group-level co...
I'm attempting to extract a Hedges' G effect size from a publication that reports the chi square statistic (and degrees of freedom) derived from comparing two mixed effects models: the first model contains a binary grouping variable (treatment vs control) and the second model removed this grouping variable. I want to g...
I'm interested in analyzing whether an intervention's effect on an outcome, X, qualifies as a surrogate for its effect on another outcome, Y. By the end of the analysis, I would like to have: A) An estimate of the slope (for every change in X, we can expect this much change in Y). B) An estimate of R-squared (how much ...
If a unimodal dataset x with mean 0 E(x) = 0 is positively skewed E(x^3) > 0, does it imply that mean squared value of positive data (y: x/ x>0) is more than negative data (z: x/ x<0) within x E(y^2) > E(z^2) ?? or that variance of y is more than variance of z??
I am conducting a univariate logistic regression to determine factors that predict the success of a surgery. The significant variables were then added to a multiple-regression model. However, the problem is that when I add more than one variable (with any combination), the results become non-significant. I performed ba...
I'm trying to understand Fisher's combined probability test, especially how I used it in my analysis. I have 25 datasets, each one containing genomic data from cancer patients. I conducted a differential expression analysis on each dataset (analysis the produces a log fold change and p-value for each gene, showing the ...
I fit three Cox models. The three hazard ratios are 0.52, 1.02, and 0.514, respectively. The first hazard ratio is the hazard ratio between the treatment arm and the control arm. The second is the hazard ratio between the control arm and the external control arm. Here, 1.02 means the control arm is worse than the exter...
Here is the paper link related to the question from my title. In Appendix B, it computes the entropy of $p(X^T)$ and says "By design, the cross entropy to $\pi(x^t)$ is constant under our diffusion kernels, and equal to the entropy of $p(x^T)$ I don't quite understand this. Why is the cross entropy constant for all $t...
Review of GEE: Generalized Estimating Equations (GEE) are used to estimate the parameters of a generalized linear model. The main advantage of GEE is that they essentially allow you to model a multivariate correlated random variable, without knowing the exact form of this random variable (this is really useful because ...
I have a question that must be common, but after searching, I can't find an explanation. Suppose we wish to estimate the percentage of people, p, who have a disease. We test n people. The test has known true-positive and a false-positive rates of TP and FP. The expected number positive tests is $E[Y]=TPp+FP(1-p)$. ...
What are a priori advantages of Lasso regularization for linear regression models, over many other heuristically-justifiable methods that both regularize the problem and perform variable selection? For instance, what would be advantages of Lasso over simply performing ridge regression and then dropping the variables (t...
I've been asked to help people from the Economics Department with an index A which is a geographically restricted GDP. This index was expensive to calculate, so they have data on it only for 1993-1999 and 2004-2012. They have a proxy B which is basically a linear model made from of a different dataset with many predict...
Consider a pretest-posttest design, where the dependent variable (y) is measured by 3 ordinal values 1,2,3. There are also two factors: One factor (say A) consists of a control and an experimental group. The other factor (say B) consists of two age groups. The total sample size is 60, where each possible combination of...
In the context of convolutional neural networks(CNN), it is said that convolution operations are equivariant to translation / shift, as the weight-shared kernel scans over an image, i.e. if we move the image by one pixel, the output is also moved by one pixel (if we don't think about the abandoned edge of an image). Ho...
Is it appropriate to employ a zero-inflated Poisson regression model for datasets characterized by a notable presence of zeros, even when these zeros are true zeros?
A juice distributor delivering boxes of 8 bottles knows the probability (p=0.02) that a bottle will break during transport. If 4000 trunks are transported, the number of trunks in which two or more broken bottles will be found is approximately: a. 85 b.14 c. 3960 d. 41 e. 40 Could you find the correct answer. I know it...
I am using a hurdle model (binomial logit for the zero counts, truncated Poisson for the positive counts) to study the effects of demographic (and other) variables on the adoption of private air-quality sensors. I want to model adoption rates, therefore I use population as an offset. My unit of observation is the munic...
I'm trying to understand the distribution of a normalized sum of a product of Bernoulli random variables. Specifically, I have two vectors $M_1$ and $M_2$ of length n. Each element of each vector is a Bernoulli random variable with varying success probability $p_i$. We can assume for now that each element is independen...
I have a dataset which includes household income against expenditure. The correlation coefficient of the dataset is 0.7064 which indicates a strong positive correlation. Here's a graph for it: Now I split this into two subsections and I'll include the graph for both of them now: Now the correlation coefficient for t...
Suppose that I have a modified RBF kernel function. $k(\mathbf{x},\mathbf{y}) = \exp{(-||\mathbf{x}-P\mathbf{y}||^2 })$ where $\mathbf{x},\mathbf{y}$ represent $d$ dimensional inputs and $P$ is the permutation of the elements of the vector $\mathbf{y}$ such that $P\mathbf{y}=\mathbf{y}'$ minimizes $||\mathbf{x}-\mathbf...
I was thinking of a hypothetical distribution where the mean(first cumulant) is non-zero, second cumulant(variance) is zero, and the third cumulant(skewness) is non-zero. The higher order cumulants are all zero. Can this distribution exist? Can the distribution have non-zero skewness if the variance is zero? If it does...
I conducted a TOST procedure according to the guidelines by Lakens [1] and received the results from the table below. For "discontinuity", "fragmentation" and "suboptimal_luminosity", the sample size was 100 for the others it was just 50 because I had to split them in halves (the reason for that does not matter). A pow...
I have the following problem to analyze: I divided an area into several sectors (i.e.: S1,S2,S3,…,Sn) and there is an event that can happen in one or more sectors at the same time. I considered a discrete time scale in days (i.e.: D1,D2,D3,…, Dn). For instance, on D1 the event happens twice in S1, once in S2 and thrice...
I have two periods of panel data and I am trying to see if coefficients change over time. I would like to control for individual-level heterogeneity, but not sure how to do it with a complex design object and svyglm function: # Libraries library(survey) # complex survey design des <- svydesign( ~ secu , # stratum ha...
I was dealing with the following question: After a change management, a producer claimed that less than 5% of his flak jackets have production flaws. A sample of 200 flak jackets was randomly collected for which 5 exhibited production faws. Does the data that supports what the producer claimed? (Use $\alpha=0,05$). ...
I have a study that is designed such that it seems to straddle a within- and between-subject design. I suspect there is a rich literature on how to analyze data such as these, but I simply lack the terminology to find it. My study is interested in attitudes toward the homeless and in particular whether ethnicity intera...
I find myself immersed in the intricacies of working with 2D modeled fields (images) representing soil moisture in regions where direct observations are unfortunately absent. However, there is a silver lining—I possess observational data for rainfall within the same geographic areas. My primary objective is to elevate ...
I've read that one can perform A/B tests & effect size inference given that a population was randomly sampled and allocated to A & B groups. You simply give the treatment to group B and the lift is B in attributable to the treatment exposure. Sound too good to be true? I think it is. Suppose you have some population w/...