instruction
stringlengths
9
38.7k
I'm continuing my slow trudge through Simon Wood's book on generalized additive models (GAMs), and it has given me some new useful insights. However, I am still confused after reading through Chapter 2 about what value the REML/fREML estimates provide in GAM summaries. For example, I have fit these two models using REM...
I do a survival regression on some time-to-event data (vehicle breakdowns) with some covariates (essentially the age of the vehicle and some boolean variables for vehicle type). I must admit that I am not so sure about the quality of the data and whether they result from multiple processes instead of one. For the imple...
I have a dataset of hourly day-ahead electricity prices and hourly forecasted day-ahead demand (from governmental agency) in the Norwegian price area NO2. I am trying to use the forecasted day-ahead demand to predict the next 24-hour electricity prices for each day (cross validation using a rolling window) with a linea...
From Meyer's Introductory Probability and Statistical Applications, 2nd ed: Suppose that the dimensions, $X$ and $Y$, of a rectangular metal plate may be considered to be independent continuous random variables with the following pdfs: $$X: g(x) = \begin{cases} x - 1, & 1 < x \leq 2 \\ -x + 3, & 2 < x < 3 \\ 0, & \text...
I'm trying to approximate an unknown distribution by a truncated Edgeworth series, with cumulants/central moments estimated from a large sample. I notice though that I am getting negative tail probability densities. What would be the restrictions on my estimates of the sample central moments to guarantee positive densi...
I'm currently working with multivariate GARCH representations of time-series for financial data using the rmgarch R package. This package in turn uses the well-known rugarch package to fit the 'marginal' GARCH processes. Right now I'm evaluating the goodness-of-fit and parameter estimates when using different condition...
I know that for fitting a random forest model in a training set, you create many bootstrap samples with the training data set and fit a decision tree to each bootstrapped training set. Then aggregate predictions from every tree to get the single prediction. But, the question is, for testing, can you please inform me h...
Random Fourier Features (RFFs) were introduced by A. Rahimi and B. Recht in their 2007 publication Random Features for Large-Scale Kernel Machines. RFFs are based on Bochner's theorem, which applies to stationary kernels on Euclidean spaces i.e. any positive semi-definite function $k$ satisfying $$ k(x, y) = \kappa(||x...
I was reading an extract from the book "regression and other stories" and at chapter 9 the author distinguish between 3 cases "After fitting a regression, $y = a + bx + error$, we can use it to predict a new data point, or a set of new data points, with predictors $x_{new}$. We can make three sorts of predictions, cor...
I want to compare X between different groups "material". Material is a categorical variable with four groups A,B,C,D. patient_ID is a subject specific identifier -> I use this as a random effect. lmer(X~ material + (1|patient_ID), data) Now my question/problem: Numbers of samples vary between the four groups: A: 1 pe...
I am following a course in Coursera about Introduction to Statistics and I got lost in the part of the explanation of the linear regression. I know is a simple subject, but I do not get it how the instructor applies the linear regression formula to solve an example case. According to the slides the instructor says that...
My study involves a dependent variable measuring reading times (minimum value = 0.3) and two categorical variables (y = "quick" or "slow"; t = "cute" or "ugly") that are used to define conditions. The design is nested. I have determined that my dependent variable fits very well into an inverse gamma distribution. Howev...
I'm presently evaluating the position of individuals of an 3 populations of an animal (according to their sexe) in function of the environmental factors (12) present in their habitat. To detect which environmental factors have the most impact, I'm using PCA in R. I have standardized, centered my data and chose the PCs ...
This is an exercise from the probability book by Ross. This is not homework. Using conditional probability and the distribution of sum of two geometric random variables, the probability comes out to be $\frac{1}{(n-1)}$. But I am not able to understand how can the same probability be deduced from just the hint without...
I am performing quite some binomial/multinomial models for my thesis. After doing the emmeans statement, I used the contrast statement to compare the emmeans of the different groups. But, I start to think about a few things: My data is sampled as such that the groups don't have an equal size Therefore the SE i...
From my readings (wikipedia, books and YT videos), I derive that there are means of observations (the frequency weighed values of the random variables), and also means of different samples "means of means". I have read all the basic math and solved some problems. However the formula for the Standard Error defined as T...
I have two vectors, A and B which I want to compare using the MWU test. Both vectors have the size of 995 with A having a mean and standard deviation of 10.50050 and 2.82287, respectively. The mean and std for B are 10.19397 and 2.87137. The histogram and KDE for the two vectors are as follows. All of this would tell ...
Is there a way to increase the number of dimensions through feature transformation in machine learning? If so what are the techniques involved?
Say, I have a function containing a random variable such as $ f(X)$, where $X $ is the random variable that comes from a family of random variables that differ only in the first and second moments (e.g. family of normal curves). Is it meaningful to understand how the moments of $ f(X)$ change when the a moment of $X $ ...
I have data which I plotted to visualize. I cant seem to fit any sort of sensible curve to this plot and I wondered how do I approach this task?
I have a question about performing multiple linear regression preferably on SPSS 27. I had 3 dependent variables on the teacher's intention to remain on the job. I got a mean of the scores (measured in a 7-point Likert Scale) for dependent variables. But I am stuck especially with regards to performing the regression a...
I have data on days in which the greening of trees happen across America in 2015. This includes meteorological and topography data etc. I want to predict the day of greening happens through a linear mixed-effect model by meteorological data and topography data being fixed effects while the states of America is the rand...
I need ranking comments according to the text. They are represented by a vector representation from Sentence transformers. One text and 5 comments, and a score from 0 to 4 for each comment. I need advice on how I can make the network architecture, in particular inputs, outputs, and loss function. At the moment I have n...
How do I interpret a negative interaction coefficient in multiple regression, with negative coefficients for main effects? 2) When I run the model without the interaction, the relationship is positive. Does anyone have any ideas why this is happening? The variables in my model are all continuous. I'm testing the inte...
In my research, for example, trunk is the endogenous independent variable of interest and headroom is the instrument variable for trunk. Both headroom and trunk is continuous variable. Let’s assume the basic iv-regression follows like this sysuse auto,clear ivreg2 price displacement (trunk=headroom), robust My questio...
WLLN tells us that if $X_1,...,X_n$ are iid, with $X_1$ having finite mean $\mu$, then their sample average converges in probability to $\mu$. Suppose instead we know that $X_1,...,X_n$ are iid and their sample average converges in probability to a constant. Can we argue that $X_1$ has a finite mean and hence that suc...
We have cancer medical registry data, including information on date of diagnosis, treatment, and followup e.g. date of death etc. However, we only know type of treatment received for each person. We have no information on WHEN they received treatment, nor dose, frequency etc. Whilst this is not optimal, I guess this is...
Hastie, et al in “Elements of Statistical Learning” describe a particular DGP(Data Generating Process) or causal model on page 13. The training data in each class (2 classes total) came from a mixture of 10 low variance Gaussian distributions, with individual means themselves distributed as Gaussian. A mixture of Gaus...
I built an ensemble regression model (Random Forest + KNN + SVM) to predict biomass based on environmental conditions (biomass is strictly positive but continuous). I now would like to use this model to predict total global biomass. To get the total biomass, I predict the biomass for each grid on a global map and then ...
I'm running a multivariate growth model with two variables measured across 3 waves using lavaan/growth function. Here's the model specification I'm using, with non-uniform time differences. Two variables here are "cyn" and "cms". model.cms.cynic <- " icyn =~ 1*T1_Cynic + 1*T2_Cynic + 1*T3_Cynic scy...
I have a reflective-formative higher-order construct that combines seven reflective first-order constructs. I validated this higher-order construct in a study using the PLS-SEM method in which all seven subconstructs showed significant positive path coefficients with this higher-order construct. In my new study, I incl...
I am having trouble understanding why the Central Limit Theorem (CLT) is applicable in A/B testing. As a beginner in statistics, I am trying to grasp the intuition behind it. The CLT states that as we draw random samples from a population, the distribution of their means tends towards a normal distribution. However, in...
Just as the title imply, I am searching for an error evaluation metric with the following characteristics: able to handle cases where actual value is 0 can evaluate different units/scales isn't disproportionately affected by outliers My intention is to find a complementary evalution metric to sMAPE.
I'm confused about the way L1 & L2 pop-up in what seem different roles in the same play: Regularization - penalty for the cost function, L1 as Lasso & L2 as Ridge Cost/Loss Function - L1 as MAE (Mean Absolute Error) and L2 as MSE (Mean Square Error) Are [1] and [2] the same thing? or are these two completely separate...
While training a linear regression model, it is advised to standardize the input features using the mean and std deviation of the train input features. x = (x - x_mean)/ x_std_dev However, when we want to infer the model on some examples, do we use the same mean and std deviation used during training or the mean and s...
When looking at implementations of VAE's online, specifically the KL divergence loss, the formula used is: $$ KL\hspace{1mm} Loss = -\frac{1}{2}(1+\log{\sigma^2}-\mu^2-\sigma^2) $$ or some variation of it. In the code accompanying the paper I am currently reading, the KL loss is calculated using entropy and cross entro...
Throughout this post: $t$ is an index for the $t$-th outcome variable, and there are a total of $T$ outcomes $n$ is an index for the $n$-th individual, and there are a total of $N$ individuals, $C_{t,k}$ denotes the $k$-th cutpoint parameter for outcome variable $t$, which has $K_{t}$ categories. We are including $...
I am attempting, via linear regression, to model a dataset.I've tried various transformations on the response/ and predictors, as well as WLS but the assumptions are not met. I'm looking for the possible existence of significance in variables, so from my understanding the normality of the residuals is needed to perform...
I am running a Fisher's exact test on SPSS. There are 2 variables - 3 groups and their Pass/Fail frequencies: Group 1: 8 pass, 18 fail Group 2: 1 pass, 10 fail Group 3: 11 pass, 6 fail I am using Fisher's exact test because some cells have a count less than 5. I have a significant result (p=.01) but I don't know how to...
I am running empirical models based on 3SLS due to the potential endogeneity issue caused by simultaneity. So, I opted for 3SLS as my main analysis tool, and I am using reg3 command to analyze it. My model and STATA command are as below. Empirical model: DV = intercept + endog_var1 + control1 +  ... + control6 + i.indu...
I wrote the lm model in R and wanted to know the mean and standard error of each treatment across like 20 responses. Some of the responses were log transformed and some were sqrt transformed to assure model residual normality. I wonder how I can report the information based on emmeans result. For mean, I would assume I...
SLLN tells us that if $X_1,...,X_n$ are iid, with $X_1$ having finite mean $\mu$, then their sample average converges almost surely to $\mu$. Suppose instead we know that $X_1,...,X_n$ are iid and their sample average converges almost surely to a constant. Can we argue that the $X_1$ has a finite mean and hence that s...
Can i study correlation and linear regression for only one group that answered my questionnaire? the two variables of my research are "gamification" and "motivation" but how can i study the relationship between those two without the need to give the questionnaire to two groups? (most of questions in the questionnaire c...
I'm reading this article on Structural Causal Models (SCM) and the author is giving this example: where $m=1$ is the single source environment in this case, ~ denotes the target domain and all noise variables $\epsilon$ follow independent Gaussian distributions with mean zero, and we want to find the coefficients that...
I am seeking to compare the diagnostic performance of a test within a population with two defined subgroups. I have the raw data & computed data, but am unsure what the best test is to compare the two. Group A: Sensitivity: 62.2% (95% CI 61.6%-62.7%) Specificity: 98.1% (95% CI 98.0%-98.1%) PPV: 35.6% (95% CI 35.1%-36.0...
I'm looking for a measure that measure the similarity of two distributions in the following forms: $$ S = \frac{a \mu_1 + b \sigma_1}{a \mu_2 + b \sigma_2}. $$ The above formula I proposed is not rigorous. But it can show that if two distributions are similar, then $S$ would turn to 1. Does there exist a measure like ...
Given that I have a dependent variable $Y_i$, two endogeneous variables $W_i \text{ and } X_i$ and an instrument correlated with both $W_i \text{ and } X_i$, can we still perform two stage least squares regression? So, our regression equation is $$Y_i=\beta_0+\beta_1 X_i + \beta_2 W_i + u_i$$ with two stage least squar...
A little bit of background: I have daily demand data for our product from 1 January 2017 to 31 December 2022. Sometime after Covid-19 struck say 1 March 2020, the sale of our product went up substantially (sales in 2021 were 8X sales in 2019) and the demand has sustained till date (March 2023). Now, my manager has aske...
I don’t know if my title makes sense so I will try to explain using basketball as an analogy. Say you have a set of players and you know the probabilities of them being on court at a given moment. There always needs to be a fixed number on court at once, and the player probabilities are generally different to each othe...
Consider a simple random walk. I am trying to compute the variance of differences over a window of certain size dw which could, for example, model returns of a stock over a certain period. I compute and average this difference for 1) non-overlapping windows and 2) for sliding, overlapping windows. Based on my (limited)...
I have performed a meta-analysis with the follwing attributes: meta_escalc <- escalc(measure = "MN", mi = mean , sdi = SD, ni = ni, data=data ) However, I am not sure which diagnostic plot makes more sense. This funnel plot displays the actual values (rather than residuals) on the x-axis, for a model without moderator...
Suppose I have an online bayesian linear regression problem for which I can updated the posterior distribution of parameters. Using this posterior, I want to make a point forecast by sampling from it. In a complex regression environment, i.e. with non stationarities, model miss specification etc., it may not always be ...
Could I use LDA method to separate outlier from major points? I want to find outlier from certain data with LDA, but I couldn't find use of LDA for outlier detection. Basically I want do the work like below : I'm going to try with MASS:lda() package function. Thank you for your answer.
Assume a system consisting of several components. Each component is characterized by some real number. A sample of a pair of components in the system, is a random variable normally distributed around the difference between the components (with known variance). Given a set of samples (there may be more than one sample o...
It is confusing because I get so many different sources claiming different ideas. I am going to try to make it simple. Several individuals organised in 3 groups. We measure multiple variables at two time points, but of course, we are interested in how the health intervention influence at the end. Here I present several...
I have performed a linear mixed model where I used Tukey's ladder of Powers to transform the outcome variable (time) to get normal residuals, which gave a negative lambda. This resulted in a vector of negative values. I would like to represent the lmm on a graph as I have a 2-way interaction between two categorical var...
I noticed that in some low performance models of neural networks, the value of $R^2$ (coefficient of determination) can be negative. That is, the model is so bad that the mean of the data is better than the model. The question is: in linear regression models, the multiple correlation coefficient $(R)$ can be calculated...
I'm working with time series data for drug response. And, I wanted to as is there are some alternative ways to analyse it since the FDA package in R is not working in my case. The type of my data is as follows: > head(subset_df) # A tibble: 6 × 4 # Groups: Model, Drug [1] Model Day AUC Drug <chr> <int> <db...
I have the number of items sold of various products over time from a supermarket. Each product belongs to a category of products. Some categories have a large number of items sold and some categories have small numbers of items sold. This is the total population of items sold, not a sample. I am reporting the items so...
I have a data set with a continuous LHS variable y, continuous RHS variable x, and a dummy D. I am running two OLS regressions: $$y_i=\beta_0+\beta_1*x_i+\epsilon_i$$ and $$y_i=\gamma_0+\gamma_1*x_i*(D_i=1)+\gamma_2*x_i*(D_i=0)+\eta_i$$ My estimated $\hat{\beta_1}$ coefficient is larger than both $\hat{\gamma_1}$ and $...
From the book Bayesian Decision Analysis Principles and Practice, I am trying to prove $$\begin{aligned} \mathbb{P}(I=i\mid X=x)=\frac{\exp(O(i,1\mid x))}{1+\sum_{k=2}^n \exp(O(k,1\mid x))} \end{aligned}$$ Where $O(i,k\mid x)=log\left( \frac{\mathbb{P}(I=i\mid X=x)}{\mathbb{P}(I=k\mid X=x)}\right) $
I want to analyze whether the effect of an intervention on the level of depressive symptoms is moderated by a variable called TA (continuous variable). I will do repeated measures analyses in SPSS with depressive symptoms used as the dependent variable which is measured at 5 time points. I think the independent variabl...
I am currently working on my thesis and am interested in exploring the relationship between biological sex (female or male) and 2 interval variables related to parenting and development. I made a mediation model in which biological sex is the x, one of the interval variables is Y, and the other interval variable the M....
In these slides from Hinton (https://www.cs.toronto.edu/~tijmen/csc321/slides/lecture_slides_lec6.pdf) there is this statement: I don't understand why "The error derivatives for the hidden units will all become tiny" if we start with a big learning rate. And if so, would there be the vanishing gradient problem? I foun...
For a normally distributed random variable $X$, we can "standardize" $X$ by defining a new random variable $\frac{X-\mu}{\sigma}$ where $\mu$ is a mean of $X$, and $\sigma$ is a standard deviation of $X$. Now, why do we do this? A textbook said that it was to make the calculation of probability easier since we can refe...
My clusters are arranged according to a time series, and I want to compute the silhouette score for the clustering performed, considering that they follow an order. Therefore the nearest cluster to the present cluster will be the one that comes next in the time series. What I have tried, Data # Sample Matrix cell_1 <- ...
In order to visually compare two models (logistic regression, in case that it matters) I thought of plotting the contribution of the individual observations to the AIC of the respective model. The plot looks like this: One can see that, although for some observations the full model makes larger errors than the simple ...
This is a purely theoretical question (for the moment at least), so not a lot of details to share. If I plan an analysis of residuals following a chi-squared test of independence, I was wondering if I should calculate my sample size differently compared with when I plan "just" a chi-squared test without analysing the (...
My understanding of the consistency principle is that the observed outcome is equal to the potential outcome. i.e. let T = treatment, if T=1 then then the Observed outcome (Y) is equal to the potential outcome i.e. Y(1) = Y . This implies that there can't be 'multiple versions of the same treatment' which will lead to ...
I've trained a simple NN to perform binary classification with goal of maximizing area under ROC curve. Right now AUC is around 0.85. Out of curiosity, I checked which thresholds are best in terms of maximizing f1_score. It turned out that optimal thresholds are around 0.08 < 0.1, corresponding to fpr = 0.22 and tpr = ...
I have a question about the interpretation of residual diagnostics using DHARMa. I fitted a binomial mixed model and used DHARMa for model diagnostics. library(DHARMa) simulationOutput <- simulateResiduals(m1_test, n = 1000, seed = 123) plot(simulationOutput) testResiduals(simulationOutput) This is what the DHARMa pl...
I have the following business request: "Test this change on the landing page and implement it for all the visitors if the test shows improvement in the conversion rate, but if the page load speed significantly differs between the two variations, discard the experiment results and investigate" The rationale behind it is...
The following plot shows power spectra (periodograms) of a sample from $X_t \sim \operatorname{Poisson}(1)$ along with that same sample where: Weekends were set to zero Sundays were set to zero Saturdays were set to zero I suspect this can be explained in terms of Fourier series because we're looking at the square o...
I have multiple Markov chains with twelve states. I want to estimate a transition probability matrix for each time point (except for the last time point) that can vary over time using all Markov chains. I found a function in R to do this. It is in the TraMineR package and is called seqtrate. However, it isn't clear to ...
In Equation (9), page 9 of (Demkowicz-Dobrzanski et al. 2020), the authors mention that, given a probability distribution $p_{\boldsymbol\theta}(m)$ with hidden parameter $\boldsymbol\theta$ and $m$ labelling the possible outcomes, if the true parameter $\boldsymbol\theta$ is close to some known $\boldsymbol\theta_0$, ...
Yes, it's a very basic question, but I'm not sure if I'm undertanding the process. I feed my network with the first observation, with random W for each neuron. I get a predicition, with an error. Then comes all the iterative process of adjusting the W values (backpropagation, gradient descending, learning rate..), unt...
I have a model where I can either code a predictor variable as a continous variable with the raw values, or as a categorical variable by assigning the values to quartiles. When I run a random forest model with the continous variable, the continous variable comes out as the most important variable in the model. When I...
Suppose $x_i$ comes from standard Normal. For a given $\alpha$, I'm interested the following random variable: $$f(s)=\log \prod_{i=1}^s (1-\alpha x^2_i)^2$$ For $\alpha=2.422$, empirical distribution of $f(100)$ looks like this: What kind of distribution is it? How do I estimate the variance in the limit of large $s$...
I don't understand why the output of pairwise comparison using emmeans function is z.ratio when analysing response time data. What is the difference between z.ratio and t.ratio? And is this reasonable that the estimate is too large? Here is my code. # model e1_model1 <- lmer(data = mix1, formula = RT ~ soc_s*persp...
Basically as the title says: in a scenario, we have missing observations where the entire state vector is unknown for consecutive time steps. Do we just run through the prediction section of the algorithm and not the update section for both the state vector X and the covariance matrix P?
Given two independent variables $X$ and $Y$, I want to test if they follow the same distribution. $H_0: F_X(.)=F_Y(.)$ $H_1: F_X(.)\neq F_Y(.)$ I do not want to test if their medians are the same. Their shapes are shown below, look similar but can spot slight differences: A concern is that I used the Mood's median tes...
I am reading up on Poisson Regression. Say I have an input vector $X^{T} = (X_1, X_2, \ldots, X_p)$ and I want to predict an output $Y$ which is correlated to these inputs. Then the mathematical form of a Poisson Regression Model is: $$\log(Y) = \alpha + \beta_{1}x_1 + \beta_{2}x_2 + \ldots + \beta_{p}x_p$$ where $\alp...
I am using perceptron machine learning to solve the binary classification problem A vs B. For this I have to assign the actual values of A and B to either 1 or -1 to be able to use perceptron. Does it matter which value I assign, as it is not clear which value makes more sense to assign 1.
I would like to make sure whether I’m interpreting the results of the lmer model I generated in the right way. The model is: lmer(distress ~ cond*group + (1|subject), data = data) Condition has two levels (S1 and S2, S1 is the reference), group has 2 levels (A and B, B is the reference) Would the coefficient of the t...
I am currently at a dilemma concerning a model describing the allometric relationship between body size and mass. After carefully checking model assumptions and selecting the model that best fits the data, my final model was the following : modD=lmer(body_size~0+(D_Mass*Species*sex+D_Mass*sex*Season +Species*Season)+(...
I know this is undesirable in most cases, but I have a very niche case where I must achieve 100% accuracy on training data. I do not care about unseen points, I only care about given X points what is the Y value for each point. I will train the model before hand but I must get 100% accuracy guaranteed. Some knowledge I...
This is the paper which is kind of I'm trying to implement based on my set of genes which i have narrowed down from WGCNA analysis. Its a both conceptual and R related question[How to do it in R] my lack of conpetual clarity. For single gene Im clear what to do where I can divide or split my patinet group based on low ...
Cohen's Kappa is a measure of inter-annotator agreement that is traditionally applied to a setting where you have two raters who each classify $N$ items into $C$ mutually exclusive categories. For example, in a 4-class classification dataset with 1000 examples, $N = 1000$ and $|C| = 4$. In some settings, $|C|$ differs ...
I'm doing a GLM homework, and I'm stuck with the following problem: Suppose that data ($Y_i$; $\mathbf{X}_i$); $i = 1, . . . , n$ are observed, where $\mathbf{X}_i$ is a p-dimensional vector for predictors of patient i and $Y_1 , . . . , Y_n$ are given by the following table: Y 0 1 2 3 4 5 6 7 8 Number of Sub...
The mutual information of a joint probability distribution $p(x,y)$ tells us, if we send $n$-letter messages with each letter drawn from the marginal distribution $p_X(x)$, that we can use roughly $2^{n I(X:Y)}$ sequences to transmit words to the receiver with small maximal probability of error, in the asymptotic limit...
Let's say I have a statistic (in this example sd) for sample v1 and sample v2. I would like to compare those two statistics but since I have only two values I cannot run a test like t.test, so I thought I could create bootstrap estimates of sd: v1 <- c(10,23,21,12,14,14,13,14,15,25) v2 <- c(10,11,10,13,13,13,14,19,12,2...
Introduction and Model I recently had a reviewer ask what the strength of my GAM interactions were compared to my main effects. This was in reference to some predicted probability plots I created. To emulate what I mean, I have created what I'm talking about with data from the gamair package using mgcv. #### Libraries ...
I have seen people using both normalisation which is min-max normalization ( all values will be between 0,1) and standardize( normal distribution) the data as part of pre-processing. It's given that if data is skewed prefer normalization. What if there are one hot encoded values in other variables in a regression analy...
If I have two metrics, - number of reviews and the rating out of 5, and I want to combine them into a single meaningful rating that can rank a list, how can I do that? For example, let's say I have the following: BeachName-#Reviews-Rating Pantai Kaneko Beach-10-4.9 (meaning 10 reviews with a rating of 4.9) Pantai Kel...
I have fit two partial proportional odds models in R using the clm() function from the ordinal package, with nominal effects (more on the function and package here). I have an ordinal response variable and several independent variables of different classes. I was wondering what would be a good way to assess goodness of...
I've read that post-hoc power analysis is useless when the result of a test is statistically insignificant, which I understand (post-hoc power analysis is just circular logic in this scenario). But what if the result is significant? Isn't a significant but underpowered result really dubious, which would justify the sys...
I have 5 sensors and they count number of cars pass through that sensor each day. I have gathered monthly data for all sensors.(i.e. summing each day's data. Now I want to test whether distribution of cars passing through these sensors differ. I was planning to conduct one-way ANOVA but is it right? Is there a better a...
I am trying to predict the revenues of a portfolio of items. I want to simulate the revenues in a particular market situation in which they might increase. Each item's revenues is made up of 3 components: Revenues per item = constant * percentage_increase_for_A(item) * A(item) + constant * percentage_increase_for_B(ite...
Background I'm working on a tabular data model that performs a binary classification. The model has recently started underperforming and I'd like to know if that's due to a drift in the feature distribution of the model. The features in the model haven't changed. The model hasn't been retrained. There hasn't been a cha...
I have a question about Difference-in-Difference estimation. It is well-known that the key identification assumption in Diff-in-Diff is the parallel trends assumption that says that in the absence of treatment, the evolution of the outcomes in the treated group would move in parallel to the control group. Of course thi...