instruction stringlengths 9 38.7k |
|---|
I have generated results for Cox proportional hazards model, and Fine and Gray competing risk model, which gives me the hazard ratio and sub-distributional hazard ratio for each of the independent variables. Is there a way to compute the cumulative incidence function for each of the independent variables from the estim... |
I have 3 studies. For each study I perform the following multivariate linear regression:
y ~ x1 + x2 + x3
I want to perform a meta analysis on the coefficient for x1 to understand the true effect of x1 on y across all studies.
Ideally, in python/R.
Would really appreciate any help, thanks!
|
I am looking for a rigorous book that clearly defines and explains terms such as ‘endogenous variable’, ‘exogenous variable’, ‘multicollinearity’, ‘heteroscedasticity’ and other such terms whose names I don’t even know. I am NOT looking for an encyclopaedia, I am looking for a rigorous treatment that starts from the be... |
I read about the time complexity of Decision Tree Algorithms like CART, and understand why the time complexity, with sorting, can be approximated as $O(m n^2 \log n)$.
I will try to go through the calculation by my own words, which might help down the road of answering my main question.
Sorting $n$ elements, in general... |
I have 290 clusters made up by subjects observed from one to 14 times, and a relative large number (45) are observed only once.
I worked in R, and I considered subjects ID as random effect.
The first model I fitted is made up of fixed effects (I have 3 $\beta_s$, that is the intercept and 2 regression coefficients) and... |
I am planning a multiple linear regression model with 1 continuous dependent variable and 6 independent variables. Of these 6 independent variables, I am only interested in the contribution of 2 variables (lets call them A and B) to this inferential model; I only intend to adjust for other variables (lets call them x1 ... |
I am working on my thesis where I want to assess the reliability and validity of different regression models. I only have one data set, which means that I cannot train on one data set and test on another to assess reliability or generalizability.
I was wondering whether r-squared (coefficient of determination) is consi... |
Up to what sample size does Anderson-Darling Test gives reliable results on p-value?
As well as I have come across this statement for Anderson-Darling Test:
Small samples sizes tend to “fail to reject” just as *very large* sample sizes tend to reject the null hypothesis. Is it correct?
I have run the normality test on ... |
I have very simple data containing the proportion of daily surgical procedure cancellations (due to equipment/material shortages, case overflows, patient absconded, etc) over a 6-month period. I would simply like to test if there is any trend in these data.
After looking through CV and elsewhere, I initially thought of... |
I have some longitudinal measurement data of 15,000. I smoothed that data with B-spline smoothing and got the following curve.
I then want to quantify this curve and extract features for clustering the curve of 15,000 data.
So I will calculate the curvature to quantify the curve and add that curvature to the features.... |
I found the following formula for comparing time series
$$ S_{\mathrm{PCA}}^{\lambda}=\frac{\sum \limits_{i=1}^{k} \sum \limits_{j=1}^{k}\left(\lambda_{i}^{(1)} \lambda_{j}^{(2)}\right) \cos ^{2} \theta_{i j}}{\sum \limits_{i=1}^{k} \lambda_{i}^{(1)} \lambda_{i}^{(2)}} $$
where PCA is applied to two data sets (or time ... |
I would like to run a statistically rigorous experiment, similar to that of an E-commerce A/B test.
I want to create a checkerboard of time periods where I alternate between treatments A and B. Ultimately I care about increasing revenue.
I believe the treatment could affect any or all of the following:
number of visit... |
I am trying to prove that $E[1/h(T)]=E[T]$, where $h(T)$ is the hazard function.
Any idea?
Thank you.
|
When performing a mixed-effects analysis, one gets the mean (beta coefficients) of the fixed effects and the variance parameter for each of the random effects included in the model. Additionally, digging into the model, one can get the estimates for each of the levels in the grouping variable (I think these are BLUPs).... |
I have been reviewing the paper PNrule: A new Framework for Learning Classifier Models in Data by Agarwal & Joshi (2000) and the associated technical report. The paper outlines an approach to managing datasets with a severely imbalanced binary outcome which takes an iterative approach to maximise both overall accuracy ... |
I’d like to run A/B test to test average revenue per user (ARPU). As far as I understood, ARPU is non-binomial metric which has a distribution form looks like a very "aggressive" form of exponential. I’ll have at least 10 000 observations in each group. So, is it possible to use t-test in this case? Is it possible to u... |
Is it possible to perform a comparison to a control group with a non-parametric post-hoc test in R? I am familiar with various post-hoc tests such as Dunn and Conover, but I'm not sure how to implement a comparison to a control group using these methods in R. Any guidance or resources on this would be greatly appreciat... |
In the Maximum Likelihood section of the Deep Learning Book (Section 5.5), the dataset (examples) is denoted by $\mathbb{X} = \{\boldsymbol{x}^{(1)}, \cdots, \boldsymbol{x}^{(m)}\}$. Note here the bold letters. Then the data-generating distribution has a $\textbf{x}$ (note that the calligraphy is different) as argumen... |
I am kind of new to this matrix notation and properties so I would like to see the algebraic part of the solution it helps to understand so I appreciate your understanding.
My question is basically:
here from $y=X\beta+u$
we have that expression from GLS estimation and Central Limit Theorem.
$ \sqrt{n}\cdot(\hat{\beta}... |
I've got a data set from a timed mouse behavioral test. The test ends either when the mouse succeeds the trial or 60 seconds have elapsed. The time is recorded to failure/end. The PI thinks that it's just fine to compare the times between treatment groups. Looking over the data, about 1/3 of the total sample has a 60-s... |
This is a questions regarding the linear regression of multiple outputs with correlated errors.
Let us consider multiple outputs $Y_1, \cdots, Y_k$ that we wish to predict from inputs $X_0, X_1, \cdots, X_p$. We assume linear model for each output that $$Y_k = \beta_{0k} + \sum_{j=1}^p X_j \beta_{jk} + \epsilon_k = f_k... |
I'm working on an unbalanced dataset with three classes. The original proportions are:
class 1: 48%
class 2: 37%
class 3: 15%
First I'm gonna train a baseline model and I would like to know if I should resample the dataset before or after the training.
Another question is about the hyper parameters of the baseline mo... |
I'm wondering if it is theoretically sound to use a metric such as binary F1-score as part of my early stopping criteria in tuning a model during training. I'm working with a collection of binary classification tasks with varying levels of imbalance, some being very positive-class heavy and vice versa.
I notice that, f... |
I've been reading about how object detection models are evaluated. It seems that the metric most often used is AP. But I have stumbled upon 2 different approaches that I think mean completely different things:
In the first approach, we use different IOU thresholds for defining what constitutes a TP and FP (wrt to bound... |
Assume the following data, where the yellow points represent class $1$ and the purple points represent class $2$. I would like to know, if it is possible to build a linear classifier (sigmoid) by transforming the data accordingly?
To get some intuition for the log loss in combination with the sigmoid function, I have ... |
Suppose that I have an unfair 6-sided die. Each time I roll it, the weights for the various sides change in a deterministic way (edit: based on the results of all previous rolls). (Perhaps the weights are always 10%, 10%, 10%, 10%, 10%, 50%, but which face has a 50% chance of showing changes after each roll. But I am i... |
This is my first question, so I am sorry if there is some missing information.
I am unsure what statistical test I should use when I want to see if there is a difference from baseline to follow-up (dependent data) in how women answer the following question: “Does urine leak before you can get to the toilet?”. There are... |
I have a set of sports scores in Google Sheets. I have various subsets of scores for which I calculate the averages and standard deviations, e.g. scores by team, scores by slot, scores by the game for the team. I thought I would perform T-tests (which I barely understand) to determine if particular subsets are statisti... |
Consider you are given a dataset with x, y and y_err where y_err is the 1-sigma error you computed for y. You don't have errors for x. y(x) is a function that is decreasing and assume it has no analytical form. Now assume you want to find for which x value, y is equal to a target value (i.e find x(y_target)). This is e... |
There have been a number of papers over the past 40 years supporting either change score or regressor analysis for longitudinal observational studies.
However, recent papers (for example, Tennant et al. (2022) and Shahar & Shahar (2010)) argue change scores are not meaningful quantities and not suitable for causal infe... |
I have a logistic regression with 10 independent variables. I want that one of these independent variables is correlated with the dependent variable, others are covariants. In this regression model, p value of this variable is <0.05. However, Pseudo-R² (McFadden) of this regression is very low (<0.03). Can it prove thi... |
I have done power analysis for a chi-squared test to calculate the sample size I would need for power of 80%. I have these questions:
Have I calculated the effect size (w) correctly - 0.81?
Is a sample size of 15 required?
Would a sample size of 15 also be ok for a Fisher's exact test?
library(pwr)
c(22L, 7L, 1L, 0L, ... |
Suppose a coin is tossed repeatedly with a probability of head appears in any toss being $p,~0<p<1$.
I want to find the expected length of the initial run of heads.
Here initial run for heads means the number of heads until the first tail appears.
So if $p$ is the probability of head, then $1-p$ is the probability of... |
The OpenAI API enables classification by sampling from GPT-3 given a prompt. Is estimating posterior probabilities a more statistically sound approach? Below is a specification of what "estimating posterior probabilities" could mean here. I'd like feedback on how sensible it is (see the question at the bottom).
Definit... |
I am using a Poisson GLMM with glmer() from lme4 package in R. My data is ecological count data, and the model has one random effect (site id, because I have repeated measures) and up to twelve fixed effects (model selection will be used to determine the best combination of fixed effects).
Analysis overview: I am analy... |
I'm studying econometrics from the Hansen's book (2022).
I'm trying to understand the mathematics behind the following steps:
Let $X=(1,X_2,...,X_k)$ be the vector of covariates, and $\beta =(\beta_1,\beta_2,...,\beta_k)$ be the vector of regression coefficients.
Why do we have in the expression $[2.19]$ in the right... |
I have a regression data set with ~1000 features mapping to a single value. Neural networks are consistently 2x more accurate than linear regression, at least with the features I am using.
I am not overfitting either, as I am comparing validation and test errors, and keeping my NNs rather small.
I am wondering how to e... |
Since I didn't find any resource online, I'm asking here.
In this paper of Pereira et al.,(2007; https://doi.org/10.1600/036364407780360201), they use cross validated Canonical Discriminant analysis to test whether, from a morphological point of view, the species studied are worth to be separated or must be merged.
Is ... |
For a regression problem, where I'm doing hyperparameter tuning for LGBMRegressor, I was wondering whether I can first tune max_depth and n_estimators and then (in another GridSearchCV round) the regularisation parameters (reg_lambda, learning_rate, reg_alpha)? This will help me save time.
|
Let's consider a classical linear model $Y = X \theta + \epsilon$ with $\epsilon$ being the error vector and let's suppose furthermore that :
$\Bbb{E}(\epsilon) = 0$
$Var(\epsilon_i) = \sigma_i^2$
$Cov(\epsilon_i, \epsilon_j) \neq 0$ if $i \neq j$
Then is it true that the LS estimator for $\theta$ is unbiased ?
I tho... |
I am analysing count data (count of observations per day of certain mammal species) at 12 different sites. My dataset consists of ~120 days of observations at each of the different sites. For each site, I have a total of 12 potential fixed effects (explanatory variables) which are essentially the structural and environ... |
I have trained a CNN on one dimensional data that is the power spectral density (PSD) of a $N$ different classes of signals ($N=4$). Each of the $N$ signals has a different spectral shape (not shown here). For illustrative purposes, the plots shown below are from the same signal class. The idea is to treat this as an i... |
Suppose $\mathbf x$ is a normally distributed vector, with means $\mathbf{u}$ and covariance matrix $\mathbb C$. Suppose I draw two independent samples from this distribution, $\mathbf{x}^{1},\mathbf{x}^{2}$. I'm interested in the statistics of the overlap:
$$\phi = \frac{(\mathbf{x}^1)^\top(\mathbf{x}^2)}{\sqrt{((\mat... |
Let's say I have run a linear regression model that models the sugar content in a Jelly Bean as a function of its colour and weight:
lm(sugar ~ color + weight)
The summary of the above model outputs the following:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.07934 0.28625 0.277 ... |
At an airport there is a company that offers a specific service for travellers (there are no competitors offering the same service at the location). They performed an experiment - they temporarily reduced the price of the service (quite significantly) hoping they might achieve more sales. They have records about all sa... |
Say we have a regression of $y=\beta_1x_i + \epsilon_i$, for $i=1,...,n$, such that it doesn't have a y intercept. How would we go about working out the LOOCV error. I know LOOCV is a case of K-fold for $k=n$, but not sure how I'd go about working it out.
|
So yesterday my professor wrote the following on the board:
$$\frac{1}{n}\sum_{i = 1}^{n}\left( x_i - \bar{X}\right)^2 = \frac{1}{n}\sum_{i = 1}^{n} x_i^2 - \bar{X}^2$$
where $\bar{X} = \frac{1}{n}\sum_{j = 1}^{n}x_j$ (This is just average) and the LHS(left hand side) is just sum of squares(averaged). (Or variance from... |
I had this problem to solve:
If an insurance company has 10,000 policies, and each has 0.1
probability of making a claim, what is the standard deviation of the
fraction of policies which result in a claim?
The suggested solution was:
The standard deviation is √(p(1-p)/n) = √(0.1(1-0.1)/10000) =
√(0.09/10000)... |
On page 147 of ISLR 2nd Edition, the author is talking about LDA and comparing it to a Bayes Classifier. This leads me to believe LDA is a machine learning algorithm for supervised classification. However, in this post and various other posts online, LDA is compared to PCA as a technique for dimensionality reduction. S... |
I want to do a random-effects meta-analysis (on any programming language) on studies that report data in the following way (numbers were made-up for the example):
"Body weight went from 89.9 ± 6.8 kg to 85.1 ± 7.4 kg in the experimental group (n = 27), and from 87.7 ± 10.5 kg to 83.8 ± 10.0 kg in the placebo group (n... |
Let's say I have run a linear regression model that models the sugar content in a Jelly Bean as a function of its colour and weight:
lm(sugar ~ color + weight)
The summary of the above model outputs the following:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.07934 0.28625 0.277... |
In the Introduction to Statistical Learning p. 142 in chapter 4.4 on generative models for classification the formula
$P(Y = k|X = x) = \frac{π_k \cdot f_k (x)} {\sum_{l=1}^{K}π_l f_l(x)}$ is given to determine the probability of class $k$ given the features $x$.
I understand that the Bayes theorem states $P(A|B) = \fr... |
I'm working through the original XGBoost paper by Chen & Guestrin (2016) and I noticed they dropped a subscript i for y-hat between the first loss function and the second order approximation version...
From:
To:
Does this dropping of the subscript have any meaning? I'm having a hard time figuring it out.
|
Let's say you have a person who wishes to increase their running endurance. They complete three runs, where the proportion of time (as a %) they are running, walking, and resting are logged. Is there an appropriate statistical test that would tell you if these proportions are significantly different?
There was another... |
I have been thinking about Ben's post that introduced me to the fundamental notion of possibility measure. This post is highly similar.
I can assign possibility measures somewhat arbitrarily within what the axioms allow, but I'll confess I don't find that satisfying from a modelling perspective. In some cases I could s... |
I initially have two data vectors $x$ and $y$, where $y$ is assumed to fit the linear model $y = \beta_0 + \beta_1x + \epsilon$, with $\epsilon \sim N(0,\sigma^2)$. I fit the model using fitlm in matlab and get estimated values of $\beta_0$, $\beta_1$, and $\sigma$, which I use to calculate the probability $P(x < a|y =... |
I hope someone can clear the doubt on conditional distribution, in a text, it mentions:
To interpret
the notation $f_{X \mid Y}(x \mid y)$, we need to be clear that there is nothing random about
the random variable $Y$, since it is already fixed. What remains is a sub-population distribution
in terms of $X$ (i.e. the r... |
In our statistics class, we discussed the following problem:
Suppose a data set is collected that contains the city, height, weight, age, and salary of different people. For each of these people, we know if they have asthma or not.
Suppose for the entire data set, you take the height variable and break this variable i... |
Very often in seminars people compare the (biased because of endogeneity) results of their OLS estimation with those (unbiased) from an IV strategy estimation. Assuming everything is ok with the IV assumptions, my question focuses on what we can learn about the omitted variable bias from comparing the IV and the OLS es... |
Currently I examine if firm characteristics have an effect on firm communication. ESG, LARGE and CONTROVERSY are all indicator variables, set to zero or one.
I have big troubles interpreting my results.
My Stata regression equation is this:
reghdfe QUALITY x1 x2 x3 x4 ESG##CONTROVERSY##LARGE, absorb(FIRM Year) cluste... |
I want to make the growth chart by using age and height as predictors. As the scatter plots show a nonlinear relationship between age and y, I need to use the P-spline to make the statistical equation. We need to make sure that age would contribute any information. So I used the following function in R
m4 <- gamlss(y ~... |
I am comparing the centiles from different GAMLSS models. Which model has a better performance. Why?
For model 1, the number of cases below 0.4 centile is 0.5. Is this possible? The number of cases below (forexample) 0.4 centile should not be less than 0.4? What does it mean when the number of cases of 0.4 centile is m... |
I want to introduce samples weights to my lgbm classifier. From what I see the weights can be added both in the lgb.Dataset and in the .fit method. What is the difference between the two?
|
I have a data set with N ~ 9000 and about 50% missing on at least one important variable. There are more than 50 continuous variables and for each variable, the values after 95th percentile seems drastically huge from the values in the previous percentiles. So, I want to cap the variables at their respective 95th perce... |
Recently, I was asked to explain in my peer-review article by the reviewer to elaborate on why I employed variables that showed a trend towards significance (p<0.1) as well as statistical significance (p<0.05) as variables to be included in the multivariate Cox proportional-hazards model.
Since I did saw this in severa... |
I am interested in selecting the best Algorithm (SVM, XGBoost, Random Forest, ...) for a classification problem.
At present, my company is using an algorithm (let's call it ALG-A and let's say it's XGBoost), and asked me to test other algorithms, possibly to find a better one.
Based on what I learned (see this and this... |
I was wondering if someone would be able to give a small example of how diffusion models might be used to sample from a distribution (ie, just given data from a scalar random variable that follows a normal distribution).
|
I have seen many papers and discussions around applying James-Stein shrinkage concept towards beta coefficients in multiple regressions and comparison of that to LASSO or Ridge. As in, for example in "The Risk of James–Stein and Lasso Shrinkage" by Hansen or "Ridge regression and James-Stein estimation - review and com... |
I am planning an analysis to quantify the effects of a new biomarker on cardiovascular risk in terms of added predictive value. Having read this nice post by @Frank Harrell:
https://www.fharrell.com/post/addvalue/
it seems that one valid approach is to fit a model with the current risk factors (e.g. that are used in so... |
I am trying to solve a question which gives me a random variable with the distribution function below
$$
F(x) = 1 - \left(\frac{\mu}{x}\right)^{2n}
$$
where $0 < \mu \le x < \infty$
I differentiate this to obtain the PDF
$$
f(x) = 2n \mu^{2n} x^{-2n-1}
$$
At this point, I notice that the integral over the PDF does not ... |
Excerpt from "Elements of Statistical Learning", p.47
Assume that the conditional expectation of $Y$ is linear in $X_1, \ldots, X_p$. Also assume that the deviations of $Y$ around its expectation are additive and Gaussian. Hence $$Y = E(Y \mid X_1, \ldots, X_p) + \varepsilon,$$ $$ = \beta_0 + \sum_{j = 1}^p X_j \beta_j... |
My hypothesis is that the difference between two population variances is greater than X. Please note that I am not asking if the difference is equal to zero. The solution should also apply to the difference between two population variances being less than some stated value.
If I was interested in the difference betwe... |
This isn’t exactly an academic statistics question, but it is a real problem that I’m trying to understand with regards to bias in survey statistics leading to issues in real-world decision making.
I’m working with our local government organization, and they have used responses from a survey of our city’s general popul... |
Class Activated Maps (NOT GradCAM) is listed in van der Velden et al as a back-propagation approach in table 1, but that is not actually true, is it?
CAM doesn't use back-propagation in the method, there is no gradient to be computed. Is it appropriate to still call it a backprop approach of Explainable AI?
Bas H.M. va... |
I am currently trying to understand how temperature influences the hatching success (no of eggs hatching) of two species of insect. As a result I have attempted to run a binomial logistic regression with temperature (factor: 5 levels 20, 23, 26, 29 and 32 degrees Celsius), species (factor: 2 levels HA and AP) and the i... |
In the most basic regression methods of causal inference (randomized experiment case), it's known that we can use covariates to predict the observed outcome, i.e. $Y^{obs}$ and the model is
$$
Y^{obs}_i=\alpha+\tau W_i+\beta X+\epsilon_i
$$
in which $\tau$ is ATE and $W_i$ is assignment. And we know that the causality ... |
The problem I am trying to solve is, given two images, determining whether they contain the same object or not. Here is an example:
The first two images contain the same object, while the third image contains a similar, but different object. My goal is for the first two images to be seen as a match, but the first an... |
I am trying to implement the 'induced Dirichlet' prior model proposed by Michael Betancourt (from section 2.2 of his ordinal regression case study here: https://betanalpha.github.io/assets/case_studies/ordinal_regression.html#22_Surgical_Cut) using a
Gibbs sampler rather than using Stan. However, I am unsure of how the... |
The Poisson distribution makes a big deal that its great for modeling "Counts" of stuff (aka counts of monthly users) because its a non negative discrete distribution.
Well, aren't Binomial and Bernoulli distributions also non negative?
I can't think of any discrete distributions that can have negative x values. (Norma... |
I specified a random factor smooth in the following way:
gam(Abundance ~ Genus + s(Time, Farm, by = Genus, bs = "fs"),
REML = FALSE, data = dat)
Partial output from the smoothing terms was:
edf Ref.df F p-value
s(Time,Farm):GenusMethanobrevibacter 22.28... |
I'm new to much of this and find that a good way to wrap my head around some of these concepts is to calculate them by hand. After working through linear regression, I thought multiple regression would be straightforward because I read that multiple regression is the linear combination of the independent variables. But... |
When estimating causal properties using TMLE, what is the benefit of using superlearners? It seems like there's an assumption that the model that minimizes prediction error is also the best one for causal inference and I don't understand why that is.
For example in this paper, the authors show that the lasso model whic... |
In probability theory, convolution extends to produce the distribution of the sum of two independent random variables. I've only ever seen this in the context of univariate random variables.
However, the more general engineering interpretation of convolution is a signal operator/filter. In convolutional neural nets, th... |
Letting $\varphi(t)$ be the characteristic function for the probability measure $\mu$, we know if $\int \left|\varphi(t)\right|dt < \infty$, then $\mu$ has density function
$$f(y) = \frac{1}{2\pi} \int e^{-ity} \varphi(t)dt.$$
Example 3.3.8 states that what is denoted as "Polya's distribution", its pdf is $\frac{1-\co... |
It is well-known that $aE+b$ preserves the normality of $E$ when $a$ and $b$ are constants. However it is unclear whether this can happen when said constants become (possibly) dependent random variables.
So for simplicity, let $E\sim N(0,1)$ and $X$ is a continuous random variable independent of $E$, I want to know if ... |
I am currently working with panel data. My fixed effects model showed signs for serial correlation, cross sectional dependence and heteroscedasticity. Therefore, I continued with the FGLS method to account for these problems. However, when tested this model again pointed towards heteroscedasticity and serial correlatio... |
Apologies for the convoluted title. Couldn't figure out a more elegant 1 sentence description.
Here are the details.
I have an experiment measuring a metric e.g. conversion rate, that concluded with a confidence interval straddling 0, and a p-value larger than the classic 0.05 threshold. This points to insufficient evi... |
I will classify using a neural network algorithm. I use 2 output, Y1=1 (positive) and Y2=0 (negative). The architecture is as follows:
loss that I use is binary cross entropy with the following formula:
From the loss, the error gradient with respect to weight v is:
based on the architecture that I demonstrated, is i... |
I want to know whether my interpretation of GLM weights is correct.
On R documentation of GLM it says that
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of ... |
Both income and education are quantitative variables, while gender is of course categorical.
Can I find the linear regression for men and women separately, and then compare the coefficients for education?
After doing that, I want to use an interaction term.
Is this a sound method to test my question?
|
I want to perform a Bayesian analysis (multivariate regression with an interaction term) using this model:
DEP ~ beta0 + beta1X1 + beta2X2 + beta3(X1X2)**
DEP = Dependent variable (continuous)
X1 = continuous independent variable
X2 = categorical independent variable (levels: -1 and 1)
X1*X2 = interaction term, which i... |
I have created a piecewise structural equation model for when the temperature exceeds 0 degrees Celsius, and how that relates to the green up day across Northern Europe.
I have standardised all data
library(readr)
library(nlme)
library(piecewiseSEM)
df = read_csv("C:/Users/data.csv")
df = df %>% mutate_at(c('greenupda... |
I have a pooled data with two-monthly frequency. lets say response variable is y. I want monthly time series for y. Can someone please share link to methods through which I can better predict the monthly values of y using some machine learning or statistical model that takes into account the relation of y with all the ... |
Here is the question. Suppose we have a drug A, and we have conducted a RCT evaluating the risk of death in patients randomised to receive A or not. The results of a Cox-regression model shows HR: 0.60 (95%CI: 0.50-0.70) (please don't focus on the numbers, this is only for demonstrative purposes).
Then we want to explo... |
I know there are similar questions, but so far when the topic of early stopping comes up I can't find a decisive answer.
I want to know if what I'm doing makes sense and if not why. When I say "test set" I'm talking about the hold out set that the model won't see at any point during training time.
So my pipeline for k-... |
I am estimating the total consumption of a community of species.
I have a dataset of total consumption for a given species based on population density and average energetic needs. This is related to body mass. I run a mixed effect MCMC model of logConsumption ~ logBodyMass, that includes phylogeny of the species as ran... |
Suppose I want to compare a book A with a book B to see if a particular word occurs significantly more or less often in either book. If I use the chi-square test (α = 0.05, one degree of freedom, critical value = 3.84), do I always have to formulate a null hypothesis and an alternative hypothesis? Is it not allowed to ... |
$\DeclareMathOperator{\pl}{\operatorname{plim}}$
Consider a general linear regression model with heteroskedastic errors
$$
\boldsymbol{y}=\boldsymbol{X}\boldsymbol{\beta}+\boldsymbol{u} \quad \text{with} \quad V(\boldsymbol{u}\vert \boldsymbol{X})=\sigma^2\boldsymbol{\Omega}
$$
where $\boldsymbol{\Omega}$ is an arbitra... |
Let us consider the following setting:
We have two groups Q1 and Q2 of questions
Several participants answer all questions using a single ordinal scale A, B, C or D for all questions.
Then, I want to test whether answers from questions coming from group Q1 are more heterogeneous than those from questions from group Q... |
I should solve the following:
Let $X_i,...,X_n$ be independent random variables such that for any i, j, i$\neq$j: $P(X_i=X_j) = 0$. Then, $X_i$ is an upper record iff $X_i > \max$ {$X_1,X_2,...,X_{i-1}$}.
So, $R_n = Y_1 + Y_2 + ... Y_n$ denotes the number of upper records in a sequence, here Y_i = (i) 1 if $X_i$ is a u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.