instruction
stringlengths
9
38.7k
I study the impact of a set of variables on the number of farm workers on long-term contracts. I have a panel with 8,000 geographic units and 6 years. I am particularly interested in one variable, pastoral, which measures the share of land, used for pastoral agriculture. The coefficient for this variable is positive in...
I'm reading the vignette for fixest After fitting this model for trade between countries: $E\left(Trade_{i,j,p,t}\right)=\exp\left(\gamma_{i}^{Exporter}+\gamma_{j}^{Importer}+\gamma_{p}^{Product}+\gamma_{t}^{Year}+\beta\times \ln Distance_{ij}\right)$ where $\gamma$ are fixed effects, we extract the fixed effects and w...
I am writing a paper for a journal. I have been asked to calculate the statistical power of my study. I have zero idea about how to do that. I am an engineer and never cared about this kind of analysis, but others do. I was told to use GPower software for this, however, I don't know where to begin. I have a study with ...
Ratgrp stands for lung function (FEV1/FVC)*100 and it has two categories: 1: Lung function less than 70 2: Lung function equal and higher than 70 smkgrp stands for smoking group and it is also categorically represented as: 1: Nonsmokers 2: Ex-smokers 3: Smokers Based on logit differences, how many odds ratios (ORs)...
If I have a mean of 15 and median of 10, is there a term for the difference between these? Can you use this difference of 5 for anything valuable statistically?
Facebook's Prophet is a popular modelling choice for time series forecasting in production due to many steps being automated (and thus convenient). This can sometimes lead to over-reliance on it when there are more reasonable mathematical alternatives. One example that can arise is when the true data-generating process...
I built a random forest regressor and used gridserachCV to tune hyperparameters. from sklearn.model_selection import GridSearchCV parameters = { 'n_estimators':(1, 10, 30, 100), 'max_depth':(4,5,6,8,10), 'min_samples_split': (2, 4, 8), 'min_samples_leaf': (4,8,12) } model = GridSearchCV(RandomFo...
I have a panel dataset with 8000 units and 5 years. I use 10 explanatory variables, and 3 of them are time-invariant. Initially, I expected the fixed-effects regression to drop them, but feols() does not do this. This is the code I use: {mod6111 <- feols(trans ~ wheat + pastS + horS + lpd + tri + henley + city + ...
Suppose: \begin{equation} X \sim \mathcal{N}(X, \mu, \Sigma_x) \text{ st. } \Sigma_x \sim \mathcal{IW}(\Sigma_x; \Psi, v) \end{equation} Where $\mathcal{IW}$ is the Inverse-Wishart distribution. This gives posterior predictive: \begin{equation} X \sim \mathcal{T}\left(X, \mu, \frac{\Psi}{v - q + 1}\right) \end{equatio...
Suppose we have some data sample $x_1, x_2, ... x_n$ that came from some true probability distribution function $f(x; \theta)$. Based on this sample, i am interested in estimating $\theta$ using Maximum Likelihood Estimation, but I incorrectly assume that it came from some distribution $g(x; \theta)$. I have the follow...
I have an odd scenario in my data analysis and I'm not sure what is causing it. I have a large set of tuples $(Y_1, X_i) \dots, (Y_N, X_N)$ where $Y_i$ is a random vector from some arbitrary distribution (might not be normal) and $X_i$ is a vector denoting group membership such that $X_i \in [0,1,2]$. The length of the...
I have hard time on estimating the following integral on convex domain ($\mathcal D$) using Monte-Carlo approximation. $$a = \int_{\mathcal D} dx f(x;\mu,\Sigma) $$ where $x \in \mathbb R^d$ and $f$ is Gaussian pdf. Note that this integral might not have a closed-form since $\mathcal D$ can be, for example, intersectio...
The way I see it, in OLS, we are geometrically fitting a line of best fit to some data. Unlike MLE (even though OLS and MLE give the same regression estimates for simple linear regression), there are no underlying probability distributions. So for simple linear regression in OLS, why do we still check if the residuals ...
I am using the ordered statement in my CFA model when running lavaan in R, but I couldn't figure out how to read the results. I am hoping to know (1) which indices I should report (standard or scaled?) and (2) any recommended references for result interpretation. I'm running a CFA ($6$ factors, $35$ ordinal observed va...
I am trying to fit a ARMA(p,q) model using the exact methods where the exact maximum likelihood or conditional sum of squares likelihood is maximized. This was available in the statsmodels library in version 0.11.1 (https://www.statsmodels.org/v0.11.1/generated/statsmodels.tsa.arima_model.ARMA.fit.html), where the meth...
I recently read this paper, which describes a generalisation for statistical exponential decay models used in ecology. Essentially, the parameter $k$ of the exponential decay function $f(x) = ce^{-kx}$ is recognised to be dynamic relative to $x$ rather than constant and modelled by a nested function $g(x)$ rather than ...
I have a data-set of weight ~ temperature that was measured in 3 species (A-B-C), each consisting of 2 genotypes (a-b) that were grown in 3 soils (1-2-3) each. Weight ~ temperature for each Soil x Genotype x Species combination (18 possible combinations in total) can be fitted as: m = nls(weight ~ Asym/(1 + exp((xmid-t...
I work in a team where everyone uses Stata, and I work in R. I have created an efficient workflow that allows me to export the results quickly. The problem I ran into was when implementing the double selection of LASSO. glmnet does not let you work with variables that have missing values. I tried to keep only those var...
I have made a Cox PH model for prognostication of a favourable outcome (with competing events being death). I now have an independent set of data to do external validation on this model. The primary purpose of the model is risk stratification. As I have read, I could construct a Prognosis Index using the linear predict...
At the moment, I have a task which includes solving for the variance in the following equation (denoted 'sigma' in the expression below, equation 10). However, given the nature of the equation, I cannot figure out how to solve for sigma. I'm not sure of the dimensions of the matrices, but I think A, sigma and omega mus...
I am trying to fit a survival model in a loop between a set of ~3000 proteins and a disease outcome, with technical covariates of those proteins that are important to their measurement/estimation as covariates. The model, generally, looks like this: survreg(Surv(time_to_event, diagnosis) ~ Age + Sex + Location + Ethnic...
I have a dataset that recorded the contact patterns for each participant during three waves. For example: matrix_base_1 means that Participant 1 met with one person aged over 70 at location two, and met with three people aged between 30 to 39 at location three, and met with three people aged between 50-59 at location t...
I'm trying to calculate HR with IPTW for the effect of a drug, but no event occurs in one treatment group. Here is a reprex (the only difference is that no weights are included here for simplicity) set.seed(1) summary(time <- runif(100, 0, 100)) table(drug <- c(rep(0, 50), rep(1, 50))) table(event <- c(sample(0:1, 50, ...
It is a forecasting problem. I need an evaluation metric which penalizes under-predictions more than over-predictions. Also I want it's range in certain interval (say 0-100), so that it becomes easier for comparison of different models. What could be the possible eval metrics / solutions to this? I've tried MSE, r2 sco...
I have run tests for stable seasonality and moving seasonality. The tests are unable to find presence of seasonality in the time series I am working with. I am wondering if I can still seasonally adjust the time series? What would be the potential issue in seasonally adjusting a time series if there is no identifiable ...
I'm looking at the SAMHSA Mental Health Client-Level dataset. I did some t-SNE plots (dropping irrelevant cols, normalizing some, one-hot encoding some) of 500k rows out of 6.5mil. I'm trying to do classification, predicting the diagnosis from the other columns. I trained a RandomForestClassifier which is 36% accurate ...
I currently have the correlation/covariance matrix for a set of variables, as well as the output from a regression analysis, but lack access to the underlying raw dataset. Given these constraints, would it be feasible to conduct a comprehensive analysis of endogeneity? If so, I would greatly appreciate guidance on meth...
I have created a de novo RNA-seq assembly using Trinity with samples from 4 treatment groups and then ran a DEG analysis on each pairwise combination of the 4 groups. Then, I looked at how DEGs that overlapped between two of the comparisons were correlated. I used a couple of different ways to do this but one of the wa...
I have balanced panel data for 14 industries and 21 years. The data consists of several variables with annual observations. Based on theoretical reasoning and visual data inspection I assume that there are unobserved time-invariant individual (industry) effects that are likely to be correlated with the explanatory vari...
I've been working through Causal Inference in Statistics: A Primer and have hit a bit of a roadblock in my understanding when on page 24 the authors introduced the following notation for the partial regression coefficient between Z and Y when controlled by X: $$R_{ZY\cdot X}$$ I feel that my difficulty understanding t...
Suppose we have the following Poisson regression model: $\log(y) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_1 x_2$ Where, for example, $y$ is the number of children in a family, $x_1$ is the years that the mother spent in formal education, and $x_2$ is the years that the father spent in formal education. Suppo...
Within my dataset, I employ a variable termed "Instagram reach," quantifying the audience size exposed to a particular post. Simultaneously, "engagement" denotes the count of distinct individuals actively interacting with said post. The established understanding is that engagement is intricately connected to reach, sub...
I realize that subsequences won't be low discrepancy, but if I know how many samples I want and that I am operating on the unit hypercube, why not just grid search as the low discrepancy sequence in quasi Monte Carlo methods? Like... grid search is in some sense going to be the lowest discrepancy sequence I could use g...
I am working on a homework assignment and have been stuck on it for a while and would like to seek for some clarification. Given a likelihood function $y_i|\theta,\sigma^2 \sim N(\theta,\sigma^2)$ for $i = 1,...,n$, where both $\theta$ and $\sigma^2$ are unknown. The conjugate normal-inverse-gamma prior is used $p(\the...
This is more of an advisory question. I am researching the performance of the adaptive Lasso on multidimensional GARCH MIDAS data under regime switching and other confounders for my bachelors. I know that the Lasso estimates are biased but I thought for the adaptive lasso estimates: "This further encourages the use of...
I am currently reading up on KNN-regression. As I understand it the value of a given response variable $y_{i}$ at some point $(x_{1,i}, x_{2,i}, x_{3,i}...)$ is estimated as the average over the k-nearest neighbor values: $$ y_{i} = \frac{1}{k}\sum_{j}^{k}y_{j} \ \ \ \ (1), $$ with the nearest neighbors determined...
I am trying to understand how simulation plays a role in checking model assumptions when the residuals do not have exact distributions. I took this Poisson Regression Model: $$\lambda_i = e^{(\beta_0 + \beta_1X_i)}$$ $$P(Y_i | X_i) \sim Poisson(\lambda_i = e^{(\beta_0 + \beta_1X_i)})$$ How can I see if the model assump...
I have fitted a generalized linear mixed model using glmmTMB on the data (110 observations, balanced data) collected from an observational study to understand the effect of each predictor (variable) on response (variable): fit <- glmmTMB(y ~ x1 + x2 + x3 + x4 + (1 | group), family = ..., data = ...) Using DHARMa resi...
In the setting of Huber's paper, the true density is $y\sim f_0$, and the density under consideration is $y\sim f(\cdot|\theta)$. If we choose to maximize $y\sim f(\cdot|\theta)$, we will find that $\hat{\theta}\rightarrow \theta_0$, which is the parameter which will minimize the KL divergence between the postulated de...
In a positive tailed distribution (i.e. Poisson/ exponential shape), the probability a patient can have $3$ tests is $0.9$, where the chance of using $4$ tests per patient is $0.05$, $5$ tests $=0.03$ and $6$ tests $=0.02$ [these are manually input with no formula, based on empirical knowledge]. What formula can I use ...
I am looking to compare the differences in linear regression slopes between two datasets and at first I used a two sample t-test. However, when I force the intercept through $0$ for both regressions (necessary for this work), the standard error of the slope coefficient shrinks by over an order of magnitude, and t-tests...
I understand the equation for observed $Q$: $$ \Large Q = \sum_{i=1}^k \frac{1}{V_i} (Y_i - M)^2 $$ But I don't understand why the expected $Q$ is just the degrees of freedom ($k - 1$), where $k$ is the number of studies. The reason I kept seeing is that because $Q$ is a standardized metric or because we divide each de...
Consider two ways of interpreting or displaying the coefficient estimates in a regression. For a small increase in X, Y decreases by the coefficient estimate amount. For a one standard deviation larger increase in X, Y increased around some percent relative to the mean. Which interpretation is more insightful and w...
This is how my model is written in R: glm(formula = prop ~ A * B * C * D , family = quasibinomial, data = data, weights = w) This is a quasibinomial generalized linear model used on the logit scale regressing on a saturated, full factorial model. How do you write the statistical notation of this model?
Consider the Matrix Normal Distribution. My first question is: how do we interpret the entries $\textbf{X}_{ij}$ of the random matrix $\textbf{X}(n\times p)$? My second question is: how do we interpret the so called covariance matrices $\textbf{U}$ and $\textbf{V}$? Finally, my third question is: how do we calculate th...
I would like to ask a generalization of this question: How to perfectly overfit neural network to memorize input? Are there any scaling laws for neural network memorization? In other words, if I have M input nodes and N possible output nodes, what is the minimum number of fully connected neurons which can map any M to ...
I have a panel dataset and my dependent variable is the logit-transformed share of farm workers on long-term contracts. I am particularly interested in the effect of pastoral focus in agriculture, represented by variable pastoral. The difficulty is that the impact of this variable changes over time. I have two models, ...
I am analyzing a dataset where the outcome variable is "teenagers' recreational drug use in weeks." This is continuous and highly skewed outcome variable. While the range spans from 2 weeks to 100 weeks, most teenagers reported experimenting with drugs for durations between 2 and 25 weeks, with very few values beyond 2...
I have a set of different gamma regressions that I ranked with AIC (with help from kind folks on CV) that show the effects of year (2019 and 2021) on "value" (an area), but I am struggling to interpret the predictors for each model. I know this has been asked and answered elsewhere, but I think I need it explained with...
I'm trying to run a binary logit regression on hierarchical data using python, and I cannot find a way to do that. Any help is appreciated. The dataset has the following variables: Accuracy, the binary response variable Mask, the type of mask used, a categorical variable with 3 categories Position, where on the screen...
The problem is here https://en.wikipedia.org/wiki/Sleeping_Beauty_problem The solutions given for heads when waked are 1/2 or 1/3. I can easily understand 1/2 and I present my reasoning below. Is there a similar simple reasoning for 1/3? As I understand it, a single trial is from Sunday to Wednesday. During this tri...
I am conducting a multilevel mediation analysis with a multicategorical X (4 levels from a 2-by-2 design) for which I want to apply custom contrasts that code two main effects and an interaction. For a stacked dataset with two indicator variables (Sm and Sy), a numerical outcome (Y) and mediator (M), I have following "...
I have a question about how calibration weights can be used to sufficiently correct for unit non-response bias. Suppose the sample is s and the response set is r. Calibration is applied to the response set r to generate weights that are as close as possible to the original sampling weights and meanwhile can reproduce t...
I would like to know how the constant -1.694 was gotten in the image below by hand. The outcome variable is contraceptive usage, while the predictors are age group and desire. For a single predictor, I can get the constant by just dividing the number of women using contraceptives and taking the log using one of the fa...
What: I'm trying to minimise the Huber-Loss for a linear regression using Stochastic Gradient Descent from scratch. Problem: It seems like that the coeffcient $m$ doesn't get optimised, therefore the fitted line is nowhere near the OLS regression line which serves as reference. Expectation: Optimised coefficient result...
Cross-posted in SCSE and MMSE I am experimenting with a new MCMC protocol and new research. In the context of Monte Carlo simulation, a "state of equilibrium" refers to a condition where the system being simulated has reached a stable configuration or distribution of properties that does not significantly change over t...
I'm analysing some data from a pilot study using longitudinal linear mixed models. Because of conventions in psychology it's common to report effect-size in Cohen's $d$ for interpretability. I found this post which led me to the package EMAtools and the function lme.dscore(). To help clarify my question, it may help wi...
In a machine learning application, I have the following boolean implications $$\forall\,x,y:I_b(x,y)\rightarrow E_b(x,y),$$ where $I_b(x,y)$ being true means $x$ and $y$ are isomorphic, and $E_b(x,y)$ being true means that the distance between the embeddings generated by a model of $x$ and $y$ is zero. Now, I want to s...
We cannot classify the points of the XOR problem with a single perceptron in the hidden layer. However, we can achieve this by using two perceptrons in the hidden layer and one for the output layer, without using an activation function. The input layer consists of two perceptrons. With one hidden layer and one output l...
I have monthly national home price index data, from CoreLogic. Data is seasonally adjusted. But still has strong seasonal effect. Here is the plot for monthly changes. from statsmodels.tsa.seasonal import seasonal_decompose # Decompose the time series to find seasonality decompose_result = seasonal_decompose(national_...
Suppose $N$ people each generate a random number $[1,\cdots,N]$. On average, how many pairs will there be, given that a pair means that person $i$ generated $j$ and person $j$ generated $i$?
Westfall and Young provide a method for adjusting $p$-values following multiple hypothesis tests. I have two questions about when this method can be applied: Can the corrected $p$-values be computed when the (uncorrected) $p$-values have themselves been computed using bootstrapped standard errors? I would assume that ...
When we do variable selection, theoretically we fit a model for each selected subset of variables. We can then compare all models and select the best. There are various statistic to help selecting best model, such as Bayesian information criterion, adjusted R2. My question is that why can't we just use the RSE or R2 th...
I'm trying to add to the following model the z-score value and its confidence interval after using the emmeans package. The model: m <- lmer(mode_usual_dic ~ intervention * time + fas + distance_walking + gender + (1|center/ID), data = df) The function: emmeans2 <- function(model, specs, by) { em1 <- emmea...
I have a lot of effect sizes, estimated from the same linear model, but where the tested explanatory variable is different. These models are run in two different groups, but it is the same model and the explanatory variable ($x_1$) is the same. Group A: $$ y_A = \alpha_A + \beta_{1A}x_{1A} + \beta_{2A}x_{2A} + ... + \e...
I have time-series data which is a recording of neural activity in a neuron before and after some stimuli (I know the specific time when the stimuli was introduced). I'm considering using the two-sample K-S test on the distributions of neural signal strength before and after the stimuli to check whether there is a stat...
Kindly help me with the difference between a distribution model and regression model as related to randomness
I'm trying to show that if $X_1, \cdots, X_n \stackrel{iid}{\sim} N(\mu, \sigma^2)$ with unknown $\mu$, $\sigma$ and the prior $\pi(\mu, \sigma^2) \propto 1/\sigma^2$ then the posterior distribution of $\mu$ is given by $$\frac{\sqrt{n} (\mu - \bar{x})}{s_{n-1}} \sim t_{n-1} $$ where $\bar{x} = \frac{1}{n} \sum x_i$ is...
Randomization has already been executed and two groups have already been assigned, where treatment observations and control observations are captured by df1, df2 respectively. Note: Treatment exposure has not been administered yet. Randomization appears to have done a good job despite the heavily tailed distribution, b...
I am currently studying support vector classifiers (SVC), more specifically, the solution to the Lagrangian (Wolfe) dual function with the help of the book "The Elements of Statistical Learning" by Trevor Hastie, Robert Tibshirani, and Jerome Friedman. It is said that from the Karush-Kuhn-Tucker (KKT) conditions, we ca...
Assume we have two variables, Height and Weight. Each is normally distributed, and they are correlated. Assume the correlation was 0.75 for a specific example. Given a particular Height, can we estimate the weight, in the form of a mean and standard deviation? Or is there not enough information?
I have a large data set (27k) There are 63 variables of interest. I attempted PCA as a dimensionality reduction strategy. The items are scored on different metrics ranging from dichotomous variables to variables with 7 response selections. There is also a lot missing data. When I try to run PCA (in SPSS) I get an error...
Good afternoon, I would like to better understand how the cluster method from the lifelines Python package differs from the Andersen-Gill method. Based on the definition of each (see below), the cluster method seems more conservative vs. the Andersen-Gill method, given the former does not treat recurrent events as inde...
I am looking to analyse the impact (causal effect) of a conflict on firm valuation (using daily prices) for a sample of around 800 firms (I currently have this data over a sample period of around 365 days). I want to analyse the overall impact but also identify the difference in impact between the industries (maybe som...
I am using the RFpredInterval package (specifically the rfpi function) to obtain prediction intervals for a random forest. I would like to estimate the confidence intervals for my test data set by taking the standard deviation of data points in same terminal node as each test data point (also referred to as BOP data). ...
I'm working on the SAMHSA Mental Health Client-Level Dataset. I'm trying to train classifiers to predict the disorder given the rest of the columns. There are 13 binary disorder columns (bipolar, schizophrenia, ADHD, etc.) based on diagnoses. Code: https://github.com/jacksonwalters/ml-examples/tree/main/mental_health_c...
I am doing a study with an IV design. In my setting, the IV is only conditionally random within a year and within a cohort. In this case, do I simply include year and cohort as controls in the IV regression? To be clear, the following is the regression I am currently running: iv_model <- ivreg(y ~ D + factor(year) + fa...
I am trying to see the relationship between OLS and Method of Moments. Moment Equation: For a discrete random variable and a continuous random variable centered around some point "c": $$E[(X-c)^n] = \sum_{x \in X} (x-c)^n \cdot P(X=x)$$ $$E[(X-c)^n] = \int_{-\infty}^{\infty} (x-c)^n f(x) dx$$ Method of Moments: For a $...
I am currently interested in the correlation v.s. causation discussion. I know that correlation might be spurious (see that spurious correlation website). However, as the causality is inferred from statistics, isn't there a chance that the causality might be spurious too? How should I generally interpret that? (is it j...
The context is model evaluation in supervised learning. I am coming from a numerical optimisation background. For me it is quite natural to use the loss of the model (what we optimise during training) as an evaluation metric. However it seems that it is not a common practice and Data Scientists use all sort of metrics,...
I have randomized into three groups using a randomization aid and groups were examined at 2 time points. however in the analysis found that there was a significant difference at baseline in one of the groups. the data is normally distributed, with the way the study was conducted this difference was not detected before ...
I am looking how epigenetic age associated with toxic element exposure in four different road buffer zone (1000m, 2000m, 3000m, &4000m) using robust linear regression. I can run robust linear regression without interaction term, but could you please help me how to run robust linear regression with interaction term (Hg*...
Background The Lotka-Volterra model is the starting point for any model of ecological dynamics. It can be described as a set of two ordinary differential equations (ODEs) with varying complexity. McElreath (2019) describes the simplest form (similar to the linked Wikipedia article) as $$\frac{dN_1}{dt}=N_1(\alpha-N_2\b...
I am reading Wasserman's All of Statistics. In Chapter 13: Linear and Logistic Regression, when deriving the least square estimates for simple linear regression, we have the data $(Y_1, X_1), \dots,(Y_n, X_n)$. Wasserman denotes the sample mean of the covariates $X_i$ as $\bar{X}_n$. The sample mean for the response va...
Consider that you have a multilevel model measuring students' mathematics knowledge. The students are nested within classes, and classes are nested within schools. Additionally, we want to examine the effects of whether or not the student is taking extra out-of-school mathematics tutoring. It's not the case that some c...
I am fitting linear mixed effect models with random slopes (lmer4 package), and I recently attempted to add a quadratic term due to some theory behind (the quadratic ends up also in the random slopes, see models below). I now realized that fitting the model with orthogonal polynomials leads to a model that converges, w...
I have an algorithm to which I supply a specific input. The algorithm is deterministic, and will always yield the same result. I also have a random algorithm that uses random choices to speed up execution. It might compute a different result given the same input, but will in general not. If it computes a different resu...
Let's assume I want to calculate the ATE for a certain deterministic treatment, such as surgery (i.e., one either had it or not), and I'm interested in a per-protocol analysis. Note that those who had surgery will always be considered as "treated", but those who did not have a surgery may break their protocol by having...
In one part of this tutorial, you could find the following lines: for layer in np.arange(len(A) - 2, 0, -1): Here, we start looping over the layers, backwards, to build the chain of derivatives. He stated the following with respect to not taking into account the last two layers: # the last two layers are a special cas...
I am confused about what the avg_comparison function does in the marginaleffects package. library(lme4) library(marginaleffects) I define a model model <- glmer(y ~ + t + a + a:t + e:t + e:t:a + (1|participant_id)...
I am working with data related to time of event for some physical product. the data is current status data, also sometimes called interval censored type II data, which mean i only have one inspection per data point where I know if an event has happened or not. This means all my data points are either left censored (eve...
Essentially, I'm writing a research paper, and I have these subjects grouped by their cancer stage from I to IV (ordinal scale) and whether or on they're positive for a specific marker (nominal scale). I am trying to determine if patients that are marker positive will be more likely to have a higher stage cancer. I hav...
I am doing a randomised controlled trial and I need to use a GEE model for my statistical analysis. I have two groups (intervention and control) and I collect injured subjects every month (during 7 months) across a whole season (either injured or not. i.e. injury prevalence), and in the end I want to compare both group...
I have a small dataset, and I am checking the abundance of two components by calculating their percentage abundance. When I check the distribution of the continuous variables, they are mostly skewed towards zero and hundred. I wanted to ask which glm would be appropriate for such data. hist(component1) fitdistrplus::d...
As far as i know theoretically our model tend to be drifting/shifting as time goes on and need to be retrained. i wonder if its acceptable that instead of retraining the classification model, we keep everything of the model as it was and only adjust the probability threshold based on latest/newest data?
I've performed an experiment looking at whether the orientation a plant is held in (upright, sideways or downwards) will effect the behaviour of two aphid species (S. avenae and M. dirhodum) on whether they prefer to face the base of the plant or the top of the plant at each orientation or whether their orientation is ...
Tt might be a silly question, but it is my first time doing a conditional logistic regression model in a case control study. For one table, we are stratifying our model by a variable with 2 levels. Lets say this variable is "stratifyingvar" and is basically what the cases and controls reported in their surveys. My ques...
In an anomaly detection task, I have a data stream where each new data point is generated every 5 minutes. When a new data point arrives, I compute the matrix profile using Stumpy's stumpi function. An anomaly is reported if the value of the matrix profile exceeds a certain threshold. The issue I encounter is that when...
I have used a linear mixed model for a set of data with children participating in experiments 1-4 times. The number of times they participated varies. Some kids skipped or participated in one or two experiments, etc. We want to use the data as much as possible because it is quite hard to access these kids. How should I...
I have dimensional data collected from a product every 1 second. The product runs can often last days and analyzing the entire dataset can be difficult due to the large amount of datapoints. The process doesn't change at time periods less than 1 second, so I'm confident I don't need that much data. There are various wa...