instruction
stringlengths
9
38.7k
In the trainControl documentation it said ""oob" (only for random forest, bagged trees, bagged earth, bagged flexible discriminant analysis, or conditional tree forest models), However, I saw a lot if examples of RF examples and most of them used either cv or repeatedcv. How can I determine which one to chose ?
I'm building an EWMA chart based on the predicted mortality of patients admitted to hospital. I'm working with some previous R code to calculate the standard deviation of the EWMA which work, but I can't figure out WHY the code works. Specifically it describes it as: σi = λ2 * Xi * (1-Xi) + (1-λ)2 * Xi * σ i-1 where λ ...
I asked this question on the econ form (https://economics.stackexchange.com/questions/51805/cross-sectional-survey-difference-in-difference-campaign-evaluation) but I don't know how to cross post. I would like to use two cross sectional surveys to evaluate the impact of a media campaign on public opinions. The problem ...
Let $(X_n)_{n\in\mathbb{N}}$ be a sequence of independent random variables such that $$P(X_n=n^{\alpha})=\frac{1}{2}=P(X_n=-n^\alpha),$$ for some $\alpha\in\mathbb{R}$. Show that for $\alpha\ge-\frac{1}{2}$, the central limit theorem holds. I understand that we have to show that the Lindeberg's version of CLT holds but...
Given 4 teams in a tournament, they versus against all the other teams once for each to reach best-possible place. Three points are awarded to the team winning a match, with no points awarded to the losing team. If the game is drawn, each team receives one point. I wonder about the real relative points value is not sim...
I`m doing a Monthly sales forecast based on some historical data. My question is when I do the Arima(p,d,q) and then I do forecast(arima_model) in order to get the fitted values, which are nicely following the historical data points, then If I take the mean values from the forecast func, which are the n-ahead predictio...
I have run a mixed-effects model that included fixed effects as well as random intercepts and random slopes. The design of the experiment is crossed: there are participants, each of whom evaluate a subset of words, and there are words, each of which is presented to a subset of participants. I have calculated the R2 for...
Given a random sample $X_1, X_2,..., X_n$ from Bernoulli distribution. The log-likelihood function is: $\mathcal{L}(\theta) = \sum_1^n x_i^*\log{\theta} + (n - \sum_1^n x_i^*)\log{(1-\theta)}$ Score function: $\frac{\partial \mathcal{L}}{\partial \theta} = \frac{\sum_1^n x_i^*}{\theta} - \frac{n - \sum_1^n x_i^*}{1 - \...
My question might be related to this or this one, but I have reasons to hope my problem is more benign. Assume I have a normally distributed variable $X \sim N(0, 1)$. What can be said of $Y = \exp(-\frac{X^2}{2 \sigma^2})$? It is obviously bounded to $(0, 1]$ and it certainly looks like beta-distribution: However, ...
I was reading about catboost and found out that catboost uses symmetric trees. The reasons for using symmetric trees is: The choice of oblivious trees has several advantages compared to the classic ones: • Simple fitting scheme • Efficient to implement on CPU • Ability to make very fast model appliers • This tree struc...
I have a Bayesian model that I've fit using Stan, and I'm trying to figure out the best way to calculate the correct credible interval that I am interested in. The model is a hierarchical GLM with a random intercept for each of $n$ subjects, so I have $k$ samples from the posterior distribution of the linear predictor....
I'm working with a device that maps certain RGB colors to a 7 bit value (0-127): I want to reverse the process, i.e. given any RGB triplet, what is the (closest) corresponding color index (0-127)? And I want to do so using the minimum number of parameters. E.g.: assuming there is some kind of rule behind how these col...
I'm forecasting future sales for products in retail stores, using a LightGBM model. My model has a decent forecast accuracy, but the forecasts are biased (the average forecast error is negative, the model is consistently under-forecasting). Do you have any idea or tips on how to avoid bias when forecasting time series ...
I am confused about the how to report uncertainty in Monte Carlo simulations. Take this simplified example: Say I want to model a system with the following system equations: X = A*B Y = C*D Z = X+Y If all the inputs (a,b,c,d) have uncertainty around them as represented by probability density functions (e.g. triangular...
The reference is GENERALIZED RANDOM FORESTS by ATHEY, TIBSHIRANI and WAGER (2019). They construct a general algorithm to grow trees and forest for estimation of target parameters that are conditional on a covariate vector $X$. Notation and Setup Observable data $O_{i}=(Y_{i},W_{i})$, where $Y$ defines the outcome, $W\i...
I've recently found myself wondering about the following thing in hypothesis testing: We can test some null hypothesis $H_0$ and reject it based on its p-value. This is akin to accepting (shreek!!!) the complementary hypothesis $\neg H_0$. For instance, in a two-sided t-test, rejecting equality $H_0: \mu_1=\mu_2$ means...
Suppose we have binary dependent and independent variables (and acbinary Instrumental variable). in Stata which command gives better estimates either ivregress 2sls or ivrprobit? I am not estimating any margins, I just want to identify the causal relationship between my dependent and independent variable. I am a littl...
Say a new social group X emerges in society. Say you take a sample from individuals in this group X. How to validate the sample's representativeness? For samples of other parts of society, you have a census to compare with. The census will tell you if the sample is representative or not. If not, you can adjust with kn...
Let's suppose I want to measure the impact of M&A in the hospital sector. I have a dataset containing hundreds of hospitals, a quality indicator and the type of ownership for each over a time period of 5 years (2005 - 2010). Some of the hospitals changed their ownership in 2005, some in 2008 and some didn't changed at ...
I'm working on a hierarchical categorical/multinomial logit model in Stan. I thought I'd expand my question to stack exchange to see if anyone has any suggestions on the statistical model, since it's perhaps not software-specific. Many more details are given in a Stan Discourse discussion here. 25% of transitions diver...
Is there a name for ranking categories by their value in a specific percentile (e.g., 66th percentile)? A fictitious example: Goethe published 9 books, Schiller published 7, and Herder published 3. We now rank these books by the number of times they were cited: Goethe Schiller Herder 972 766 40 * 718 720 * 27...
After being stuck in this question, I found another way to perform random forest. I'm trying to compare a normal random forest model (train & test/predicted) and time series data. My data have date columns, my target variable plus another predictor. I used the train() function from the ranger package for my target vari...
For doing inference of a population parameter from a sample, under which examples is better to calculate the standard error using bootstrap distribution of the mean than directly using the standard error of the sample? Let's take the mean of income as an example: I can take a sample and calculate the income mean, and ...
Distribution of a particular feature in my ML dataset is skewed as shown below. Log of this feature looks like a normal distribution. Can the latter distribution offer better predictability in a neural network model? P.S. Rest of my features in the dataset are like normal distribution and I applied z-score normalizat...
So I'm dealing with a large gene expression dataset (m sample by n genes, where m ~ 1000 and n ~ 20,000). For each of these samples, a phenotype of interest P exists. I'd like to be able to say something like 'this group of genes is associated with P in this group of samples, this other group in these other samples'. T...
In a permutation test, we have a test statistic $T$ (for example t-test, f-test, etc.) that is applied to the original data to obtain an observed value $o_{obs}$ for the test statistic. Next, the data is permuted and we use $T$ on this permuted dataset to calculate some observed value $o_{perm}$. This permutation proce...
Note: I have edited this question and delted my old question after following the guidlines to be more clear. I hope this new question is clear and well posed. I attempted this question but I got stuck understanding the solution I found online 5.2 Suppose $X_{1}, X_{2}, \ldots$ are jointly continuous and independent, e...
I am working on a multicenter propensity matched cohort study. The primary outcome is binary while the secondary outcome is continuous. First I performed multiple imputation to address the missing data. I initially planned exact matching on the sites in addition to matching on other variables of interests but got very ...
We want to perform ordinal logistic regression with the following properties: Dependent variable: Three ordinal variables (low, medium, and high) Independent variables: Age : Continuous variable Region: Categories (Nominal) Income : Categorical (Ordinal) - Data collected in income range; for instance, from 20000USD-50...
I need coefficients of autoregressive model of $x$: matrix $B$ with zero diagonal which minimizes squared error: $$\text{argmin}_B E[||x - Bx||^2]$$ For non-singular covariance, I can get solution directly from $E[xx']^{-1}$ using following procedure: Let $D2$ be the inverse second moment with off-diagonal terms set t...
is there a term or principal for assuming a 50-50 split for complimentary events (they can’t both be true but one has to be true) when you have no data for the actual split/proportion. Sorry this is really simple but I'm new to Stats!
I have a sample of values. Every day the sample grows because new values will be added. Every day I calculate the mean of these values. For research purposes I want to know the day that the mean starts to stabilize. If I plot the means with on the x axis the days (dates) and on the y axis the the means I can clearly se...
I'm trying to understand how to derive the analytical gradient for a SVM. I know that in a SVM, the loss function is defined as follows: From this blogpost, I know the full loss for each element in the weights matrix, $W$, is: I know that the above turns into: However, I don't quite understand the final step, which ...
I have got some data regarding some tv series episodes characteristics, like the number of characters or of cuts, and I have been adviced to try out PCA in order to find out the characteristics this movies have in common. Reading online, I have not understood any reason other than feature reduction, which I don't reall...
I'm writing a paper comparing ML & NN. However, in one of the question it asked to justify the method that you picked and the hyperparameter. I was thinking of writing in general are there any r code implementation that i could test to help justify my answer.?
Within item response theory, the latent trait (e.g., ability) is often depicted as $\theta$. Within item response theory, I have also come across the term $\theta$-grid. For example, the description of the tam.latreg function within R's TAM package package states that "only the individual likelihood evaluated at a $\th...
Given a known density $p(x)$, I'd like to generate samples according to $q(x) \propto p(x) f(x)$, where $f(x)$ is some probability function, $\forall x f(x) \in [0, 1]$, e.g., a sigmoid function. One way to generate such samples is by using a type of rejection sampling where we first generate $x \sim p$ then accept / r...
I was asked to move the question here (https://stackoverflow.com/questions/72692849/check-if-growth-rate-is-worse-than-quadratic) Let's say I have collected a dataset for estimating algorithmic complexity: x t 1 1 2 4 3 9 4 16 where x is the input size and t is the elapsed time. This may be O(1), O(lo...
I am wondering how would the slope and intercept change after adjusting for a confounder factor. After adjustment, would the slope be lower, or higher, and the value for the intercept? Is there any other important numerical change when adjusting for confounding? (in standard errors, etc.) Thank you!
I am using a minimum chi-square estimator technique to estimate a set of parameters using some sample data (essentially, finding what set of model parameters minimize the difference between observed and expected values, wherein the expected values are calculated through a series of equations). The approach is similar t...
I am currently trying to train a CNN model to classify CT-scans. I split the dataset using K-fold cross-validation and since the dataset I am using contains multiple slices per patient, I split the dataset by patient ID. The problem is that since the number of slices corresponding to each patient varies, spliting by pa...
I am sure I am just misunderstanding this but rbinom and sample seem to be generating disparate results and I am not sure why. I am trying to create a categorical factor with a balanced third in each levels (so .33 get 0, .33 get 1, .33 get 2). If I attempt to sample evenly 1/3 from rbinom(), I get uneven distributions...
My friend is working on his Sociology Thesis and is currently waiting for the researchers to finish running their experiments and collecting the data that will be used in his project (socio-demographic information is being collected on a group of students and they want to see if a model can be used to predict exam grad...
Given an n*n array of uniformly generated 1s and 0s, how would one find the probability that all of the 1s are touching (adjacent or diagonal), that there would be a "1 island"?
Let's say I have collected a dataset for estimating algorithmic complexity: x t 1 1 2 4 3 9 4 16 where x is the input size and t is the elapsed time. This may be O(1), O(logn), O(n), O(n^2), O(n^3) etc.. To find the closest class, it would be necessary to run a linear/non-linear regression to fit the ...
I have reinforcement/Imitation learning problem where I have to learn the Policy/controller Network ${\pi}$ for the system to be controlled. The final loss function I got involves a Black box function F(only I/O and so non-differentiable). Which is $$ L_{\pi} = || Y_{true} - F(X_{true}, NN_{\pi}(X_{true}) ) ||^2 $$...
In copula model, some researchers, identify it as a multivariate distribution function, while other present it as a cumulative distribution function. I believe multivariate differs of cumulative. But it seems researcher used them as exchangeable definition. Is that correct? My other point is, copula is known to be with...
In the section 15.4 of Hamilton's book Time Series Analysis ( 15.4: The meaning of Test Unit Roots) the author says: Although it might be very interesting to know whether a time series has a unit root, several recent papers have argued that the question is inherently unanswerable on the basis of a finite sample observa...
Consider McDiarmid's inequality in Hilbert space, or can we extend McDiarmid's inequality to functional data analysis with the complete observed data?
In MacKinlay’s (1997) well-known article about event study methodologies, he states that there are two ways event clustering can be accommodated in event studies. Event clustering means that event windows of some observations overlap in calendar-time, resulting in overstated significance, because observations are no lo...
I am reading this paper. The paper writes ... an input waveform of t seconds is converted into a sequence of 128-D log mel filter bank features computed with 25 ms Hamming window every 10 s. The results is 128*100t spectrogram. My questions are: $\bullet$ What is hamming window ? $\bullet$ How did the authors arrive ...
I'm trying to come up with an ML model/s to detect if a sentence has sensitive data(telephone number, IBAN, address, etc.) and also get the position of said sensitive data. For Example "My name is Peter and my telephone number is 0123456789. Have a nice day." The End result should look like this: "My name is Peter and ...
Let's say you want to compare the outcome of KMeans and KMedoids. How to determine if cluster 1 from KMeans can be compared with cluster 1 with KMedoids. Or, in other words, let's say KMeans labels the clusters as {0, 1, 2, 3} and KMedoids as {a, b, c, d}: how does one make the correct comparisons? In high dimensions, ...
I have three categorical variables that describe each item, and I know how many items I have for each combination of a pair of variables. I am looking to find out exactly how many items I have for each specific combination of the three variables. For example: The variables are Colour (Red, Blue), Shape (Circle, Square)...
I have recorded the heart rate of a number of participants with two methods: ECG rPPG I am trying to demonstrate that the rPPG is a reliable measure and I think I can use an approach similar to this paper: "Reliability and concurrent validity of a peripheral pulse oximeter and health–app system for the quantification...
I have narrowed down some specific questions and was advised that it's more appropriate to post them here than on stackoverflow I'm building a growth curve model using lmer in R and I'm unsure about some of the steps. I have a study where 20 participants see 20 cues, and for each cue they give 20 responses, and I belie...
I have a small medical dataset (200 samples) that contains only 6 cases of the condition I am trying to predict using machine learning. So far, the dataset is not proving useful for predicting the target variable and is resulting in models with 0% recall and precision, probably due to the scarcity of the minority class...
While trying to learn Bland-Altman analysis, I came across a situation that confused me a bit. I can understand upper (mean + 2 SD) and lower limits (mean – 2 SD), but a single limit of agreement (LOA) value is reported in an article. "The 95% limits of agreement (LOA) of the "x value" between "a method" and "c method"...
I'm working on reusing the paper Pixel2Mesh++: Multi-View 3D Mesh Generation via Deformation, which deforms a 3D mesh to make it fit some 2D images, in another scenario than the original one. The loss function is comprised of four terms : the chamfer loss, the cosine loss, a Laplacian regularization and an edge length ...
I am an agricultural genomics student and I need help understanding this table of statistics from a study of 1340 cows. can you please explain to me what it means when the mean value is 0? and how to interpret its standard deviation in this case?
The Context My dataset consists of 68 groups, each with 4 data points inside it. As means of a robustness test, I am looking to see how the type of average/mean I use impacts the analysis that I will make. In this case, I am using five types of means which are (1) a harmonized mean, (2) a geometric mean, (3) an arithme...
$\begin{equation}\begin{split} X & = u_{1} \\ Z & = a X + u_{2} \\ Y & = b Z \end{split}\end{equation}$ $u_{1}$ $u_{2}$ $X(u)$ $Z(u)$ $Y(u)$ $Y_{0}(u)$ $Y_{1}(u)$ $Z_{0}(u)$ $Z_{1}(u)$ 0 0 0 0 0 0 ab 0 a 0 1 0 1 b b (a+1)b 1 a+1 1 0 1 a ab 0 ab 0 a+1 1 1 1 a+1 (a+1)b b (a+1)b 1 a+1 Assuming that a=1, ...
So, let's start stating that I already read both Why KL-Divergence uses "ln" in its formula? and What is the role of the logarithm in Shannon's entropy? ... However, I still have no intuition behind the use of $\log$ in the formula. In particular, we can se the KL as the following formula: $$ D_{KL}(P\mid\mid Q) = \in...
I can't find any no matter how hard I google. Every search result just tells me either how to calculate it on excel or explains what the p value is.
I have the following time series that contains the past 12 months data as well as data for the 24th month:- Time Sales 2021-06-30 0.00 2021-07-31 64.40 2021-08-31 82.61 2021-09-30 93.37 2021-10-31 97.74 2021-11-30 98.56 2021-12-31 103.01 2022-01-31 104.97 2022-02-28 108.55 20...
I am working on a sequential estimation problem that involves a Bayesian update to a multivariate Gaussian prior from a measurement with Gaussian noise. Specifically, I have a mean vector of length n and covariance matrix of size (n,n) generated from some data, but without an assumed analytical form of the covariance f...
My question is pretty straightforward... Logistic regression returns a non linear transformation of an affine transformation of the input data, that appears to be in $(0,1)$... my question is then, who are we sure that this is not just a number between 0 and 1, and instead is $P(y=1|x, w_{model})$? I mean, in instead o...
This is a somewhat broad question that occurred to me regarding the nature of memorylessness. Namely: Is there utility in considering systems which are themselves not memoryless, but then expanding them by "hidden" dimensions to obtain memorylessness? As an example: If we consider, say, a ball thrown through the air, a...
I try to apply GPR in a blackbox HPO question. My input will have 6 dimensions like X=[x1,...x6]. The implementation is quite straightforward with sklearn with a Matern core. currently, I collect data from online result, and keep adding into training data and fit on training data. Based on the fitted one, get max point...
I am comparing sperm motility between 2 sets of samples (2 groups). Motility just means weather the sperm are alive or not, in this test I am just looking at that. If its moving, then its alive (I have the motility values as percentages, for example an ejaculate from 1 person might have 20% motile sperm and 80 immotile...
I am attempting to simulate data for a logistic regression model testing a continuous interaction with a three-level categorical factor. However, I am encountering a little bit of difficulty. When I simulate the coefficients repeatedly, I do not see to return the same odds ratios as I input. I am attempting to create a...
Say I have a linear, cross sectional relationship - $y_{i}=x_{i}b+e_{i}$. Where $E(e_{i}|X_{j})=0$ for all relevant $i,j$. Given this, one can prove that the OLS estimator is unbiased. However, consistency requires us to use the law of large numbers on the samples $x_{i}$ - because we assume that $E(xx')$ is proxied we...
I created a naive Bayes model and generated this lift chart . Is it possible that my model could underperform the naiveBayes rule?
I try to understand the significance in statistic. I have a simple problem but I don't have any idea how to approach it. I have two candidates. I asked 100 people for their choice. 55 people chose candidate A and 45 chose candidate B. The question is if I can determine a winner at significance level α = 0.05. What woul...
Suppose in a randomized control study, we assigned each individual to one of two interventions (A or B) with equal probability. And suppose for the sake of argument, there is complete balance in characteristics in the two groups after randomization, so individuals are indeed exchangeable for all intents and purposes. S...
I have thw following data representing the number of bacteria detected in wastewater. I would to model the growth overtime. Here is the data structure(list(ID = 0:88, A = c(1610000, 7110000, 5530000, 8220000, 10800000, 335000, 350000, 847000, 342000, 286000, 330000, 1300000, 1330000, 1360000, 3020000, 3330000, 887000...
I'm confused on why anyone would appeal to asymptotic normality of mle, $$\hat{\theta} - \theta_0 \rightarrow^D N(0,I^{-1}(\theta))$$ When we can simply invert the likelihood ratio test $$L(\hat{\theta}) - L(\theta_0) \rightarrow^D \chi^2_1$$ to obtain a $(1-\alpha)$ CI. Is there a situation where this is not a good id...
I was reading a paper and I saw that they run a 3-year rolling autoregression for 20 years (using for example 2013-2016 as trailing and 2016-2019 as forwarding) and got only one beta coefficient and one t-value. I've been looking for a way to do that, but haven't found anything. So, my question is how it's possible to ...
It's pretty known that when dealing with models (without regularization) the main assumption is $n >> p$ where $p$ is the number of features in the dataset Let's suppose that we have 1.000.000 samples with 500 features. Then, the closed form of the perceptron/linear regression is valid since $X$ is most likely invertib...
Here, I want to estimate the p-value using randomization. Tests of correlations involving patterns like Y (a function of X) vs. X involve a shared term and the X term. Here I want to randomize (999 times) the non­shared variable while keeping the shared variable constant (e.g. I randomly shuffled X, not Y). Then I esti...
Let's say we have two real valued data sets $x$ and $y$, both of length $n$. I do not want to make any further assumptions regarding these data sets. We're interested in their correlation. For testing whether it may be zero, we can run a permutation test. It should be enough to keep $x$ fixed and just permute $y$. Now ...
I am working on some TV series data, so the number of records is very limited. I have 58 instances, one for each existing episode, which I have randomly split in 45 and 13. The main goal is to make a classification over five classes. In order to make everything even worse, the data was unbalanced: Feature Dim -----...
I am using coeftest to run z- and t- tests on a few different pieces of data. The output comes in this form: fit <- lm(dest_flood ~ type_flag, data = runsample) coeftest(fit) t test of coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.0412 0.0162 2.54 0.011 * type_flagprox ...
I previously posted a question about comparing distributions of categorical outcomes between groups. I haven't found a good answer to the time-dimension part of it, but tried going with simple χ2 for each time period as a starting point, to compare whether the distribution of outcomes (3 levels) is the same between com...
Given $X_1,...,X_n$ ($n\geq 2$) are iid and each have density: $f_X(x) = \frac{c^\theta \theta}{x^{1+\theta}}\mathbb{1}(x> c)$ for known $c$ and $\theta > 1$ then we can easily find the first moment which is $E(X)=\mu$ given by the integral $\int_c^\infty x\frac{c^\theta \theta}{x^{1+\theta}} dx$. This value is $\mu = ...
Let X denotes the number of successes in n trials and p is the probability of success. Then, X ~ B(n, p) and EX = np, VarX = npq. If n is really large (e.g. n > 20000) then it seems also reasonable to calculate the expected number of successes to be λ = np and model X as Poisson(λ). Doing so we find EX = VarX = λ. The ...
The blog post the softmax function and its derivative explains the following: Imagine that each input has $N$ features / pixels / etc. Imagine each input can be classified into $C$ classes Let the weights be $W$. The weights will have dimension $N$ by $C$. Each column are the weights for a single class We know tha...
I am conducting a discrete-time hazard model where the outcome being analysed is time to drop out of treatment during a 12-week clinical trial examining the effect of an agonist drug on days of illicit drug use. I am examining the influence of nine factors on whether and when participants drop out of treatment. The out...
In a block randomized experiment say of 4 individuals split into 2 even blocks with 1 individual in each block getting assigned to treatment and the other control, how many possible unique assignments are there? My initial thought is that first there are ${4 \choose 2 }*\frac{1}{2} $ ways to assign the 4 individuals in...
I would like to measure the within group variation of some values. I understand the calculation behind that process but is there any statistical test that determines yes this variance is significant? A chi square test maybe? I don’t want compare between groups, that would simply be an anova. I am strictly focusing on w...
Suppose I had two statistics and I were to construct confidence intervals off the two statistics, and that they overlap. From what I understand, we cannot make a statement about the difference between the two statistics in terms of significance. Would this statement rely on the underlying distributions of the two stati...
I am trying to do a blackbox hyper-parameter optimization with GPR. To achieve I use GPR with Matern core with sklearn. Now I hope to know whether it fitted well, or whether it is over-fitted or under-fitted. Is there any way to do that evaluation? Also I use EI(expected improvement ) as acquisition function. Is it mea...
Was the randomization successful in the table below? Why or why not? and How does one get to know this?
Suppose I have $N$ samples, each having a relative weight of $w_1, \ldots, w_N$. Assume that the largest weight is $10,000$, while the smallest weight is just $1$. Suppose I wanted to get $m\leq N$ samples. If we were to sample this by weighted sampling, such that the largest weight is 10000x more likely to be chosen t...
I am trying to simulate calculating Average Marginal Effects on a basic linear regression with interaction on a binary variable and compare the empirical standard deviation I get from simulations and the analytic standard error of the Average Marginal Effect I calculate using the Delta Method. But I keep getting a stan...
I am working on gut microbiome data (counts) and I came across a paper where they are trying to predict bacteria counts in time using a linear regression model with Poisson distributed error term. I am not sure if I understand their motivation correctly. So their equation is y = a+BX+e, where y is the number of bacter...
I have an imbalanced multi-class dataset, and am under/over sampling to balance it out. My questions is when should I do this resampling? Should it occur before creating the test set, before creating a validation set or afterwards? <--- (here: resampling of whole dataset) split train/test ...
I was reading about the difference between discriminative and generative models, and I read that Discriminative models learn only the boundary between classes hence they are not able to to create new datapoints. The article states, if we use a generative algorithm, for instance naive bayes, we can create new data poin...
I have a StyleGAN model for which I want to manipulate some properties of the generated image, e.g. eyes being opened/closed [1]. I finetuned a classifier (using pretrained ConvNeXt) on subset of 500 samples with closed eyes and 500 samples with opened eyes. My data is not very diverse but I also used lot's of augmenta...
The data looks at abundance vs rainfall. Abundance peaks at low or high rainfall. Fitting a quadratic creates a false peak at intermediate rainfall. What's the best type of regression to fit here? What type of test can I do to confirm this bimodal peak? I believe diptest is useful for a distribution not necessarily a ...