instruction stringlengths 9 38.7k |
|---|
I need to create a synthetic dataset with 1000 rows for two variables X and Y. I need the relationship between X and Y to be set up such that when I run a regression model, it provides specific output, e.g. slope of 1.2 (se=0.04) and intercept -0.4 (se=0.07).
For a simple linear model it is easy enough to do this by cr... |
I understand the concept of targeting likely buyers. It’s a pretty straightforward solution.
I’m trying to find some literature on identifying the likely buyers/purchasers of a specific brand.
I think this is a bit more challenging than the traditional propensity to purchase model because you can have many brands and y... |
I have a lipidomics dataset with more than 1800 features and 30 samples and I want to apply PLSDA. So, I used MixOmics to do this and here is my code:
HLGA_plsda <- plsda(Normalized_data, Groups, ncomp = 10,
scale = FALSE)
perf_plsda <- perf(HLGA_plsda, validation = "Mfold",
folds... |
I understand that Fisher's exact test applies to testing whether the proportion of an outcome in one group, $p_1$, differs from the proportion of the outcome in another group, $p_2$. This could be like drug efficacy in group 1 vs drug efficacy in group 2.
Is there an analogue that works to test $p_1$ vs $p_2$ for the s... |
Let $\{X_i\}_{i=1}^n$ be conditional independent given $\theta$ with distribution
$$p_{X_i | \theta} (x |\theta) = \frac{1}{2i\theta}, \ -i\theta<x<i\theta.$$
Find a two dimensional sufficient statistic for $\theta.$
Attempted solution with the factorization theorem:
$$p_{X | \theta} = \prod_{i=1}^{n}\frac{1}{2i\theta}... |
looking at this blogpost and in many other, the cVAE looks like this:
Now, my question is... why do we need the label on the encoder level? Clearly that information is already inside the image, thus we should not need to tell the network this second part, I mean, to me it seems like
$$
l_{enc} \perp\!\!\!\!\perp y | x... |
I am using logistic regression for inference and classification, using data from 190 X-rays/subjects. We want to see if certain X-ray measurements could predict development of a disease (Case vs Control) later on.
I want to understand the effects of confounding on my Logistic regression predictions.
I have an important... |
I have created a gls() object to create a linear model with AR(1) errors. By all indications this model is a good fit for the data and the resulting model appears to stick to the assumptions. However, when I call $fitted from the model the fitted values are not very accurate at all, in fact they are all contained in [6... |
In the script below I attempt to estimate parameters for Apple and Amazon using a Gaussian Copula with t-Student marginals for the purpose of this exercice.
When executing the script, I notice at each iteration that the estimate of nu1 and nu2 seem to be problematic and in the output I seem to be getting good estimates... |
I am trying to understand the proof that the SCAD has the oracle property. Could you help me with an explanation and a full break down of the steps, so that I can understand it?
I'm unclear on how exactly it is shown that SCAD has the oracle property. I'm new to the concept of oracle, and I don't understand the steps o... |
I'm trying to estimate how much marketing contributes to the usage of our product, but because of consent requirements, I can only collect data on a subset of users - the ones who have consented to us collecting and analyzing their data for a marketing purpose.
My question relates to how many users I will need to provi... |
I need some help to understand how to utilize sufficient statistic from a data.
Suppose I observe some random process that produces $x\in X$, where all elements have a gamma distribution. As far as I understand, a sufficient statistic for $X$ is $(\log(x), x)$ or $(E[\log(X)], E[X])$ if I'm going to update my knowledge... |
Association rule mining is a common technique in Data mining used to find itemsets which appear together very frequently in large transaction databases (e.g. in Table 3 we see that in a transactions database milk and bread are bought very frequently).
For checking statistical significance of such patterns we can genera... |
Suppose that I have a a circle of radius, $R$ with $n$-many non-overlapping circles in it where each circle has a radius, $r$.
The first block of code below generates random circles of the same radius inside a larger circle but not allowing overlapping. It has a set amount of tries to get a user input defined amount of... |
I am trying to find an appropriate way to report the results of the likelihood ratio test in a paper. I wrote:
The likelihood ratio tests reported a significant main effect of FE (χ²(1)=6.06, p < 0.0001) on DV.
The reviewer, however, asks me to report the estimate of FE. Would it be correct? The FE was present only in ... |
One of the underlying assumptions of independent component analysis (ICA) that I consistently see written is "statistical independence across the source signals". In the context of the classic cocktail party blind source separation problem, this would be interpreted as an assumption that the time series associated with... |
I am reading this article and I am struggling to understand the following passage from page 6:
\begin{align*}
L_{i}(\boldsymbol{\theta}|\textbf{V}_{i},\textbf{C}_{i}) = f(\textbf{V}_{i}|\textbf{C}_{i},\boldsymbol{\theta}) = f(\textbf{y}^{c}_{i}\leq\textbf{V}^{c}_{i}|\textbf{y}^{o}_{i},\boldsymbol{\theta})f(\textbf{y}^{... |
I have two independent Bernoulli samples: $\{X_i\}_{i=1}^{n_1}$, $\{Y_i\}_{i=1}^{n_2}$, $X_i \overset{iid}{\sim} Bern(p_1), Y_i \overset{iid}{\sim} Bern(p_2)$. I need to test:
$$H_0: p_1 \ge p_2 \ge 1/2\ \text{ vs }\\ H_1: \text{ not } H_0.$$
Importantly, I cannot rely on asymptotics since the sample sizes are small,... |
When one wants to establish consistency of an M-estimator $\widehat{\theta}_n$, one typically requires uniform convergence of the criterion function $\theta \mapsto M_n(\theta)$. That is, one requires that
$$
\sup_{\theta \in \Theta} |M_n(\theta)- M(\theta)| \stackrel{P}{\to} 0.
$$
See for example Theorem 5.7 in "Asymp... |
In linear regression with fixed effects (i.e. with constant $x_i$, not random $X_i$), the model states that
$\epsilon_i \sim N(0, \sigma^2), \ \ i = 1, 2, ..., n$
Does this say that
the overall set of errors have a normal distribution?
or
the errors at each value of $x_i$ have a normal distribution?
I think that th... |
In survey adjustment for nonresponse, a model-based approach can model response propensity on a variable where each observation is a respondent or nonrespondent from the full sample.
An approach to adjustment for nonresponse taken is to fit a response propensity model (logit) with responded to survey as the outcome (Re... |
I am proposing a study for evaluating reports generated by 3 human experts vs 3 different LLMs on a set of 10 situations. Basically, we're trying to whether the human experts are better or if the LLMs are better (and if so, which LLM is best).
The proposal committee explicitly asked for a sample size calculation for th... |
I am working on a classification task, where I am trying to estimate the probability that a patient may not die.
I did use a Survival Analysis approach at first, but the results seemed unintuitive and the features did not seem to be well suited for this task.
What I now do instead is that for each time period, I build ... |
I'm new to ARCH models, and I have a question about the correct notation for expressing the conditional expectation of the return at time $t(r_t)$ given the information available up to time t-1. I'd appreciate some guidance on which of the two versions below is the correct way to write this, or if both versions are acc... |
I'll be writing a program that compares two numbers and based on how different they are, perform, or not perfom an action. It would make sense to have one formula to get a standardized measure that I can use on all number sets.
I've tried each of these three commonly advised methods below, as well as a few other home-b... |
I have a neural network trained to predict values from timeseries.
the target (which is hopefully to be predicted by NN) is always in range 0.0~1.0, and has these statistic features:
count 26282
mean 0.409029
std 0.280781
min 0.000000
25% 0.180000
50% 0.330000
75% 0.570000
max ... |
I'm looking for a hint in understanding semantics of $\text{do}$ operator. Starting from the original distribution $P$, an intervention $\text{do}(X=x)$ takes us to another distribution $P_x$ - in general different than $P$. When defining semantics of $\text{do}$ operator Pearl uses truncated product formula:
$$ P(X_1,... |
I am researching predictors of dropout from a training program. I want so to see if personality traits add incremental variance above well-established predictors like age, fitness, and education. So, in the end, I want to do a hierarchical logistic regression and compare the difference in R2. The (simplified) full mode... |
i am currently researching dynamic time warping (DTW). DTW is flexible because the time axis is streched and The sequences are "warped" non-linearly in the time dimension to determine a measure of their similarity (e.g. https://en.wikipedia.org/wiki/Dynamic_time_warping). What i dont understand is how the time axis are... |
I am looking for guidance on constructing a statistical model for the following problem, motivated by bird watching.
There is a very large database of bird "checklists". For the sake of this discussion, we are ignoring seasonality, so assume each checklist is a vector of a start time and end time of day (with 15 minute... |
Below is the image of weights in Gym, I would like to know what probability distribution that would fit the wear and tear of the weights.
Below are my initial thoughts:
(1) Has to be discrete distribution
(2) Its a choice problem
(3) Data is skewed
(4) Outlier spike at weight = 100
Some probability distribution to cons... |
This might be a naive question from a non-statistician but here we go. I understand that the challenges that hamper the use multivariate variational encoder where a covariance matrix is used instead of the a vector of standard deviation revolves around the increased number of parameters, lack of assurance of differenti... |
I want to know if the model I am using tends to be overfitting or underfitting. I am using SVM and Random Forest algorithms. How to figure it out?
|
My teacher says :
We're going to consider something called a paired design. But for now,
we'll only consider this when we're doing continuous outcomes.
Sometimes you'll see this in the literature, but we'll also talk about
the issues with regards to substantive interpretation of the results
from such a design, there's... |
Consider the following toy problem:
I have a $\mathcal{C}^\infty$ function $f(t,\Theta):[0,t_{\max}] \times (0, \infty)^n \to \mathbb{R}$. I choose some "correct/ground-truth" parameter set $\Theta$, collect some datapoints $t_1,\ldots,t_n$ of $f(\Theta)$ and add Gaussian noise with zero mean and std. deviation $\sig... |
This seems like a simple question, so apologies if it is already repeated elsewhere (though I could not find the answer when I searched for it).
I coded a linear mixed effects model as follows using R:
lmer(n ~ 0 + data.type + time.point + pH
+ data.type:time.point
+ data.type:pH
+ pH... |
After reading many different posts on this site regarding the relationship between random variables and samples, I still have one lingering question (my apologies if I've missed any post explicitly addressing this).
It is my understanding that a sample (comprised of $n$ observations) has two interpretations:
The sampl... |
My question pertains to the following empirical situation.
You have a bivariate model (e.g. regression), and you find no effect of $X$ on $Y$.
Then you add a covariate in your model, $Z$, and now you find an effect of $X$ on $Y$. In other words, conditional on $Z$, an effect appears between $X$ and $Y$.
I sometimes see... |
I am not a statistician and would like some help discussing best practices with colleagues.
My understanding is that if I run a linear regression
y = ax +b
the p value I get for x is testing HO:a=0 vs H1:a is not zero
If the p value is low enough, I can reject the null hypothesis and assume that the slope is significan... |
I'm working on my thesis project and wondering which fixed effects to include in my panel data analysis. My dataset is of dyadic structure (one column indicates donor country and one column indicates recipient country of official development aid). Naturally, the dyads are somewhat codependent: In year 2003, France will... |
I'm currently working on a project that requires estimating a Vector Error Correction Model (VECM), potentially extending to a structural VECM, that incorporates at least one exogenous variable. The primary objective is to analyze the dynamic responses of two commodity prices to shocks in an exogenous variable, particu... |
So let me tell you a little about my data
I have two columns of transects and plots as random effects
I have an Elevation column as a fixed effect, My response variable is low and high grazing data
###########################################
Six transects of 100 meters were randomly placed in all three sites, with thre... |
Let $Y_1,...,Y_n$ be iid exponential random variables with mean $\theta>0$. Let
$$ \hat\alpha_n:= \frac{1}{n} \sum_{i=1}^n Y_i \quad \text{and} \quad \hat\beta_n:=\sqrt{\frac{1}{n} \sum_{i=1}^n (Y_i-\hat\alpha_n)^2}$$
be two estimators of $\theta$ obtained by the method of moments.
Does the vector $\sqrt{n}(\hat\alpha_... |
I am reading some Matlab code provided by authors that implements the generalized EM algorithm from the paper Modeling Hidden Topics on Document Manifold.
The regularized log-likelihood of the model is
$$\mathfrak{L} = \sum_{i=1}^N \sum_{j=1}^M n(d_i, w_j) \log \sum_{k=1}^K P(w_j | z_k) P(z_k | d_i) - \lambda \sum_{k=1... |
Given a statistical model $(\mathcal{X},\Sigma,\mathcal{P})$, where $\mathcal{P}$ is a collection of probability measures on $\mathcal{X}$, and given a random sample with values in $\mathcal{X}$, we attempt to find the distribution from $\mathcal{P}$ that most closely agrees with the random sample. We assume each measu... |
I have a dataset with $5000$ observations, and 10 explanatory and 1 response variable (binary 0 or 1), and my task is to make a logistic regression model for prediction (but also needs to provide some understanding of the situation), and right now I am at the EDA stage.
My issue is as follows, all explanatory variables... |
While trying to forecast a non stationary time series in Python, I tried two methods for forecasting -
Method 1 : Fitting an ARMA (4,4) after manually differencing the series once
Code -
data['d1'] = diff(data['X1'], k_diff =1)
model = ARIMA(data['d1'],order=(4,0,4),
exog=data[['E1', 'E2']])
results ... |
I want to understand formula (3) in https://arxiv.org/pdf/2006.11239.pdf.
What are the needed math knowledge?
|
I'm in a setting in which X and Y are both $Beta(0.5, 0.5)$ and indipendent, that is
$$f(x, y) = \frac{1}{\pi^2\sqrt{x(1-x)y(1-y)}}$$
What is the conditional distribution of X given Y = X? Normally i would substitute x to y in the density function and i would find a normalization constant. But in this case we would hav... |
It is well known that, given a set of $n$ values $Y_1, \cdots, Y_n$, its Sample Standard Deviation is $\sigma = \sqrt{\dfrac{1}{n-1}\sum_{i=1}^n (X_i - \bar{X})}$ and its Standard Mean Error is $\sigma_{\bar{x}}=\dfrac{\sigma}{\sqrt{n}}$. But how do we calculate the standard deviation and standard mean error if these s... |
Consider two non-independent random variables $X_1$ and $X_2$ with joint CDF $F_{X_1,X_2}(\cdot,\cdot)$. Suppose that the marginal distribution of each variable is equal to $F_X(\cdot)$ and that this function is absolutely continuous. Under these conditions, Sklar's theorem tells us that:
$$F_{X_1,X_2}(x_1,x_2) = C(F_X... |
Let $Z_1, Z_2 \in \mathbb{R}$ satisfy $\mathbb{E}Z_{1}=\mathbb{E}Z_{2}=0$.
Let $W \in \{0,1\}$ and let $A,B \in \mathbb{R}$ satisfy $\mathbb{E}A \neq \mathbb{E}B$. All of the above are random variables.
Finally, suppose $\mathbb{E}\{WZ_{1} + (1-W)Z_{2}\}| WA+(1-W)B, W\} = \mathbb{E}\{WZ_{1} + (1-W)Z_{2}\}| WA+(1-W)B\} ... |
I have a problem and it's been days and I couldn't find a solution
Simply what I want to do for the purpose of a research data, I have the mean and standard deviation of some measurements in diameter (mm), and I want to know how can I get the mean and standard deviation for the cross sectional area while I don't have ... |
Why is AIC interpreted as lower is better, intuitively, can someone explain?
I am running these two models, of which m1 has lower AIC when compared to m2 with fewer covariates, and so it would be the preferred model.
# m1 cornpix
> m1 <-lm(CornHec ~ CornPix, data = cornsoy)
> summary(m1)
Call:
lm(formula = CornHec ~ ... |
Based on the definitions of assessment bias and observer bias I have found bellow, seems like assessment bias is a type of observer bias?
Assessment bias:
If the observer knows the treatment being given to the patient and if
the measurement of an outcome variable contains an element of
subjectivity, then it is possibl... |
The code in question comes from Spatial Data Science by Pebesma and Bivand. I can pretty much understand what it says except for the last line. How does this give the negative log likelihood? I've tried looking for a proof online but haven't had much luck.
# negative log likelihood, excluding the constant:
nll <- funct... |
Can the following SAS model be fit in R?
proc mixed data = df;
class grp week;
model y = grp week grp*week / ddfm = km;
repeated week / subject type = un r;
run;
The data df is of the following format (actual data contains more obs
df
A tibble: 12 × 4
subject grp week y
1 1 grp1 2 0.... |
I'm currently using a Generalized Additive Model (GAM) aimed at modelling mortality as a binary response (1 if the person has died and 0 otherwise). My primary goal is to compare the actual mortality rate with the expected mortality rate derived from this model to identify potential deviations in actual and expected ex... |
Here is my setup. I have two sets of DNA sequences, one bound by a protein (transcription factor), another not bound by the protein. Let's say I have two candidate motifs, or DNA patterns the protein might tend to bind to. The prevalence ratio of motif 1 is the proportion of bound sequences containing motif 1 divided b... |
I have a random effects model about stock returns for different companies across several quarters. To handle clustered standard errors, I would like to use vcovHC and cluster by both company and quarter. I found several answers that would help to cluster a regular linear model by both dimensions but random effects woul... |
Assuming data $X_1,...,X_n, Y_1,...,Y_n$ we have Pearson correlation $r=\frac{Cov(X,Y)}{\sigma_X\sigma_Y}$. Fisher's $z$ transform is then $$z=0.5\log\left(\frac{1+r}{1-r}\right)=\tanh^{-1}(r)$$
If $(X,Y)$ is bivariate normal and the pairs are i.i.d. then $z$ is approximately normally distributed. Thing is, bivariate n... |
I'm looking to understand how to build a multilevel model using Stan.
The structure I'm looking at is y ~ x + (x|z) + (x|w)
By following the "Data Analysis Using Regression and Multilevel/Hierarchical Models" I can see that for y ~ x + (x|z) the model should look like
There are examples (link) that show how the y ~ ... |
My company recently implemented software that uses an MCMC method. In that program, a handful of randomly generated nuisance parameters are used to calculate expected values which are then compared to an observed value from experimental data. A likelihood is calculated by using log(observed/expected) as an x value to p... |
Let's consider such a setup for an experiment: I've made some new feature to the existing system and want to test, whether this feature will bring positive value to the system. May be I don't know what exactly should this new feature improve (revenue, amount of purchases, ctr, churn rate, ...). So what problems I might... |
I have a question regarding survival analysis with exclusively censored data
I have a set of 30 observations of length of alcohol abstinence ranging from 1 month to 120 months
The issue with the study's design is that length of alcohol abstinence was measured for patients without actual followup (patients with alcohol ... |
Context:
To compute the "Process Control" limits, I am following the Stacey Barr's blog.
My question:
After detecting the signal, if I don't have enough data points left in my dataframe, for example, there are a total of 100 rows in my dataframe and signal was detected on 97th row. So clearly, I don't have enough rows ... |
I have have a dataset of about 500k subjects, each subject have 2 measures of the same thing:
measures A: in which 0 is the worst case and 1 is the best case.
measures B: in witch ordinal variable with values 0,1,2,3 in which 0 is the worst case and 4 is the best case.
I want check if the two measures are consistent w... |
Say I want to check if the averages of 2 groups (A and B) are the same.
For each member in group A, there are some observations; same applies for group B.
If I want to take the average of A and B, I have 2 options:
take the individual average of each member in A, and then B, and compute the averages of A and B that wa... |
Suppose I have a longitudinal dataset in which each country $i$ is observed at different points in time $t$. Suppose that my dependent variable is a dummy variable, and I want to estimate the probability of success, say $y_{it}=1$, conditional to a set of predictors. To do this I estimate a pooled probit model with tim... |
For a stationary (and absolutely summable), mean-zero (just to make this easier) time series $y_t$, with $\gamma_j=\mathrm{Cov}(y_t,y_{t-j})$, the long-run variance
$$\mathcal{J}=\sum_{j=-\infty}^{\infty}\gamma_j,$$
and it can be shown that
$$ \sqrt{T} \bar{y}_T \rightarrow \mathcal{N}(0,\mathcal{J}).$$
For a stationar... |
I am learning about chi squared tests, specifically about test for independence and goodness of fit test. In both tests statistic is sum of square of differences between observed and expected data divided by expected data.
Why we use exactly this statistic in this test, why don't we use some other formulas?
|
I was asked to solve a problem, following the multinomial distribution (if you think is the correct approach, which I actually think it is). I paste the whole problem just in case I am approaching, but it's the last item which really bothers me.
Formulation
The ABO blood group system allows classifying individuals into... |
I have a linear regression model with an intercept and a few dummy variables. Each of the dummies indicate a single observation, so the fit is perfect for these observations. Having fit the model, the usual summary command outputs, among other things, the $F$-test of $H_0$ that all of the dummies are jointly zero. This... |
In the one class linear SVM, the equation is :
$\min_{w, \rho} \frac{1}{2} \|w\|^2- \rho + C\sum_{i=1}^{n} \xi_i$
subject to:
$\begin{align*}
& w \cdot x_i \geq \rho - \xi_i, \\
& \xi_i \geq 0, \\
& i = 1, 2, ..., n.
\end{align*}$
The first constraint suggests that, when x is a support vector, we have $w \cdot x = \rho... |
I would like to be able to test either via a linear mixed effects model or a hierachical GAM (where appropriate) to see whether there is a relationship (either linear or non-linear) between participants stool metabolites and time.
Each subject (n=150) has provided a sample every month across one year beginning in Novem... |
My research topic is about theory of distribution—studying probability distributions and their properties—which was suggested to me by my adviser. This is not my research area of interest, but I'll do it anyway, forcefully. I've searched through the internet, but I'm still confused about the difference between the clas... |
Let's say I have some time series $x_{1..T}$, and my task is to predict the corresponding $y$. But, I want the model to have the ability to use any prefix of $x$ for prediction, not just the full time series. The likelihood model I have in mind is $L(\theta) = \Pi_t \space p_{\theta}(y | x_{1..t})$, but it seems illegi... |
Let $X$ be an $\mathcal{X}$ valued random variable. Suppose that we have observed $X = x$ .
We use a parametric model with $\theta \in \Theta$ being the parameter .
In frequentist approach, we believe that there exists a true $\theta \in \Theta$ which decides the distribution of $X$. The inference procedure is that we ... |
I'm reading Think Bayes By Allen B. Downey.
He introduces a simple conditional probability problem.
You have two bowl's of cookies.
Bowl 1 has 30 vanilla and 10 chocolate cookies
Bowl 2 has 20 vanilla and 20 chocolate cookies
If you select a cookie and it is vanilla, what is the probability that it came from bowl 1? As... |
Assume $X,Z$ are random variables and let $x_0$ be a fixed number. I want to estimate $A =\mathbb{E}_{X,Z}[\frac{X}{P(X=x_0|Z)}]$.
If $P(X=x_0|Z=z)$ is known for all $z$ we can apply the LLN and derive a consistent estimator of $A$ given by
\begin{equation}\label{estimator}
\hat{A}_n=\frac{1}{n}\sum \frac{x_i}{P(X=x_0|... |
Suppose I have two stationary AR time series:
$$
\begin{align}
y_{1,t} &= \phi_1 y_{1,t-1}+\varepsilon_{1,t} \\
y_{2,t} &= \phi_2 y_{2,t-1}+\varepsilon_{2,t}
\end{align}
$$
with $\varepsilon_{1,t} \stackrel{\mathrm{i.i.d.}}{\sim} \mathcal{WN}(0,\sigma_1^2)$ and $\varepsilon_{2,t} \stackrel{\mathrm{i.i.d.}}{\sim} \mathc... |
I have a data frame "Customer_original" with customer data, it has around 50 mixed type variables.
I standardize "Customer_original" and put the standardized values into "Customer_standardize" data frame.
I then perform Gowers distance on "Customer_standardize" data frame and get "Customer_Gowers" data frame.
I use "Cu... |
I coded up the answer to this question and it turned out not to match:
https://math.stackexchange.com/questions/1021812/matrix-form-for-weighted-least-squares
The solutions are close, and I'm wondering if anyone knows why they don't match.
from sklearn.linear_model import LinearRegression
import numpy as np
# Benchmar... |
I have random factors such as Flower, Allotment and Gardener. Gardeners scored the flowers.
Flower Crossed in Allotment. Flower Nested in Gardener, and Allotment Nested in Gardner.
Can I analyse each notion separately, or do I need to estimate variances across all levels of the design within a single, comprehensive mod... |
The phi coefficient is a measure of association for two dichotomous variables, and a Pearson correlation coefficient estimated for two dichotomous variables will return the phi coefficient. According to this, if all my variables in my dataset are dichotomous variables, can I use the Pearson correlation matrix to calcul... |
In their fantastic book Applied Longitudinal Data Analysis: Modeling Change and event Occurrence Singer and Willett advocate a iterative model comparison technique for testing the effect of predictors: starting with a baseline model and then adding predictors, one at a time, to a series of subsequent models, using a li... |
In generally, we say that X1, X2, ..., Xi are from a certain distribution, which can be represented by f(x;θ), where θ is an unknown parameter.
When I read content related to MLE or the Likelihood function, I often see the use of f(x|θ) to represent the distribution of data X1, X2, ..., Xi.
In Frequentist, θ is an un... |
I'd like to know if using a bootstrap-derived margin-of-error for a simple survey is appropriate. I'm worried that the estimate is too small. I've pasted the code below for both approaches for context.
I conducted a simple poll of political opinions with a sample size of about 450 respondents.
I calculated a bootstrapp... |
For example, let's say that model A had an average train auc of 0.82 and a test auc of 0.79 through cross-validation. The difference between the two scores is 0.03.
Let's say that model B has a train auc of 0.79 and a test auc of 0.78. The difference between the two scores is 0.01. The goal of machine learning is gener... |
This poster has been making headlines lately due to its subject and conclusions. Specifically, I'm interested in understanding how the hazard ratios are being calculated in this table:
For example, let's take the "Overall sample" example. The reference group "12-16 h" has 423 events and a sample of 11831, for group "<... |
Are LLMs like OpenAI's gpt-* stateful or stateless during the generation of the response? I've read a couple of articles like this but am still not quite sure about that. I understand they are generating the response token by token. In each step: do that process basically throw away all computations except the generate... |
I want to generate data that matches features of environmental data (that is often analysed with nonparametric tests due to nonrmality, skewness etc). I want to know how to best capture any linear trend present (comparing different nonparametric and parametric methods), but to do that I want a benchmark to know what th... |
I apologize in advance if my title is not well-worded, or if I am using the wrong tags; this is my first time asking a question here.
I want to analyze how long it takes for a system in production to import data tokens in bulk. Currently, the system generates a log line every time 500 tokens are imported; for a given s... |
I have a panel dataset of household characteristics (income, expenditure, asset ownership etc.) collected in different waves (30 waves in total). The survey data is stratified, with primary sampling units and post stratification weights provided.
The documentation of the survey package does not mention methods for spec... |
I have a group of survival data, mature enough so that its sample median can be estimated by Kaplan-Meier method. I'm hoping to estimate a quantity which is an increasing function of the median, and plan to use bootstrap to obtain a 95% confidence interval.
My question is, for each iteration of the bootstrap, there is ... |
I have a large dataset for which I am using Bayesian statistics for parameter estimation and model selection (using MultiNest for more detail).
This involves setting a prior over which the nested sampling algorithm works to find the 'best' parameters (as well as compute the Bayesian evidence).
For each file in my datas... |
I have done a linear regression analysis on some data and I want to construct confidence intervals on the coefficients. I have read that it is necessary for the residuals to be normally distributed to be able to construct accurate confidence intervals for the coefficients. It seems like the residuals of my model are so... |
In paired-trial validation, a statistical (ML) models are trained on $n$ datasets separately and then applied to other datasets, as a way of estimating the generalization of the models obtained. Typically, when training a model on a single dataset, we would separate the dataset in a train and test sets, so that we can... |
I have a dummy variable, with 1 meaning the years in which an historical event took place and 0 meaning the years in which it didn't take place. I used 0 as the reference category. When the regression output reports a negative coefficient for the historical event variable, am I correct to assume that this means the eve... |
Can you suggest me which graphs I should do to visualize a mixed effects logistic regression model with three fixed predictors (all categorical) and two random intercepts?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.