instruction
stringlengths
9
38.7k
I need to isolate contribution of a single entity in a Division of Sums as shown below. For example, find the contribution of variable a in the following: (a 1 + b 1 + c 1) / (a 2 + b 2 + c 2) Example with numbers: Stock $ Earnings $$ Sales AAPL 10 100 MSFT 25 50 AMZN 5 50 Profit Margin = (10+25+5)/(100...
Say we have the following state space/structural time series model: $$ y_t \mid \mu, \sigma \sim \text{Normal(} \mu = \mu_t, \sigma^2_\varepsilon) \\ \mu_{t+1} = \mu_t + \eta_t $$ where $$ \eta_t \sim \text{Normal}(0,\sigma^2_\eta) $$ It is proven in Muth (1960) that the model outlined above is equivalent to simple exp...
In the page from a statistics book pasted below the authors make the algebraic leap from the LHS to the RHS of the equals sign here: $\large \frac{(x_1 - \mu_1)^2}{\sigma_{11}} - 2\rho_{12} \frac{(x_1 - \mu_1)(x_2 - \mu_2)}{\sqrt{\sigma_{11}}\sqrt{\sigma_{22}}} = \frac{1}{\sigma_{11}} \left[x_1 - \mu_1 - \rho_{12}\frac...
I am a bit confused by what is considered the direction for the principal components in PCA. For example: I do understand that the picture on the right hand side is correct. However, is the the PC1 direction just the northeast pointing arrow (i.e. direction is of increasing axis value) or is it double ended (e.g. it al...
If we want to test: population with a high level of education were less likely to contract COVID, which of the following regression(s) we should run? Explain whether each one is appropriate. LN is natural log. (1) CASES on POPULATION PHIGHSCOOL (2) LN(CASES) on POPULATION PHIGHSCOOL (3) LN(CASES) on LN(POPULATION) PHIG...
For such a latent space model $$z_t = A z_{t-1} + w_t$$ $$x_t = C z_t + v_t$$ where the noise is being drawn $w_t \sim N(0, Q)$ and $v_t \sim N(0, R)$ I have the derivation of the forward and backward pass equations for $\mu_{t|t}$, $\Sigma_{t|t}$, $\mu_{t|t+1}$ and $\Sigma_{t|t+1}$. Now add a new set of observed varia...
Let's say we have a multivariate time series that we would like to forecast future values of: $Z_t = (X_t, Y_t)$ where $X_t$ and $Y_t$ are real-valued time series and constrained by the inequality $X_t < Y_t$ for all $t$. If we believe that our multivariate time series, $Z_t$, can be modeled by a VAR/VECM process (pote...
The Literary Digest poll of 1936 is often mentioned to show the dangers of using convenience sampling. Are there other famous examples where a wrong sampling method led to erroneous conclusions? I ask not to question the existence of the problem, but because I'd like to vary the examples I give when explaining the issu...
I'm encountering a slight issue with my dataset, and I'd like to provide some context: I have a dataset with 1600 patients, and we've been monitoring their glucose levels on a weekly basis over a period of 30 weeks. Additionally, at the end of the 30 weeks, we conducted a unique blood test for each patient. Currently, ...
I have data from Stepped wedge cluster RCT with 2 level clustering. The outcome is error rate per patients (number of error/total number of orders). Patients are clustered withing wards and measurements are clustered within patients. one patient can readmit into different wards during the study period which makes the p...
I want to do a correlation analysis on a dataset of 28 samples. I want to correlate the age with the size of a reflex response. But I don't understand whether I should use Pearson's or Spearman's test. Because I don't know whether my data can be considered "normally distributed" or not. Shapiro Wilks "says" it is norma...
I have a highly imbalanced dataset and I'd like to train a simple ANN classifier on it. My model currently is a simple 2-layer feed-forward neural network with ReLU activation in between. After a few iterations, the model already "decides" that outputting the most seen labels is good enough and stops learning. To cope ...
I have a panel dataset with individuals on a waiting list for a specific event. The individual can either: still be on the waiting list, have died on the waiting list, be withdrawn from the waiting list or the individual have experienced the event. The variable that measures time is called days and measures the number ...
This may be a silly question but: Given a regression model that includes both main effects and an interaction term (Score of participants predicted by their attitude and motivation): model <- lm(Score ~ attitude + motivation + attitude:motivation) According to the model summary, only attitude effects behavior signifca...
Let's imagine that we want to develop an IRT model that describes the probability that a basketball player scores a basket when he shoots the ball from a certain distance. Distance is a continuous variable, and let us assume that this is not an experiment but an observation in a natural setting. That is, individual pla...
Assume $X\sim \mathcal{N}(\mu, \sigma^2)$ For a normal distributed random variable $X,$ what is the distribution of $c/X$? I had a look at ratio distributions but could not find it. PS: The issue originally was raised when I asked for the distribution of $1/\hat{E}[Z]$. I know from the CLT that the arithmetic mean $\ha...
In expectation maximization first a lower bound of the likelihood is found and then a 2 step iterative algorithm kicks in where first we try to find the weights (the probability that a data point comes from a certain hypothesized distribution) and then, assuming the weights found are correct the distributions are updat...
Is two-ways fixed effect better than one-way fixed effect? How should we decide between one-way FE and two-way FE? Is there any test for this purpose?
Say, I have a dependent variable $Y$ that I want to model with a linear regression and independent variables $X_i$. I am assuming that two of my independent variables $X_1$ and $X_2$ have an effect on $Y$. I want to model the variable $Y$ at a time $t_3$, $X_1$ and $X_2$ are collected at a time $t_2$. I am wondering ab...
I want to know if the relationship between x (continuous independent variable) and y (continuous dependent variable) is influenced by gender (binary variable) AND stronger for those participants who have high values in y (the dependent variable). For this reason, I split my participants into three equal-sized groups: d...
I am running a VAR model to predict the flow of consumer loans (dependent variable). I have three independent variables (consumption of durables goods, employment rate and households GFCF). Each variable has 76 quarterly observations. My four series are stationary in difference. Results are confirmed by ADF and PP test...
Let $A = (X_1, ... X_n)$ be a series consisting of long periods of ones interrupted with shorter periods of zeros, like $$A = 111111111 00000001111111111100000011111111111111.$$ The plot below (left) shows this kind of data but with larger number of points. Plot on the right shows the same data but the pattern is sligh...
My question is derived from a previous topic https://stackoverflow.com/questions/77287721/how-to-compare-several-matrices-and-calculate-the-percentage-difference-in-r/77287785#77287785 , where @ThomasIsCoding provided the excellent and simple answer. Now I need to calculate the statistical significance, that is, the p-...
I am looking to calculate what sample size I would need for my study by running an a priori power analysis. Is there any way (e.g an R package) I can calculate the required sample size required for latent growth curve modelling?
Source coding is basically compressing raw message bits. Channel coding is adding redundancy. Both are counter to one another. Yet, in a digital communication block diagram, they are always next to each other(disregarding A/D convertors and encryptors). How can this process happen without undoing the previous step?
I have run poisson regression in SPSS (Generalized Linear Model), where BMI is my IV and length of stay (LOS) in hospital for certain disease is my DV (and it's a count variable). When I run poisson, I get a heavily overdispersed model, where Deviance over DF is approximately 8. How can i deal with this problem using ...
Endpoint information: We have seizure count collected for every day and therefore there will be some missing for some days. We got average seizure frequency per 28-day, for an interval. That is, (seizure acount for a interval)/ (days with available seizure count during the interval)*28. For example, baseline period (2...
"Play the winner" is an intutitive procedure whereby successful treatments in earlier trials have a higher probability of being assigned in later trials. Quoting https://online.stat.psu.edu/stat509/lesson/8/8.6: Suppose there is a two-armed clinical trial and the urn contains one "A" ball and one "B" ball for the firs...
For OLS linear regression, Hayes (2022, p. 56) provides a definition of "mean squared residual" and one for "standard error of estimate", for a model with $k$ predictor variables: $$\large \text{mean squared residual}=\frac{\sum^n_{i=1} (y_i-\hat y_i)^2}{n-(k+1)}=\frac{\sum^n_{i=1} \varepsilon_i^2}{n-(k+1)}$$ $$\large ...
I'm trying to recall some statistical maths and could do with a little asisstance. I'm dealing with a weighted table, and I want to work out the probability of drawing certain values with no order, considering that once a value has been drawn it can no longer be selected. Name Weight A 6 B 6 C 6 D 4 E 4...
I have run a multiple imputation model and after it I used the with() and pool() functions to pool all my results using linear regression to get one estimate. I want to run mediation analysis on this dataset. I used the complete() function to use one of the imputed datasets, but the problem is that the direct estimate ...
My dataset contains multiple nominal non-binary variables (i.e- beak shape type, general eye position) which are represented/coded as numbers. For instance, for 'beak shape type' there are 4 options, 1-4, each representing a different shape. These variables are not ordered. I also have a single continuous variable - ha...
I am doing a simple regression where one of the regressors is the sea level and another regressor is US region. For the central region in the US, I have obviously no data for sea level. I am wondering how I should treat the missing data without introducing bias ? Replacing NA by a sea level of 0 or a country average wo...
I am trying to understand how the Gini criterion for decision decision tree construction actually greedily optimises a loss function. The Gini impurity, sometimes also called Gini index, for a region (think: set) $R_{j}$ is defined as $\sum_{i=1}^K p_{i}^j (1-p_{i}^j)$ where $p_{i}^j$ is the probability of drawing an ...
Given a data : a finite sequence of 10000 terms of increasing real numbers, each expressed as decimal form, up to 20th decimal place, Also suppose that the data was obtained while testing a conjecture in number theory, so that it is possible to generate beyond 10000-th term. You can think the data was actually the fir...
I have tabular data, the predictive variables are numerical and categorical and the target variable is a numerical one. Using the proper techniques I can make predictive models with R^2=0.95. Now let's imagine I want to test similar techniques by considering the predictive variable a categorical one, that is, making th...
Suppose $x$ is uniformly sampled from an n-sphere of radius $1$ restricted to points with $\langle a, x\rangle=b$ for a given unit vector $a$ and a constant $b$ Given a unit vector $c$, what is the distribution of $\langle c, x\rangle$? Does it have a name? Example for $a=(1,0,0), b=1/2, c=\frac{1}{\sqrt{3}}(1,1,1)$, ...
Say I have 15 or 20 samples each from two samples. The data shows evidence of strong skew. I am considering a two-sample t-test of means, based on the assumption that the sampling distribution of the mean is t-distributed. My test is based on pooled sample variance, comparison of means against a null hypothesis of no d...
I have ranked data where participants were asked to rank 8 choices from 1-8. The data is in spss and is in the wide format, where each choice is its own variable (column). There can be no ties. I used the Friedman ANOVA to determine if there is a significant difference in ranks, and there is. However, I am unsure how ...
I have a Transformer implementation that I'm working on. The Transformer model is the original encoder-decoder sequence2sequence model introduced in the 2017 paper. I wasn't originally using any form of initialization and decided to apply Xavier initialization. What I found was that the model wasn't training properly a...
I need to find some function $f:\mathbb{R} \rightarrow \mathbb{R}^+$ such that If $\; \; x \sim \mathcal{N}(x; \mu, \sigma^2) \; \;$ then $\; \; f(x) \sim \mathcal{G}(y; \alpha, rate=\beta)$ Where $\mathcal{G}$ is the Gamma probability density function. I think it will have to do with the derivation of the distribution...
When performing a regression analysis to test whether Asians have the lowest COVID mortality rates using stata, none of variables seem to have significance other than population. How do I determine which area have the lowest covid mortality rate? How do I fix it? Do I just interpret it as area has no affect? This is a ...
If hypothesis testing for coefficients in an MLR setting is powerful, why would we use a variable selection algorithm instead? For example, would you use hypothesis testing to find if the estimated coefficients of LASSO regression are significant?
I have a series of data points representing the number of OKs for a test. For each data point, I want to calculate by how much its value changed compared to the preceding value, and I need this measure to be relative rather than absolute, as it makes it easier to understand and to compare different series of the same k...
We use multivariate regression in econometrics to (hopefully) get around the problem of the omitted variable. Look at the most basic case of a simple linear regression: $$Y_i = β_0 + β_1 x_i + u_i $$ Here an omitted variable would be included in the error term. It must be both: explaining the dependent variable and cor...
Sorry; not a statistician; I don't know how to correctly word this. This came up with X (formerly Twitter)'s Community Notes system. If at any time 3 out of 5 of your previous community notes are rated unhelpful, you will be removed from the community notes program. Say there's a probability $p$ of any given note being...
Context: Typically in an image segmentation problem we go from the model's output logits to sigmoids to discrete labels (0 or 1 in this case). Akin to a binary classification problem, we can set up a calibration dataset to find the distribution of q and define alpha. Q1: I understand how conformal prediction can give m...
I am referring to the question here: Determining the Number of Restrictions in an F-test. But I want to derive a more general rule than counting the equality signs. If I denote the null hypothesis in matrices and vectors as: $Rβ = q$ Is J now always equal to the number of rows of the matrix $R$?
So all my variables (X1, X2, and Y) are continuous, and there is a known negative relationship between X1 and Y from existing literature. My aim is to see whether variable X2 can moderate/affect this negative relationship between X1 on Y. I am unsure whether to use hierarchical or moderated regression here.
The hw question: Data set includes: COUNTRY Country name REGION Country region CASES Total number of COVID cases thus far in the country DEATHS Total number of COVID death thus far in the country CPI Current consumer price index of the country PHIGHSCHOOL Percent of adults achieved high sc...
When trying to find the uniformly most powerful unbiased (UMPU) test for the exponential family Lehmann and Romano give a "simple" approach. Suppose that we want to test $H_0: \theta = \theta_0$ and $H_1: \theta \neq \theta_0$. Denote by $T(X)$ the sufficient statistic of the exponential family, and by $\phi$ the test ...
In GLMs (generalized linear models), one can typically obtain an estimate of the expected variance of the response variable given the predictors as a transformation of the same parameter that defines the mean. Per the paper: Jørgensen, Bent. "Exponential dispersion models." Journal of the Royal Statistical Society: Ser...
In hypothesis testing, the definition of p value is the probability of obtaining test results at least as extreme as the results actually observed, under the assumption that the null hypothesis is correct. My question is why the "at least as extreme" part? Why not just the probability of the result actually observed oc...
These data are not mine but are from Figure 7C of Induction of osteogenesis by bone-targeted Notch activation. Note that the design is 2 x 2 factorial but analyzed as single factor (4 x 1). Ctrl Dll4(E12) PTH PTH+Dll4(E12) 2.518 2.779 2.353 3.301 2.907 2.614 3.099 5.301 2.797 2.538 2.933 3.168 2....
The main thing I want to know is should we always obey the Linear Regression classic assumptions rules ? I mean its seemingly common in Finance era such that the results are not satisfying the Assumptions . is it common or acceptable ? is there any alternative assumptions for such situation ? ( for example we can say w...
I'm using mixed effects models for repeated measures (MMRM) in R with the nlme package for the first time as part of a research project and have read lots of posts here to learn about the intricacies of these models. I am hoping to verify that I'm using the right approach — and ask a couple of questions that I haven't ...
I'm hoping I can find some advice on this question. I have repeated measures of an outcome variable yvar where the trend over xvar changes with a factor SF. At lower values of SF, yvar is more linear. At higher values of SF, yvar is more curvilinear. I've modelled yvar with a quadratic polynomial. lmm <- lm(yvar ~ SF *...
Let's say I have an $AR(2)$ process with positive first coefficient and negative second coefficient, e.g: $$y_t = 0.5 y_{t-1} - 0.5 y_{t-2} + \varepsilon_t$$ First, is there a real-life or logical example for such a process? I mean, can you find a setting where this relationship is the actual DGP (even if it's just ma...
I'm working through J.F. Lawless's 'Statistical Models and Methods for Lifetime Data'. At one point, it's said that: In particular, $h(t)\Delta t$ is the approximate probability of death in $[t,t+\Delta t)$, given survival up till $t$ I'm a bit confused by this. I've seen hazard functions (like the Weibull hazard fun...
I have found the following inequality in a manuscript: Let $S_{t}^{i}$ and $S_{t}^{i^{\prime }}$ denote the $i/N$-th and $i^{\prime }/N$-th cross sectional order statistics. We require: \begin{align} \inf_{t\leq T}\inf_{i,i^{\prime }}\left\vert S_{t}^{i}-S_{t}^{i^{\prime }}\right\vert \geq \sigma \frac{\left\vert i-i^{...
My problem is the following: I’ve run a one way ANOVA to test whether the means of my three samples are equal and found that there is a treatment effect. As far as I’ve understood, this only tells me that at least one of my means significantly differs from the others, but not which one and by how much. Now, is there an...
I am fitting a linear mixed model for the first time. I have a dataset that looks something like this: Surgeon Handed Illness Speed 1 Left A 8 2 Right B 15 3 Right C 12 4 Left A 10 1 Left B 10 2 Right C 16 3 Right A 14 4 Left B 9 1 Left C 9 2 Right A 18 3 Right B 18 4 Left C 10 I am in...
I have seen weight-of-evidence cited as a way to address non-linearity in LR models. Has anyone seen/heard of the same? The function I am particularly using is woe.binning in R for this. The linearity log-odds is failing, so I am using woe.binning (R function) for it. But, I am unclear whether "woebin" from library sco...
I know this is similar to many questions asked here before, but I couldn’t find question that addressed what I need. I started ESL but I’m having a lot of trouble with the probability theory part of it. I have taken a statistics which covered all the basic concepts but it wasn’t very rigorous so I’m having trouble gett...
Lets say we have two identical regression equations (linear_model_1 and linear_model_2), however both are run on independent samples of differing sizes. Can I use the linearHypothesis function to jointly test whether the vector of coefficients from linear_model_1 are equal to linear_model_2? Or is there another functio...
I am trying to find correlations and quantitive relations between two variables taking into account a third variable. I am clearly doing something wrong or interpreting the results wrong, as it does not make any sense. I am using R markdown and the following is my data sample library(dplyr) library(pixiedust) :Flexio...
I've done some reading here in the past, and my basic assumption is that for a generalized additive model (GAM) or a quantile regression (QR), the following is generally true: For a Gaussian distributed error term, the adjusted $R^2$ in GAMs functions similarly to it's analogue in linear regression, and thus provides ...
I am working on a dataset showing the number of birds at each site in two baseline studies 1 & 2. I have data for birds at each site for 20 days for each baseline. I wanted to find out which site has the highest number of birds in each baseline. I used Kruskal - Wallis test since the data isn't normally distributed and...
If we want to make valid inferences about a simple linear regression estimator with one term, then homogeneity of variance of the residuals is a common assumption for making valid inferences. However, I'm confused on what the assumption actually is in the multiple regression context. Do we assume homogeneity of varianc...
Why in linear regression, when we use gradient descent, the cost function is MSE rather than RSS?
I'm looking to understand the best way to understand the factors that drive student math scores. I have each data such as (not limited to) demographics, parent's education level (categorical), taking after-school math program (0/1, yes or no), hours spent on sports per week (numeric). I don't intend to do any predictio...
I have a population that is in size equals to 65,536. The population follows a uniform distribution and is composed of discrete, ordered integer numbers. From this population I wish to identify the appropriate sample n so that it has a specific error of e.g., 5% and a confidence level of 95%. I have some questions on h...
Consider the following panel regression model, were we try to estimate whether Photovoltaic Panels (PV) installations on apartment blocks have a driving effect on adoption speed of surrounding dwellings: \begin{align} Y_{it} &= \gamma_i + \beta X_{it-1} + \theta_t + \epsilon_{it} \\\\ \end{align} $\gamma_i$ den...
This is a theoretical question, but it's been in the back of my head for a while now. Let's say I have two groups A and B, and I already know that they differ relative to their distribution on a categorical variable with more than two categories (if you need an example, let's say for instance "favorite hobby" with 4 po...
I ran this multilevel ordinal regression using clmm from the ordinal package library(ordinal) set.seed(1) dat <- data.frame(day=rep(seq(1,10,1),times=20), product=rep(c("A","B"),each=100),id=rep(seq(1,10,1),each=10), rating=factor(round(runif(200, 1,4)),ordered=T)) fm <- clmm(rating ~ product*day + (day:product|id), d...
I have a set of data looks like this: hwid freq code output 101 5150 764 24 101 5170 768 24 101 5190 764 24 102 5150 752 24 102 5170 760 24 ... ... ... 24 The data represents "power level" (decibel) of the radio transmitter hardware, where hwid column identifies the hardware, freq is the frequen...
Does someone know if there is (clever) way to formulate mathematically all the following models below: in a unique (system) of equations?
So far in a country are counting votes and 72.9% of the votes have been counted. Candidate A has 43.8% of the votes, candidate B has 43.54%. Assuming that there are not a significant difference between the people that they already count vs the ones left (big assumption). How likely is that candidate has more than 50% o...
When running a beta regression in R I am interested in seeing if there are any potential mediators to my primary outcome. My primary outcome is bounded between 0 and 1 and I therefore am unsure I can use an orthodox mediation analysis process. Is it possible to run a mediation analysis on data bounded between 0 and 1 a...
Disclaimer: This is actually related to a previous question. I decided to post this as a new question as I feel it specifies the problem enough to be considered a separate question. If mods believe this is not the case, I can erase this and edit the first question. Background: I am investigating best practices in perfo...
Let's assume we are given a FFNN of type $$F: \mathbb{R}^n \times \mathbb{R} \rightarrow \mathbb{R}, \quad (x_1,...,x_{n+1}) \mapsto y$$ We assume the generic architecture (of depth $H$) $$a^{l+1}=\sigma(a^{l}), \quad a^l=W^l a^{l-1}+b^l, \quad l=1,...,H$$ where $\sigma$ is the activation function, $a^1=(x_1,...,x_{n+1...
I'm creating an index on spatially aggregated (binned) data in R where the final value needs to reflect not only an average of all input variables, but also the "presence" of all variables. The final index needs to give more weight to locations where all input variables are elevated. I'm essentially looking for a way t...
I have a rather large sample of the sum of daily rainfall at a specific location in mm. I am currently attempting to find the best fitting distribution using the fitdistr() function in MASS. Some graphical comparisons between my data and general distribution functions lead me to believe that a gamma distribution would ...
I'm reading a paper where the authors have 3 related time series based on proportion data. They test for a change in these proportions by using an F test and state that this allows them to check whether the slopes differ significantly from zero. This doesn't seem right to me because surely you'd want to check whether e...
I cannot clearly understand why models are compared across multiple datasets. What practical problems do they aim to solve? Especially, in several papers, models are compared using datasets that are not related to the same topic. Is this approach used in real industrial applications? Some papers: Demšar, J. (2006). Sta...
Let's assume a linear regression $$ y_i = \beta_0 + \beta_1 x_{i,1} + \beta_2 x_{i,2} + \varepsilon_i $$ where $\varepsilon_i, x_1, x_2 \sim N(0,1)$ and $\beta_0 = \beta_2 = 0.5, \beta_1 = 1$. Given the null hypothesis \begin{align} H_0: \beta_i = 0 \\ H_1: \beta_i \neq 0 \end{align} and simultaneously the t statistics...
I am currently using XGBoost (in R) to perform multiclass classification. I am using merror=eval_metric and my objective is multi:softprob, so that I can get predicted probabilities for each class. I also have a vector of weights for each of the observations I'm using. I've plotted a calibration curve for each class (b...
I'm having trouble deciding what to do when two important variables (important to my research questions) are seemingly too related, but both need to be included in a full model (this is a longitudinal study where we repeatedly sample around the same time 2x each year, i.e. every season). I also have a related and broad...
Currently, I am working on a data set containing isotopic ratios. To understand differences in the ratios I am fitting a linear mixed model in R using the lme4 package. I am then using the arm package ands its sim() function to generate the posterior simulations of sigma and beta from the lmerMod object and base my inf...
When conducting meta-analysis on prevalence of disease, few studies have reported prevalences using different rounds of cross-sectional surveys. When analyzing such studies shall I take each reported survey for each time period as different observation or there are any guidelines for such publications. For example, a s...
Is there a discrete time-homogeneous Markov chain $(X_n)_{n \geq 0}$ in which one transient state $i$ satisfies $\sum_{n=1}^{\infty}nf^{(n)}_{ii}<\infty ?$ where $$f_{ii}^{(n)}:=\Pr(X_n=i,X_v\ne i,1\le v\le n-1\mid X_0=i),n\in \mathbb Z^+\quad .$$
I want to know if my response variable "Ratio" is influenced by 2 fixed factors : "Protection" and "essai" Each experimental units has one level of ESSAI and one level of PROTECTION I established the following model that best fits my data : gamlss(formula = Ratio ~ ESSAI + PROTECTION, sigma.formula = ~ESSAI, nu.formula...
In this video the author says that Power of a test is the probability that we will correctly get a p-value below significance level My question is: when do we know that we correctly obtain a p-value below significance level? To me, it would require knowing apriori that, for example, the two distributions are separabl...
I am trying to simulate transition from the linear regression coefficients to the Pearson correlation coefficients. I have these two equalities: $r_i= \beta_i \times \frac{standardDeviation(X_i)}{standardDeviation(Y)}$ and $\beta_i =\frac{covariance(X_i,Y)}{variance(X_i)}$, where $X_i$ are independent variables or feat...
I'm working on a project where I need a variable for the total number of medications a patient is on. The PI is a clinician and I feel they would be able to use the resources at hand - case note and disease data - to make a good estimate at the missing values - of which there are very few ~ 20 for a sample of 500 and a...
I've done 10-times-10-fold cv over 4 datasets for 2 different machine learning classification models. So I obtain 100 performance metrics(eg. balanced accuracy) for each dataset. I would like to statistically test if the difference in performance between models is significant across all datasets. I would usually do an ...
I want to know if dataset suitable for test of significance, and if 'no' (which I am suspect) why exactly not as I must report it why not. I have three apples species (Gala, Pink Lady and 'new') and apples have been inspected for damage. I want to know if 'new' have less damages. All apples sampled in same way, but onl...
In a Bayesian analysis, I came across the following distribution that results ends up looking like a re-scaled Dirichlet distribution. The motivation comes from looking at probabilities $x_1, \ldots, x_J$, where we condition on an event that occurs with probability $\sum_{j=1}^{J} w_j x_j$ (and weights $w_1, \ldots, w_...
I am trying to understand how to analyze data for a generalized mixed model (GLMM) with a binary response. I am interested in visualizing the predicted probabilities, as well as a measure of effect size (e.g., odds ratios). Synthetic data are presented below. (I will also note that my actual data are skewed and have ve...
To start, I am a geologist, not a stats person by education, so I apologize in advance for anything I get wrong here. I will try to include as much info as I can to help answer this question, but I am more than happy to elaborate on anything that needs further clarification. Background: I am testing a dataset for allom...