instruction stringlengths 9 38.7k |
|---|
Employees of company XYZ travel an average of 28 km per day to the office, with a standard deviation of 8 km.
Assuming a normal distribution of miles traveled, determine the percentage of employees who travel between 20 and 36 km per day.
Explain what conclusions you might draw in the absence of information on the dis... |
I'd appreciate some feedback on the approach to conduct data analysis for my study.
The ultimate goal of the project is to build a predictive model for treatment outcome.
The first study is supposed to be a benchmark and use traditional statistical methods to select group level predictors. Second study will imply build... |
if I have negative kurtosis in my distribution (meaning negative exceeded kurtosis) - which indicates that the tails are lighter than normal distribution tails.
Does it also mean that I have more confidence in my assessment of the population variance (using the sample variance)?
Because with a negative kurtosis, I will... |
I have a confidence interval that starts with 0 (0, 0.8) at the 95% interval. would this be considered significant?
|
Why do language models like InstructGPT and LLM utilize reinforcement learning instead of supervised learning to learn based on user-ranked examples?
Language models like InstructGPT and ChatGPT are initially pretrained using self-supervised methods, followed by supervised fine-tuning. The researchers then train a rewa... |
Suppose I have a vector of measurements, each of which has an associated potential measurement error. E.g. all my measurements are of the form $2 \pm 0.5$ or something like that. I can look at the distribution of the measurements (ignoring the standard error) by making a histogram or boxplot or whatever.
But is there a... |
I am using sklearn logistic regression to predict age (numeric) vs gender (male, female, non-binary) -
the below are intercept
[ 18.5455613 -1.83610814 -14.10055903]
these are the coefficients of age
array([[-3.45772499], - male
[ 0.19487919], - non binary
[ 2.22982158]]) - female
how to calculate the probability fro... |
I have a dataset that contains vectors of shape 1xN where N is the number of features. For each value, there is a float between -4 and 5. For my project I need to make an autoencoder, however, activation functions like ReLU or tanh will either only allow positive values through the layers or within -1 and 1. My concern... |
I am attempting to split a number v into n roughly-equal sized parts. For example,
splitting 100 into 4 parts could return [27, 22, 26, 25]
splitting 160 into 5 parts could return [36, 37, 32, 29, 26].
The interface of my function is as follows:
def split(v, n, t)
"Roughly equal-sized" is vague, so I am attempting t... |
I want to check if the numbers produced by my random number generator are uniformly distributed. My code is below - is the statistical approach correct?
Disclaimers - this isn't homework, it's personal interest. And for the 'what research have you done' brigade, I have done a fair bit of rummaging on stats.stackexchang... |
I am performing a survival analysis on medical registry data and would like to model drug exposure to estimate a continuous dose-response curve. I have drug data like this:
where ATC is the unqiue code of the drug, and DDD_pack is the number of days the pack of medication will cover assuming the person is taking the s... |
Are there examples of estimators that are minimax, but not efficient? Perhaps, to be more concrete, any of the following:
(strong) Estimator sequence for each $n$ that is minimax but does not match the Cramer-Rao lower bound for any $n$
(in-between) Estimator sequence for each $n$ that is minimax but does not match th... |
I'm trying to relate the concentrations of certain air pollutants to the incidence of a disease, but I don't have continuous data on that pollution. I have daily data on cases and deaths from the disease, and meteorological parameters, but pollution measurements were taken every 4 days, and there were days when it was ... |
In the gibbs sampling, if I sample only one variable repetitively (say 3 times) while other variables remain the same, and sample next one variable for 3 times and so on..
$x_{1_1}^* \sim p(x_1^* |x_2,x_3) $, $x_{1_2}^* \sim p(x_1^* |x_2,x_3) $, $x_{1_3}^* \sim p(x_1^* |x_2,x_3) $
$x_{2_1}^* \sim p(x_2^* |x_{1_3}^*,x... |
I thought that we assume i.i.d and therefore identically distributed (constant variance) over the line? But aren't the below saying that technically the distribution changes from one X value to another?
Example images of confidence intervals:
I thought that we assume i.i.d and therefore identically distributed (const... |
I am planning to perform a zero-inflated negative binomial regression for colony forming units (CFUs) of bacteria with a drug treatment, accounting for variability in the intercept among experiments. I decided said approach, since there are some drugs in which I obtain a fair ammount of zeros. For that, I plan to use t... |
I am applying the sieve bootstrap for time series introduced by Kress (1988), which requires the estimation of autoregressive models with the Durbin-Levinson algorithm (generalized to the multivariate setting by Whittle 1963).
Unfortunately all I can find implemented in R employs OLS estimation (I am working in the mul... |
I have been given the formula for a confidence interval on a gaussian distribution with unknown variance as
$\bar{x} \pm t_{\frac{\alpha}{2},n-1} \frac{S}{\sqrt{n}}$
And I am wondering which column to use in the T table for a 95% CI.
I suspect it must be $t_{.995}$ here
But am wondering how to reconcile the notation ... |
I have a plot of three survival curves that are stratified by a categorical variable (a=1,2,or 3). The log-rank test can be used to test the global null hypothesis that all these curves are the same, but what if I want to test curve 1 vs curve 2 or curve 2 vs curve 3?
|
Say I have the following data-generating process for a binary variable $y\in (0,1)$
$$\mathbb{P}(y=1\mid X) = \frac{1}{1+e^{-\beta X}}$$
where $\beta = (1,0.5,-1)$ and the ith variable $X_i \sim N(0,1)$, independent of each other.
I generate some data from this process and computed the average log likelihood (avg LL) o... |
I have to write an R function that computes the absolute third central moment (i.e. $\mathbb{E}[|X-\mathbb{E}[X]|^3]$) in the cases that you are given the name of the distribution or the PMF/CDF. I know how to do this, but what I want is a reference for the absolute third central moment for distributions such as Bernou... |
The bridge regression is a least squares problem with penalty function $\lambda \sum_{j=1}^p|\beta_j|^q$ that nests e.g. the well known LASSO regression. Several sources state that the regression gives "sparse" solutions when $q\leq 1$, e.g. https://www.intlpress.com/site/pub/files/_fulltext/journals/sii/2013/0006/0002... |
I have data from a live-attenuated vaccine study and I want to estimate the distribution of shedding times after vaccination. I have samples collected at multiple time points for each subject, and I can classify the results at each time point as positive or negative for shedding vaccine. Subjects are observed to either... |
I am trying to understand some of the intricacies of modelling time-varying covariates (tvc’s) in longitudinal studies. I am taking some cues from the following paper:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3059070/
From what I can understand, the basic mixed model incorporating the covariate as it stands will ge... |
Suppose I have a log Gaussian Cox process (LGCP) $X$ with log intensity function $\lambda(x)=S(x)$ where $S$ follows a Gaussian process. Since LGCP still falls under the umbrella of inhomogeneous Poisson processes, the likelihood of an observed point process $(x_1,...,x_n)$ should be proportional to the following densi... |
I recently ran a PCA on a dataset of self-report data from 226 subjects to zoom in on which specific individual differences might account for participants’ predicted choices in a separate task we have them complete. Here are the resulting loading scores for PCs 1,2, and 3:
I added another 67 subjects to the dataset, r... |
How does one determine if a variable is an effect or a predictor if all the variables are measured and none or manipulated or otherwise fixed? For example, does reduction in vascular diameter cause increased amyloid accumulation or does amyloid accumulation drive changes in vascular diameter?
There's no way to explicit... |
I've seen more general questions of this nature, but none that discuss specifically the problem setup that I'm interested in, which I believe is substantially simpler.
Suppose that we observe two random variables, $$X \sim N(\mu_{x}, \sigma_{x}^{2})$$ and $$Y \sim N(\mu_{y}, \sigma_{y}^{2}).$$ Now, I'm interested in es... |
My T table look up is to 3 decimal places ( or less is I am estimating for n=39 say)
Yet my margin of error can be calculated to as many decimal places as I choose.
How should I decide how many decimal places to use in the confidence interval ?
$\bar{x} \pm t_{\frac{\alpha}{2},n-1} \frac{S}{\sqrt{n}}$
|
Many textbooks and online articles introduce cross validation and bootstrapping together giving me the impression that they are different methods to achieve the same goal. In the model training and validation scenario, cross validation(i.e. leave-one-out, k-fold) is easy to understand. It splits the data into train and... |
I've tested a number of fruit samples for weight loss over time (shelf-life assessment).
I want to compare weight loss between the different samples.
My initial idea was to use a linear regression model for each sample and then compare the models' estimates.
Is this the right way to tackle this issue and if so, which t... |
I am currently trying to build linear mixed-effect model to compare continuous dependent variables between categorical independent variables (like conducting ANOVA), but with random factors (to remove potential extraneous variable), and calculate its Bayes factor to have double approach in hypothesis testing (if t-valu... |
I am doing a logistic model explaining if the physical health of a person has been impacted or not during COVID. To do that, I am using many socio-demographics factors as sex, income, education level, and ethnicity. My hypothesis is that women with low income, less education, and are non-white are more impacted than ot... |
I tried to work on the problem
Let $(X_n)$ be a sequence of independent random variables with $E[X_n]=\mu$ and $Var[X_n]=n$ for every $n \in \mathbb{N}$. Find the statistic of the form $\sum_{i=1}^nw_iX_i$, where $w_1,\cdots,w_n$ are non-negative numbers that add up to 1, that has the smallest possible variance.
I re... |
Taking an introductory statistics course, and I am confused about the impact of a transformation on the df for a two-sample t-test. The df is dependent on n of each sample and SD of each sample, but I'm not sure if the SD changes during the transformation? My teacher is saying that a square root transformation would no... |
Given the following assumptions:
$Z,Z'\in\mathbb{R}^4$ where $(Z,Z')\sim N(0,\Sigma)$, for some known $\Sigma\in\mathbb{R}^{8\times 8}$.
$Y=f(Z,u,\epsilon)=Z_1\boldsymbol{1}\Big[u<\frac{\exp(Z_3)}{\exp(Z_3)+\exp(Z_4)}\Big]+Z_2\boldsymbol{1}\Big[\frac{\exp(Z_3)}{\exp(Z_3)+\exp(Z_4)}<u\leq 1\Big]+\epsilon$, where $Y\in\... |
I have found two different expressions for the Jeffreys prior of a multivariate Gaussian. Eq. (3) in this article states that $$p(\mu,\Sigma) \propto \det(\Sigma)^{-(d+2)/2}$$
However in page 73 of this book it is claimed that $$p(\mu,\Sigma) \propto \det(\Sigma)^{-(d+1)/2}$$
Furthermore, in the first article it says t... |
I have two variables,
Age variable - continuous (Independent variable)
Topography type - (7 categories), multinomial variable (Dependent variable)
(Topography variable is related to cancer data, C500-C509)
How can I check the independence of these two variables?
|
Let's say we have some Matrix $X \in \mathbb{R}^{n_x \times n_x}$ whose elemets $x_{i,j} \sim \mathcal{N}(\mu, \sigma^2)$ are normally distributed. In other words: $vec(X) \sim \mathcal{N}(m, S)$, where $m \in \mathbb{R}^{n_x^2}$ and only diagonally set $S \in \mathbb{R}^{n_x^2 \times n_x^2}$. Are we able to calculate ... |
I am using catboost regressor and lgbm regressor to perform regression on dataset. I want to know the assumptions of both the models. Where can I find assumptions for both the models?
Next I want to know if I should care about endogeneity when using Catboost or LGBM? Or is it just applicable to linear regression? Refer... |
I must identify if a data point is an outlier or not in a dataset (we don't have labels). I have different unsupervised models to identify the outlier. Then, I normalize the outlier score and I combine them via a weight average. According to the fact that I don't have information about their accuracy I use the same wei... |
I'd like to know which book you would recommend for studying econometrics in a rigorous way at a PhD level.
I'm aware that this question has already been asked, but what I want to question is slightly different. I found the Hamilton book for time series the best one by far. The problem I have with this book is that it ... |
We have analyzed several past online A/B tests and revealed that some of them have SRM at a statistically significant level (p<0.001).
Example: we had 50%/50% traffic allocation between control and test variations.
However, we ended up with the number of users below:
Control: 130631
Test: 133192
Some of the past tests... |
I am dealing with classification predictive models in the context of machine learning; I am using different models (KNN, SVM, Random Forest, Logistic regression) and I am using the function varImp from package caret to extract feature importance.
Is it correct to say that since the most important features are the most ... |
I am performing feature selection using RFE on 80 features which includes highly correlated features.
The issue here is when I shuffle the order of columns and apply RFE I get different set of selected features. Can somebody please explain me why is this happening?
Secondly, I also tried feature selection using RFE aft... |
I want to compute a Bayes factor for one-tailed correlation (n~600).
Using NHS, Pearson's r = 0.01 and p-value =0.42
With JASP, I get a one-tailed BF of 0.059, so strongly in favour of the null hypothesis.
In contrast, I get a very different result from the BayesFactor and I was wondering whether maybe I'm not using it... |
Cox’s time-varying hazard model is given here which is "CoxTimeVaryingFitter"
The mathematical formulation is represented as:
The values of log partial hazards "(x−x¯)′β" are calculated by applying the function on train set:
predict_log_partial_hazard(X) which can be seen here:
After calculation of log partial hazard... |
Suppose I have a three level nested data structure - observations within individuals within countries. I run a mixed model clustering at the country level which gives me an estimate of the between country variance. But I also want the within country variance for each country - is this possible?
Suppose
$$
y_{ij}=\alpha... |
I remember very clearly an academic paper that investigated thoroughly the "minimum of 5 expected counts per cell" rule of thumb when conducting a chi-square test on a contingency table. It explained where this rule of thumb comes from, its history, and explored its reliability through simulations. The paper concluded ... |
I would like to conduct a posthoc power analysis for a linear regression model to see the power of my analysis given the effect size I am finding. However, due to the clustering of standard errors, I do have many variables (mostly dummies) in my model. Is there a way around it? Do I have to include cluster dummies in m... |
1st question here!
I've scoured the internet, including the vegan documentation, but am still confused about the meaning of the F versus ChiSquare values in the results of the anova.cca() vegan function. In this scenario, I've sampled the microbiome of 15 animals over several months and want to know which variable con... |
I am trying to perform multi-class classification using SVMs (C-SVC). I am using the ksvm function from the kernlab package in R. The problem is that I want to use a periodic kernel, which is not one of the kernel functions provided by kernlab. Reading through the documentation and based on a post I found here, I saw t... |
I have some monthly data which show the number of visitors to a country whose plot is given below
Since there seems a non-constant variance, I took the log, which stabilized the variance.
To remove seasonality, I took the seasonal difference (D=1), which led to the plot below:
Next, I took regular the difference (d=... |
For example, if I had a random variable X and knew it followed a normal distribution, I might write:
$X \sim N(5, 10)$
What would I write if I'm trying to say that the distribution is unknown?
$X \in \Omega$
Is that correct? It doesn't feel right.
|
My use case is that I have a distribution $I \sim N(100, 15)$. I am trying to find ways to take the values from this distribution and divide them into $n$ roughly-equal sized pieces i.e. splitting 100 into 4 could give $26, 22, 25, 27$.
My initial solution was to take a value from $I$ and create a contrived function to... |
I would like to check with you if my issue can be solved by statistics and multiple linear regression? I have data from servicedesk about issues reported in last 2 years. I got a task to prepare a tool to do what-if forecast - management wants to know if they change headcount resolution time will also change. My idea i... |
Can the point estimate be equal to one of the boundaries of a 95% confidence interval? Or, can the under limit of a 95% confidence interval be equal to the point estimate?
|
As an escience support programmer, I often get requests for research questions on checking a corpus for stances, or consistency with a particular statement. For example, one might wonder which news articles, tweets, etc are consistent with a statement like "Inflation is driven by fear" or with "Inflation is driven by l... |
I have a question regarding the extracting p-values from the cumulative incidence curves that considered competing risks.
I used cmprsk packages and cuminc function to draw the curves, and
below is the code that I used.
library(cmprsk)
CI.overall <- cuminc(ftime = dt$futime,
fstatus = dt$competingrisks)
CI.ov... |
Came across this where b is binomial (the distribution is Bernoulli(p)). There's only one sample here, and I found that the MLE of p is X itself (by equating the first derivative to 0). I think I'm missing the indicator function $I=1 \hspace{0.1cm} \textrm{if} \hspace{0.1cm} p \in [\frac{a}{a+b}, \frac{b}{a+b}]$ here.... |
I got a little bit (massively, to be honest), confused by the following apparent misconceptions I have learned recently.
Looking for information about L2-Regularization, the following image is one of the most popular ones:
Often, the following, or similar, notes are written below the image:
The solid blue area is the ... |
I have two groups. Both groups are composed of percentiles based on a performance. I essentially want to test the null hypothesis that there are no differences between the groups. Ordinarily I would use a t-test but I don't think it is suitable given the nature of the percentiles.
The two groups represent the performan... |
Is there any existing result that characterizes how training error changes (increases) when the training data's distribution gets slightly changed while the minimizer of the original training data remains the same? In particular, I am assuming the model $f$ is 'smooth' in some sense(e.g., Lipschitz continuous or differ... |
What is the relationship between the df in survival::pspline and the number of knots?
Say I want to fit a curve made up of cubic polynomials and has N internal knots. What would should I set for df? I don't really understand this from the R documentation.
Secondly, when I fit a model, say
fit <- coxph(Surv(time, status... |
I am currently trying to solve a binary classification problem with models. I am running into a bit of trouble with my models. I have tried a number of various ways to go about my code, including classification trees, logistic regression, as well as an xgboosted tree. All of the models have ran, and had various levels ... |
Consider a stick breaking process where we start with a large stick of length $x_1 \gg 1$.
As long as the stick is larger than one, $x_k > 1$, we break the stick by, removing a piece of length 1 and in addition remove another piece by break at a random spot (chosen by a uniform distribution),
$$x_{k+1} = (x_{k} -1) \cd... |
I am working on a time series-based study on the Czech Republic. I have macroeconomic data from 1993 to 2021. I tested my time series for stationarity using both R (function adfTest from package fUnitRoots) and Gretl. The results are significantly different to the point that for example the differences of GDP are stron... |
I'm perplexed by the comment of a reviewer, who has taken issue with the sample size from a study I conducted. He says, relatively to the 2X2 contingency table below and a (significant) 2-sample test for equality of proportions:
9 and 19 are too low, all cells should have 30
observations minimum, no statistical test w... |
For example, if you have a R^2 of 0.95, you can explain this number to stakeholders in a presentation as:
Our model explains 95% of the total variance within the data.
However, if we have a RMSE of 11, how do you interpret this?
I'm imagining something like "On average, our model's prediction will be incorrect by +/-11... |
I'm working with a discrete distribution on the set of non-negative integers. The step-wise cumulative distribution function at any non-negative integer $i$ is
$$
F_i = \frac{2}{\log w}[\log(1+w^{i+1}) - \log(1+w^i)] -1
$$
where $w>1$ is a parameter.
Is it possible to prove that the rv with such a $F_i$ is log-concave?... |
Suppose I am interested in studying the effect of pizza on mortality across a number of countries.
y = Death [1/0]
x1 = Pizza [1/0]
x2 = Country [Italy/Germany/France]
In a logistic regression model, Country gets one-hot encoded so the model is:
y = b0 + b1 * Pizza + b2 * Italy + b3 * Germany + b4 * France
I'm int... |
In today's statistics class, we saw properties of the distribution function, i.e. defined by $F(x) = P(X\leq x)$ for a random variable $X$. One of these was:
$F(x)$ is right continuous.
The proof was:
Let $E_n$ be a decreasing sequence of events s.t. $\cap_{i=1}^{\infty} E_i = E$, with $E = \{X\leq x_0\}$ Then
$$
F(x... |
The RMSSE formula from the M5 competition is the following:
https://mofc.unic.ac.cy/m5-competition/
This indicates the denominator, which is the naive error, is based on the 'training' data. Below is an example calculation showing RMSSE calculation:
I am confused as to why the RMSSE uses the purple circled regions fo... |
There are 3 random variables, $X_1$, $X_2$ and $Y$. We know $$corr(X_2, Y)>corr(X_1, Y)>0$$, but $$corr(X_2 - X_1, Y)<0$$
In other words, $X_2$ is more positively correlated to $Y$ than $X_1$, but the difference ($X_2-X_1$) is actually negatively correlated with $Y$.
Is this possible? and can you construct such random ... |
I am working on creating a partial dependant plot for one of my features (B). The problem is that I didn't use any model to predict my output (R). I've used a prediction function to do that:
def objective(B, D, k, fc, Le, N):
return (k*fc**1.3*B**3.3*D**1.8)/(10**5*N**1.5*Le**0.9)
data=data_set[["B","D","k","fc","... |
I want to to do the test where i have to check if first column which is income, and 1 shows < 500, 2 = 1000, 3 = 2000 income values from the data, and which the other column which is a dependent variable like a question like yes/no, may, maybe not, others. where i have to find if there is a significant difference compa... |
Suppose that for $\theta ∈ (0, 1)$, $X$ is a continuous random variable
with density
$f_\theta(x) =
\frac{3(1 − \theta)}
{4\delta^3(\theta)} [\delta^2(\theta) − (x − \theta)^2]\mathbb{1}(|x − \theta| ≤ \delta(\theta)) +
\frac{\theta}{2} \mathbb{1}(|x| ≤ 1)$
where $\delta(\theta) > 0$ for all $\theta$.
I'm struggling to... |
I have a dataset of patients who all underwent one of three types of treatment. The disease they have can be graded on a scale of 1-4. The question I would like to answer is:
Is there a difference between recurrence/survival outcomes between the three different treatments when adjusted for disease grade?
I've looked in... |
Consider the Survival Function:
$$S(t) = P(T_1 > t) = 1 - F(t)$$
Where:
$S(t)$ is the survival function, which gives the probability of surviving past time $t$.
$T_1$ is the random variable representing the time of the first event (such as death or failure).
$P(T_1 > t)$ is the probability that the event has not occ... |
When calculating sample size for ratio-based metrics like CTR or Purchase Rate, it appears that one doesn't need to consider the standard deviation of the ratio metrics.
I tried calculators like https://www.statsig.com/calculator, or code in Statsmodel
print(NormalIndPower().solve_power(
effect_size=effect_size,
... |
I was writing an R Markdown for calculating measures of spread and was surprised to find that the IQR function does not use the IQR calculation I am used to using, which is:
$$
\text{IQR} = \text{Q3} - \text{Q1}
$$
So with a vector like this:
$$
x = \begin{bmatrix} 10,33,50,341,987,2006,2008 \end{bmatrix}
$$
Q3 should ... |
I am considering choices of priors for truncated distributions on a circle. Let's take the truncated normal distribution on the unit circle as an example. It has parameters $\mu \in [-\pi, \pi]$ and $\sigma$ for location and scale, respectively. But it also has parameters $a$ and $b$, which are the lower and upper boun... |
I read some interesting speculation over on the Data Science Stack. The setup is that there are multiple correlated features in a regression problem, and the goal is to determine feature importance.
The speculative idea was to calculate principal components of the features, regress on the principal components, calculat... |
I need to do a naive time series forecasting as a benchmark. Therefore, I should split my dataset into train, validation, and test sets.
If I divide the the dataset into train and test sets, the code will be as follows:
library(fpp2)
library(forecast)
data(ausbeer)
train <- window(ausbeer, start = c(1956,1), end = c(20... |
Suppose we have two continuous random variables $X \sim U(-1,1)$ and $Y=X^2$. I don't understand why they are dependent.
$$E[X] = 0$$
$$E[Y] = \int_{-1}^{1} x^2 dx = 2/3$$
$$E[XY] = \int_{-1}^{1} x^3 dx = 0$$
They are independent to me because $E[XY]=E[X]E[Y]$, so why they are dependent?
|
I am attempting to reduce the number of variables in a dataset for regression purposes and I suspect that many of the variables are correlated. Hence, I attempt a PCA, which I must admit I'm very new at. The variables in question are a range of indices, all ranging from 0 to 100.
After running PCA, I identify 3 compone... |
I have been given a formula for calculating a t test statistic as
$$t_{n-1} = \frac{ \bar{x}- \mu_0}{\frac{S}{\sqrt{n}}} $$
Where $\bar{x}$ is the sample mean, $\mu_0$ is the hypothetical true mean, $S$ is the sample standard deviation and $n$ is the sample count.
But when I plug my values in, the outcome is negative.... |
In machine learning, data is divided into train and test splits. The machine learns weights using training data and we can utilize weights to predict test data.
Similarly, we are also learning weights in GNN. But how is testing performed for new or test data points? The crux behind GNN is its connection of edges and no... |
I know the dependent variable $Y$ is a function of $X$ and $Z$, while $X$ and $Z$ are orthogonal. I want to quantify the impact of $X$ on $Y$, but the problem is that $X$ is unobservable to me. Is it plausible to regress $Y$ on $Z$ and take the residuals or $1-R^2$ to estimate the impact of $X$?
To be more specific, le... |
Basically, when we detrend a signal, we detect and remove a linear component of that signal. This produces a stationary version of that signal. And we can use various forecasting algorithms to forecast if the signal is stationary.
I checked a fair amount of notebooks/tutorials and I noticed that all forecasting tutoria... |
I have a questionnaire of 15 questions with "yes" or "no" responses distributed to 20 participants. It will be used as an index measure of a variable. How do I measure the reliability of my index?
|
I am trying to forecast inflation with a simple AR model.
I took the natural logarithm of the CPI and subtracted the 12th lag, thus obtaining a measure of inflation.
The PACF is significant at the first lag, and then at the 13th and at the 25th lag (in both cases positive). How should I interpret this?
I would exclude ... |
I generated some data to visualize a multinomial logistic regression, where individuals choose a mode of transportation based on their income. I then set up a regression and predicted the probabilities to then plot them. Here's my code:
library(tidyverse)
library(ggpubr)
library(nnet)
# Generating the data -----------... |
Consider two joint-normal gaussian variables A and B with known probability density. A and B form a point in 2D space. What is the probability that the sample point falls within a rectangular grid cell. Can this be solved in closed form (including an erf())? Simplification: A and B are zeromean and are uncorrelated. T... |
I want to approach a true parameter value, and my chances of obtaining it, but I struggle to accept the subjectivity of bayesian credible intervals just as much as I can't see the value of a normal interpretation of confidence intervals.
does cross-validation aid me in the endeavor?
I have also read that the parameter ... |
When I research papers on the generalisability of ML models, both terms "Out of Distribution" and "Out of Domain" pop up. Are these essentially the same? In my understanding, yes. Although it's hard to tell because when these terms appear in the papers I have read no mathematical definition is provided.
So I guess my q... |
Suppose we flip 3 coins. The possible outcomes can be pictured, with heads in black and the number of heads denoted $k$, as:
⚪⚪⚪ $k=0$
⚪⚪⚫ $k=1$
⚪⚫⚪ $k=1$
⚫⚪⚪ $k=1$
⚪⚫⚫ $k=2$
⚫⚪⚫ $k=2$
⚫⚫⚪ $k=2$
⚫⚫⚫ $k=3$
In the binomial probability formula ${}_n C_k p^k q^{n-k}$, where $n$ is the number of coins, the binomial coeffici... |
I have a basic doubt in sample and random variables. I have read related posts on this site but still some doubt is still left.
Suppose we have a population and we are drawing some entries from it which is called as sample. Suppose we have n entries then we say that "we have drawn a sample of size n".
Now, the doubt be... |
I'm conducting a simulation analysis using the Exponential, Weibull and Gompertz distribution. To get the times I'm using the table from Austin 2012.
But how can I define the censoring level to be ~30%, ~40% and ~50%?
For the censored observations I'm using $Y_{i} \sim U(0,b)$. The problem is I'm selecting $b$ by tria... |
I am interested in learning whether a diet can help people lose weight. I randomly assigned participants to receive the new diet. Weight was monitored at baseline and again at the beginning of every month for 4 months following enrollment into the study.
I want to investigate if the new diet affect one’s weight over ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.