instruction
stringlengths
9
38.7k
How should I compare my logistic regression models? My study is about the association between diabetes (dia), and a genetic variation (GV) I'm adjusting for confounders such as gestational age (GA) and gender (GE). I have these models: the simpel, reduced model dia ~ GV half complex, intermediate model dia ~GV + GA ...
I have two sets of data fit into power law relations y=a*x^b. What test do I do to test whether they are significantly different.
I have some categorical data which is coded 0/1 at the observation (in this case, interest area) level. I have averaged these values per trial, which provides me with a probability value between 0 and 1. I am running GLME's in R using family = Gamma(link = identity) (continuous) and family = binomial(link = logit) with...
I want to solve the following problem. Suppose we have a simple pendulum, which follows the differential equation \begin{equation} \dot{x} = f(x) = [x_2, -\sin(x_1)]^T, \text{with } x=[x_1, x_2]^T. \end{equation} Given an inital state the successor state is calculated via eulers method \begin{equation} x_{k+1} = x_k ...
I possess training data denoted as $D$, a given test input denoted as $x$, and a model that is parameterized by a random variable $\theta$. This model is a neural network containing dropout layers, making it parameterized by the random variable $\theta". My objective is to assess the model's epistemic uncertainty by qu...
Problem Evaluate $$I=\int_{-\infty}^\infty \frac{e^{-\frac{1}{2}\left(\frac{x-\mu)}{\sigma} \right)^2}}{\sigma \sqrt{2 \pi}}\frac{1}{1+e^{-x}}\, \mathrm{d}x$$ My attempt Now the first part of the integrand represents the p.d.f of the normal dist and other other the c.d.f. of the standard logistic. So I wrote it as foll...
I've fitted a GAMM using the mgcv package in R to some time course data from a biological experiment, with multiple drug treatment groups and a vehicle control group. I'm looking to make a comparison of each treatment group to the vehicle control. I have a linear fixed effect of the dummy encoded treatment group factor...
I have plotted the average SAT score of schools on the x-axis and the studentised residuals on the y-axis. The code I used to produce this looks like this: library(MASS) lm.sats <- lm(SATSCR ~ urbanrural) stud_resids <- studres(lm.sats) resid_df <- final_df[!is.na(final_df$SATSCR),] head(stud_resids, 3) plot(resid_df$...
I built a model with 2 variables, i found that the predicted values for the test set did not align with their real values, so i predicted instead with the data which were used to train the model. I had the following results: I don't have a lot of experience in ML, but this shouldn't be like this. The predicted values ...
I'm performing a mediation analysis in R, block-bootstrapping by participant instead of by row since I have multiple observations for each participant. My code looks like this: # Create function to block bootstrap by participant indirectsaved = function(formula2, formula3, dataset, ids) { # Get unique ids uniqu...
I know that Kolmogorov-Smirnov test uses the empirical distribution function of the sample studied $\widehat{F}(X_i) = \frac{i}{n}$ and then measures the adequacy of function $\widehat{F}$ to function $F$. In reliability, it is common to use the median ranks method (also known as Benard's approximation) instead of the ...
There are several common methods for scaling input features to machine learning models prior to training the model. The most popular methods seem to be standardization (centering by the mean and dividing by the standard deviation of the variable) and min-max normalization (centering by the minimum value and dividing b...
I have a repeated measures crossover design where two treatments were delivered to all participants, and measurements of the mediator M and outcome Y were taken following each treatment. I also have a moderator W which moderates the influence of the treatment X on the mediator M. Finally, I have a variable A representi...
I am trying to run the following model in Lavaan, in which AM, RM, and CU are latent variables. It also has three control variables (CV1, CV2, and CV3). I have written the code that is included at the end of the post. I have two doubts: Should I also include the CV when calculating the total effect, and indirect effe...
I am trying to understand the difference between the two modelling approaches described below that stems from the causal graphs. Our goal is to causally measure the total treatment effect of our expenditure of two investment options denoted $X_1, X_2$ on the final outcome sales $Y$. To our help we also have measurement...
Consider discrete random variables $X_1,\cdots, X_n$, and let $D$ be their joint distribution. For each subset $S\subseteq[n]$ let $D_S$ be the marginal distribution $(X_i)_{i\in S}$. Fix $k<n$. Suppose you are given, for every $S$ of size $k$, a distribution $D_S$. Under what conditions do the distributions $\{D_S\}_{...
I am interested in running a multivariate multi-level model with longitudinal data, and I'm having a hard time conceptualising the hierarchy levels. My variables are: Multivariate outcome: Quality of life scores (continuous) with 5 domains (Physical, Psychological, Autonomy, Peer, and School). Individuals are repeated...
Naturally, the above image is a graphical representation of a sigmoid function fit for a logistic regression I'm trying to understand the equivalent of an ordered logit. Below is an image that, to the best of my understanding, is the graphical representation of a fitted proportional odds logit of four categories. are ...
I'm trying to understand the non-parametric bootstrapping to calculate p-values. I understand pearson correlation has it's own method for calculating p-values but I'm just using this as an example. My understanding of the process is the following (for a two-sided test calculating p-value for vectors X and Y): Calcula...
I am conducting a meta-analysis on a series of studies without a control group, with pre-and-‎postoperative data (Mean ± SD). I have calculated the SD of the mean change using the reported p-value ‎for the paired t-test in each study. Now, the problem is that the estimated pre-post correlation gives a ‎value outside th...
This post says: Lagged versions of the dependent variable are a no-no in traditional random effects models. The problem is that they are correlated with the random intercept and produce inconsistent estimates of the regression coefficients. This is known as the initial conditions problem. Is this an inconsistency in ...
I'm trying to work out a linear regression model where both inputs and outputs are multidimensional. Suppose we have $n$ input variables, $m$ output variables and $k$ observations. Each observation can be represented as an $n+m$-vector: $(x_1,...,x_n,y_1,...,y_m)$. The full set of observations can be represented with t...
I have categorical data coded 0/1 at the observation level. I have averaged these values across trials, obtaining a probability value between 0 and 1. I am running GLME's in R using family = Gamma(link = identity) (continuous) and family = binomial(link = logit) within the models, however for the averaged categorical d...
Mixed effects models(MEM) can be nested or crossed. For crossed models specifically, how would the below R code look as a mathematical formula in an academic paper? There are multiple random and fixed effects. M1 = lmer(Y ~ A + B + C + D + E + ( 1| FFF) + (1|GGG), data)) There is plenty of literature on Crossed MEM...
I am currently working on estimating a cure survival model where I want to incorporate a Cox proportional hazards (PH) model for the latency part of the model (i.e. the part for the observations that actually experience the event). However, I am unsure about the appropriate approach to test the PH assumption in this sp...
In professor Leon Garcia's textbook "Probability, Statistics and Random Processes for Electrical Engineering" there is an example (example 7.20 on page 383) of almost sure convergence of a random sequence. An urn contains 2 black balls and 2 white balls.At time n a ball is selected at random from the urn, and the colo...
I am having trouble figuring out if my ANOVA model is correct. I am analyzing a split-split plot greenhouse study with shade as the main factor (n = 3 treatments), site as the sub-plot factor (n = 3 treatments), and litter as the sub-sub-plot factor (n = 2 treatments). This was replicated five times for a total of 90 p...
I have a model which estimates the average sqft price based on whether the estate needs renovation or not and whether it is downtown, suburbs or in the transition zone between those two ares. All variables are binary: $price = 402.45 − 23.10 ∗ renovation + 56.10 ∗ downtown − 10.01 ∗ transition + 15.90 ∗ renovation × do...
I'm a grad student trying to calculate the survival probability at a particular time point (in this case at 12 months). In order to deal with differential loss to follow-up (LTFU), I'm assigning weights to the LTFU participants who I was able to trace their vital status and assigning a weight of zero and dropping the L...
As stated in the foundational Biometrika paper of Green (1995) 'Reversible Jump Monte Carlo Calculation and model discrimination' I am researching the inversion of the data in Geophysics and MCMC is suitable for what I am doing. Furthermore, the model I try to use can have a different number of parameters, which is als...
Assume that I am using Anderson–Darling test to evaluate whether a given sample of data is drawn from a normal distribution with some mean and standard deviation. If you accept the null hypothesis in a the Anderson-Darling test with a p-value of 1.000, it means that you have failed to find evidence to reject the assump...
There are some research claims that one statistical test is more powerful than another. For example, a highly cited study states: Results show that the Shapiro-Wilk test is the most powerful normality test, followed by the Anderson-Darling test, Lilliefors test, and Kolmogorov-Smirnov test. The general idea of the ar...
like many of us here, I turn to kernel density estimation when I need a nonparametric estimate of a numerical feature's distribution, and in an attempt to assume as little as possible, I usually use cross-validation to tune the kernel's bandwidth. Recently, however, I've been wondering whether I should tune bandwidths ...
What other deductions are possible? In a class of n students, a test was administered and only scored on whole numbers from 0-10 if every possible score was scored at least once, the average score was seven. What can you deduce? Deduction 0: the average of the first 11 is five. 1.There are at least 11 students 55+x=7...
This is the first time I've come across this type of problem. I really appreciate any comments or suggestions. In a Bayesian model implemented through Stan, with populations as the units of analysis (e.g., hospitals or institutions) , I have estimated a continuous parameter denoted as $\mu$. In this context: $\mu_i \si...
0 I am using the csdid command in stata for panel dataset with multiple treatment periods. When the command is running some of the iterations fail, but I still get an output. I looked in the helpfile for csdid and it states "Each succesful iteration is represented by a ".", whereas an "x" indicates for some ATT(G,T), t...
I have created a binary Logistic Regression model to predict if patients in a particular state, will die based on 10 or so predictors (demographics, income, physiological values, etc.) My dependent variable (death) is binary and I converted my predicted probabilities from continuous to binary by assigning cutt-off valu...
I have a function that I want to see if its calculations are biased (I think, but an not certain, in the sense of an unbiased estimator). So, I have (can generate) a set of numbers (drawn from a normal distribution with mean of 0 and standard deviation of 1) and I have two computations that calculate the same mathemati...
Psychology: the Core Concepts says Psychology differs from the pseudosciences in that it employs the scientific method to test its ideas empirically. The scientific method relies on testable theories and falsifiable hypotheses. Do testability and falsifiability have statistical definitions? If not, wha...
I have some questions about the use of CV in machine learning, I created a post some days ago and I have been given a link to a previous post (very interesting). I also read this post (https://www.r-bloggers.com/2020/12/the-cross-validation-train-predict-misunderstanding/) about the misconception of cross validation an...
I have applied 3 different models (Logit, RF and XGB) to my dataset with the aim of investigating their individual predictive performance. I have found the feature importance of the logistic regression model using the coefficients, and of the non-parametric models using the square root of the respective feature_importa...
I have conducted a generalized linear mixed model (GLMM). For the output, see below. Normally (when reporting results from an ANOVA), I write something like this: $F(1, 116) = 6.09$, $p = .015$, $η2 = .04$. But which statistical parameters (e.g. $\beta$, ...) do I use when reporting the results below (according to APA...
Say I want to sample from a Gaussian mixture $$\pi=\sum_{i=1}^3w_i\mathcal N(x_i,\sigma_i^2I_2)\tag1$$ where he support of the 3 distributions are "effectively separated"; e.g. $w_1=.1$, $x_1=(-22, -22)$, $\sigma_1=3$ $w_2=.3$, $x_2=(-1,-1)$, $\sigma_2=.2$, $w_3=.6$, $x_3=(15,15)$, $\sigma_3=1$ on the domain $[a,b]^2...
I am interested in learning the math behind support vector machines. So far, I understand that SVMs attempt to find hyperplanes that maximize the margin distance between support vectors associated with the classes that you are trying to classify. I also understand that using a kernel allows one to project the data poin...
Consider a natural exponential family: \begin{equation} f(x|\theta) = h(x) e^{ x \theta -A(\theta) } \end{equation} We assume that we are supported on $\mathbb{R}$ (i.e., $h(x)>0$ for $x \in \mathbb{R}$). My question: Are there some interesting (i.e., used) examples when $A(\theta)$ is a polynomial? For example, if $A(...
Let $z$ ∈ R^L be an unknown vector of values, and $y$ ∈ R^D be some noisy measurement of z. We assume these variables are related by the following joint distribution $p(z) \sim N(z|\mu_{z}, \Sigma_{z}) $ $p(y|z) \sim N(y|Wz + b, \Sigma_{y})$ where W is a matric of size D x L. This is an example of a linear Gaussian sy...
Let's say that I have an independent variable x1 which I'd like to explore its association with Y (a binary outcome variable). Furthermore I'd like to explore how x1 associated with Y when x2 interacting with them, x1 associated with Y when x3, .... when x10 is interacting with them. I build the following model in R: m...
I run a regression with a continuous variable $x_2$ and a binary grouping variable $x_1$. We suppose that the effect of $x_2$ is quadratic on the dependent variable $y$ and our question is whether the effect of $x_2$ on $y$ depends on $x_1$. The formula is $y\sim x_{1} + x_{2} + x_{2}^{2} + x_{1} : x_{2} + x_{1} : x_...
I'm comparing three LASSO-regression models for classifying two patient types. Each model has increasingly complex variables, which are less likely to be available. Consequently, the last model has more missing data compared to the first model. As I understand it, LASSO regression requires non-missing data. Do I need t...
I have 6 algorithms, and each algorithm I use on N problem instances (say N is around 200). I divided the algos into two groups, 3 into group A and 3 into group B. They are divided into two groups based on a characteristic of the algos. So that we can actually say that I have 3 variants of algo A, and 3 variants of alg...
I am using GMM for my research work. Previously, I have used ivreg command in stata in which we manually specify the instrumental variable for the endogeneous variable. I was just curious and wondering how stata allots instrument variable for exogeneous variables while conducting gmm?
I'm following this course on deep learning. In lecture 10.2 (page 23 in the handout for the lecture) causal convolutions are introduced as a method for image generation. A bit later it is said, that these convolutions need to be supplied with positional encoding to improve the quality of the generated pictures since "a...
I'm modelling some count data using negative binomial regression with glm.nb in R. I've noticed that my point estimates are quite consistently not at the midpoint of the 95% CIs and wondering if this is normal because of the distribution or if it's a sign I'm doing something horribly wrong. Have never worked with negat...
I am trying to fit a logistic regression model in order to analyze if the fuel type has an influence on how powerplants respond to droughts (e.g. are Nuclear Powerplants more likely to shut down (generation = 0) when experiencing water scarcity. I created a panel dataset with around 130 Plants and 230 Time Periods whic...
Are there papers/a literature on measuring perplexity in using a Large Language Model such as ChatGPT/Flan over a limited domain? I want to prompt an LLM to do movie recommendations/next job prediction and such, and these models are often compared using loglikelihood/perplexity. There is a lot of work doing recommendat...
My linear regression is: School's average test score ~ log(%FSM) %FSM = the percentage of pupils at the school who are eligible for free school meals (an indicator of low socio-economic status). The coefficient for log(%FSM) is -10. Do I interpret this as: a 1% increase in the %FSM pupils is associated with a decrease ...
I wondered if anyone could recommend internal cluster validation resources in R capable of estimating $k^*$ prior to using k-modes? Therefore, I wondered if anyone knew of existing internal validation libraries in R capable of working with Hamming distances? And failing these standard internal validation approaches, I'...
Consider a time series of time t=1...T as $$\left(y_{1},y_{2},...,y_{T}\right)$$ Here, do each of the $y_{t}$'s correspond to different realizations of a the same random variable Y? Or are each of the $y_{t}$'s thought of as random variables themselves ?
I'm reviewing the foundations of linear regression using Wooldridge's Econometric Analysis of Cross Section and Panel Data and Cameron and Trivedi's Microeconometrics : Methods and Applications. The treatment with respect to identification of the classical linear model $y = X\beta + \varepsilon$ varies slightly: Woold...
Using train_test_split is a common practice while building a Machine Learning model. Nevertheless, partitioning your dataset to get train and test samples is an specially delicate issue. If you trust on pure randomness, the output might be representative of the correlation(s) that you are trying to look for. Or might n...
In the method of least square I have the following $\hat{B_1}=\frac{\sum (Y_i-\bar{Y})X_i} {\sum (X_i-\bar{X})X_i} \\ ~~~~= \frac{\sum (Y_i-\bar{Y})(X_i-\bar{X})} {\sum (X_i-\bar{X})^2} \\ ~~~~= \frac{S_{XY}}{S_{XX}}$ So my question is about the derivation of the second equality. Could you please explain how you arriv...
I am currently creating a naive model, where the outcome is a continuous biological variable, and the time to measurement is a continuous time variable, defined as the time since the individual received a diagnosis of Type 2 Diabetes. The model is very simple: full_gmm <- gridsearch(rep = 100, maxiter = 10, minit = bas...
(For background, see The Skip-Gram Model.1 This question does not exactly use their notation, but you should be able to follow along.) The original skip-gram log-likelihood of a single word, $w$, given a single word in its context, $c$, is— $$ \begin{align*} \mathcal{L} &= \log \frac{ \exp(\mathbf{u}_c^T \mathbf{v}_w) ...
For integer $n\geq 1$, I have a "goodness" function $f_n(F)$ that takes as input a given joint CDF $F$ of $n$ variables, and spits out a number in $[0,1]$ on how "good" $F$ is. The larger the better. You can assume the $n$ variables have support on $[0,1]$. I would like to maximize $f_n(F)$ subject to $F$ being a joint...
For my medical dissertation I am studying a group of 36 patients. The patients received a drug repeatedly over several months. Serum levels of two cytokines were measured in the patients both before treatment initiation (=baseline levels) and also during the further course of treatment at different, non-standardized ti...
I have a random sampling of $Z_1,...Z_n$ from a normal distribution $N(\mu,\sigma^{2})$. I am considering them within a joint likelihood function. I know that the MLE ($\hat\sigma^{2}$) of $\sigma^{2}$ is $\frac{1}{n}\Sigma_{i=1}^{n} (x_{i}-\bar{x})^{2}$. I want to find the variance of $\hat\sigma^{2}$. Here is my reas...
I have a large number of categories (on the order of 1,000), measured by month, and I would to identify a few dozen of the categories which have the 'most notable' (I realize this is a ambiguous term) increases/decreases in the most recent month relative to past history. I don't need to make any predictions, rather jus...
Original Problem I'm looking at problem-set in cs229 about EM algorithim. As my understanding $\ell_{\text{semi-sup}}(\theta)$ is $$ \ell_{\text{semi-sup}}(\theta) = \sum^m_{i=1} \log \sum_{z^{(i)}} p(x^{(i)}, z^{(i)}; \theta) + \alpha \sum^{\tilde{m}}_{i=1} \log p(\tilde{x}^{(i)}, \tilde{z}^{(i)}; \theta) $$ Where...
Based on independent samples of data $X_i \sim$ Expon$(\lambda_1)$, $i = 1, \cdots, n,$ and $Y_j \sim$ Expon$(\lambda_2)$, $j = 1, \cdots, n$ (both samples of the sample size $n$), find the Wald test for $H_0: \lambda_1 = \lambda_2$ versus $H_1: \lambda_1 \neq \lambda_2$. $\textbf{My work}:$ Let $\theta = \lambda_1 - \...
I have a group of time series $X_1, X_2, ... X_n$. I want to measure how much they have "dispersed" over time. i.e. are they moving "more together" in 2023, comparing to 2022. $n$ is about 50. Time series are measured in the same points in time (in fact, daily, so no more than 365 data points a year). If there are just...
I have normal data and have applied Chauvenet's Criterion to all my data points to determine if there were any outliers that must be removed. I have 2 groups of subjects, male and female, and when I input all of these values (from both male and female groups), I get one data point from the female group that is an outli...
I want to do a survival analysis using a discrete time multilevel model in Stata, because the data I have is subject to heaping at certain ages (which explains the discrete time) and because the data I have is hierarchal (children are nested in households, the variable hh_number). Specifically, I want to look at whethe...
prop.pass = proportion of students who passed the exam num = number of students who sat the exam urban = if school is in urban area (1 = urban, 0 = rural) %dis = % pupils at school defined as "disadvantaged" (by parental income). Students either are or aren't disadvantaged. Is the following regression suitable to deter...
I am running a second-order latent growth curve with 7 time points. The model has a four indicator latent variables at the measurement level so I ran a longitudinal invariance test. The model holds for partial scalar invariance, so I assume I can move on to a latent growth model. So here is my question. When I am codin...
I am interested to find the causal effects of a state level policy on some outcome of interest. The policy affects some states each year but not other states. The states that are affected can vary across years. I am trying to figure out if this is a case of continuous or multi-valued treatment studied in recent DiD lit...
I compared two unequal sized samples, N1 = 108297 and N2 = 72922 using a Mann-Whitney U test. The U is shown to be large such as 7.37 e+8. And p value is < 0.001. I am just wondering that such large U value is ok. Or is there something wrong there? I am using R software.
I am testing various linear mixed models (in R using lmer())and am concerned about the lack of levels in one of my parameters, and how it influences the results. Design I have a continuous variable being tested against categorical Species. There are generally 10's to many more Specimens per Species. Each Specimen has a...
Problem Prove below equation , fisher information come from negative of second derivative of likelihood. $$\begin{align*} \mathcal{I}(\theta) = \mathbb{E}_{x\sim p(y;\theta)}\left[-\nabla^2_{\theta'} \log p(y;\theta')|_{\theta'=\theta}\right] \end{align*}$$ My current thought $$ \nabla_{\theta'} \log p(y;\theta') = \fr...
I am modelling differences between the risk of getting chronic kidney disease (CKD) between two groups, group A and B. I have very long follow-up time, approx. 30 years. The trouble is that CKD diagnosis rates have changed dramatically over these years, from being very rarely diagnosed to being quite commonly diagnosed...
I'm working on time series predictions for predicting the frequency of 911 calls in a town, based on previous data. But it would seem to me that this time series data isn't autocorrelated. The number of calls at time $t$, $y_t$, doesn't depend on the previous time points $y_{t-1}, ..., y_{t-k}$, it seems to depend only...
I have measures of weight for three countries for 3 time points. I want to find whether there is a difference in change of weight over time, based on gender accounting for groups (country). I also have a bit different age ranges for countries, so I was thinking to use an age variable only, which would account for diffe...
Background I am fitting nonlinear regressions with a single response and two predictors. I know the relationship between the response and each of the predictors, but I do not know how they interact. I am trying to build understand their interaction to build process-based models that incorporate it. In the meantime, I w...
Problem - I want to test whether the difference in a metric (say AUC) between two models is significant. I have one vector of binary class predictions from a custom function and one from sklearn.ensemble.GradientBoostingClassifier. What I tried - So far, the closest thing I could find is the 2-sample Kolmogorov-Smirnov...
I've conducted meta-regression analyses using the 'metafor' package in R. I am trying to interpret the outputs if you could please help? Output 1 (categorical with 3 levels): Test of moderator is significant, but the individual variables are not significant. Can I say that there was no significant association? Or shoul...
Problem I have a classification model, and I would like to know if the distribution of its predictions stay stable over time (e.g. the False Negative Rate). The model The model is a binary classifier that was trained by someone else, so I will not go into details with real-world numbers here, but instead make an equiva...
I found this counterintuitive result and want to check with you folks if I did not make any mistakes. Imagine a simple uniform distribution, of all values between 1 to 100. I would expect that increasing the frequency of 100s would decrease its skewness (sensu Fisher formula) from 0 to something negative. Also, I would...
There are numerous techniques for benchmarking models, e.g. cross-validation and resampling. However, while these can easily be compared in a relative way between implemented models or against a desired accuracy level, is there a way to analyse model performance against a more 'absolute' benchmark for a given dataset? ...
I guess I have a rather simple question but I couldn't find the answer in previous posts. I have a paired dataset in which the same objects are ranked under two different conditions, here A and B: > data rankA rankB obj1 3 4 obj2 2 2 obj3 5 1 obj4 6 5 obj5 1 3 obj6 4 6 I want...
In the inference when we want to model a linear regression using the least squares estimating method, we need to subtract each predictor variable by its mean in the formulas of the estimators we have. For example, if we have two predictors, then the formulas of the model's estimators are: So, I am trying to understand...
I've been asked to add in some general queue theory insight into some simulation work i've done. Basically, just to include a few lines here and there about what the basic theory would suggest would happen with the queuing system i'm modelling when variables change (specifically the variation in arrival and service rat...
Say I have a neural network that classifies images by training to minimise cross-entropy loss with one-hot encoded training labels. It is often seen that such neural networks are 'overconfident', with the softmax of the final layer giving a lot of mass to one class even if it is wrong. However the ultimate concern is u...
I have 10,000 data for training of LSTM model. 10,000 dataset is extracted from database for the years before 2020. 60% of data is used for training, 20% for validation and 20% for test. Test data is never used in training and validation. Then test results is 100% Then the model is tested again with new similar data fo...
I performed a treatment-control experiment, with $r$ repeats per group. Each repeat $i$ consists of a set of $n_i$ observations. Each observation $j$ consist of a rank $x_{ij}$ and a class indicator $c_{ij}$, either class $a$ or $b$. I am interested to know whether the rank distribution of observations of class $a$ dif...
I was reading Andriy Burkov's the hundred page machine learning book (section 2.5, check here: http://themlbook.com/wiki/doku.php) I am a little bit confused by the way he computes the prior for the next iteration, which is highlighted in the screenshot below. In my understanding bayesian update should be incremental a...
I have longitudinal data with measures of an exposure, outcome, variables that may be mediators or effect modifiers, and confounders at 3 time points. I would like to account for time-invariant and time-varying confounding while testing for mediation and moderation of the exposure-outcome relationship. I have two quest...
I have a dataset that contains only the timestamps of occurring events, i.e. I have for ~10^5 events the millisecond-precise time when the respective event happened (i.e. the data is unary, containing only '1's). I would like to perform spectral analysis (i.e. Fourier or Lomb-Scargle) on this data to find periodicities...
I am analysing diagnostic accuracy. I have a dataset with a ground truth and 3 predictors. Ground truth = binary (0/1) Predictor 1-2 = binary (0/1) Predictor 3 = continuous (0-100) I have 50,000 observations, and each observation can maximum have ground truth = 1 once. I have made ROC-curves with corresponding AUC-va...
I'm working with a list of errors in some process that can be expressed as small percentages. Since they're errors we hope they're small overall and expect them to be approximately normally distributed. It's common practice in my field to sort this list and plot them like this (dummy data): We can make some qualitativ...
I'm not too versed in statistics, but I am currently dealing with a problem that pertains to probability. If any assumptions are off on my part, please correct me. I have a 2D polynomial function of degree $n$, $z = p_n(x,y)$, if I randomly sample uniformly values of $x$ and $y$ in their domains $x\in [a,b]$ and $y\in ...
I have 8 columns of data for cumulative percentages and I performed one way anova. I know 4 sets of the data are statistically different because it is someone else's research data. When I added my own 4 sets of data, the result showed p value of 0.4. It didn't sound right so I tested only the 4 original data and it gav...