instruction stringlengths 9 38.7k |
|---|
I have the following regression outputs from a model that includes both quadratic and cubic interaction terms. I calculated the simple slopes using the simle_slope from reghelper.
x1 <- rnorm(100)
x2 <- rnorm(100)
x3 <- rnorm(100)
x4 <- rnorm(100)
y <- x1 + x2 + x2**2 + x1*x2 + x3 + x4 + rnorm(100)
fit <- lm(y ~ x1 ... |
Is there a distribution with these three properties?
Supported on $[a, b]$ for any $a, b\in\mathbb{R}$ and $a < b$
Continuous and Differentiable (that is $\nabla_x p(x)$ can be computed)
Bell-curved (or at least not as flat as the Uniform(a, b))
|
The setup I describe below is analogous to my actual problem.
Problem: I have millions of individuals in my dataset and for each individual, I have certain stats over time. I.e. for one individual Joe, for each month, I have certain measurements about Joe that change through time (age, BMI, and other medical stats) and... |
The question is Exercises 6 and 7 regarding importance sampling on page 273 of Bayesian Data Analysis 3 http://www.stat.columbia.edu/~gelman/book/BDA3.pdf.
Exercise 6 approximate a normal distribution with a t distribution ($t_3$) and exercise 7 does the opposite. I do not get why the authors claim that the importance ... |
I have a large sample (N > 1.000.000) of a population. Each individual has a treatment associated with it and a class label. There are five actual treatments T1..T5 and there is a reference treatment T0. The class label ranges from C=1..7.
I would like to study if the class label percentages of the reference treatment ... |
De Waters et al. (2017 ;2019) used conditional modes (BLUPs) from a generalized linear mixed model to further examine individual differences. In their experiment, they performed a temporal delay task (a marshmallow test for adults with money), manipulating the amount of immediate reward and the duration of the temporal... |
We are trying to provide guidance for some folks who want to bring in machine learning tools with multiple classes. They are required to validate the machine's performance, and we are required to provide them the criteria the validation must meet. My simpleton thought would be to count the diagonal as index 0, the next... |
I am trying to understand more about the parametrization of random effects in lme4 models. For example, from this model:
library(lme4)
data(Machines, package="MEMSS")
m <- lmer(score ~ Machine + (Machine|Worker), Machines)
I can extract the variance-covariance matrix for the random effects using VarCorr(m)$Worker and ... |
How does one test the efficiency and completeness of an estimator using monte-carlo simulation?
In particular,
I want to use-montecarlo simuation to answer. Maybe the better question is how does one prove it mathematicallY?
1.Is the vcovcHAC estimator of standard errors from CRAN's "sandwich" heteroscedasticity and a... |
I want to use some predictors (for example, $x_1$ and $x_2$ below) to simulate the multinomial outcome (for example, with 3 levels).
Below are the codes I found in another question regarding simulating binary outcome.
> set.seed(666)
> x1 = rnorm(1000) # some continuous variables
> x2 = rnorm(1000)
> z = 1 +... |
Assume we have a probabilistic forecast for a continuous variable. Now we want to validate how good our estimate was. For that, we can use various scoring rules (e.g. CRPS, logarithmic score) or if we obtained a prediction interval via our probabilistic forecast, we can assess it by using the prediction interval covera... |
In Attention, Learn to Solve Routing Problems, it was mentioned that:
but we do
not use positional encoding such that the resulting node embeddings are invariant to the input order
I'm confused about this sentence. Positional encodings in the original Transformer paper are to incorporate the idea of the position of a... |
Say that my data consists of
time
success
failure
exog
2009
3
1002
0.2
2010
2
1200
0.3
2011
9
1091
0.1
2012
0
1099
0.4
And I want to fit a GLM with a Binomial family and Logit link to this grouped timeseries data.
E.g. The function would be "success + failure ~ exog + intercept".
When using this data ... |
Is the variance of an estimator a random-variable?
If so, the mean of the variance and the variance of the variance exist.
An estimator of the variance of this variance of an estimator also exists.
|
I'm interested in comparing 2 independent samples of data (by year) and found a very useful piece of code to "loop-through" the data by the group "year" in R, but want to make sure I understand the potential issues I'll run into by doing the analysis like this. The data are collected once a month at the same locations ... |
Researches usually present the results of validity tests conducted before the actual results - these include descriptive statistics with Mean and SD and also inter-construct correlations.
Then there is the actual testing of the logic model e.g. based on Partial Least Square (PLS) method where standardised beta coeffici... |
What is the difference between a regression model with a compound error distribution (e.g. negative binomial, beta binomial) and a binomial/poison GLM with a random intercept (say Gaussian)? Is it simply the way they model over dispersion and would it be correct to say that, for example, a binomial GLM with a Gaussian ... |
This 2008 paper by Piñeiro et al. shows that the 'correct' way to represent the relationship between a model's predicted values (P) and the observed (experimental) values (O) that originated it is to plot O on the y axis and P on the x axis.
The expected coefficients of the regression line $y = a + b \cdot x$ are then ... |
I have a system with a latent variable T and two pieces of evidence - E₁ and E₂. Each piece of evidence is represented with an empirical distribution (space of all possible values of T has been subdivided into N bins, number of observations falling into each bin has been counted, and for each bin we know the proportion... |
I have a data frame of engagement data for different sites for every day like this:
SITE_ID
Date
Engagement A Count
Engagement B Count
Target Variable
1
1/1/2022
0
0
1
1
1/2/2022
0
0
0
1
1/3/2022
1
0
0
1
1/4/2022
0
0
0
1
1/5/2022
0
1
0
1
1/6/2022
0
0
1
...
...
...
...
...
2
1/1/2022
0
0
0
2
1/2/... |
I am interested in using interrupted timeseries analysis on real world electronic healthcare records. My understanding of interrupted timeseries analysis is that data is time-ordered and gathered at uniformed and regular intervals:
at least three data points are required on both sides of the interrupt.
the data points... |
I am trying to code a mixed effects model using gam that will predict stream classification (a 3-level factor - dry, wet, and discontinuous, called Flow_Stat) as a response to several categorical and continuous variables taken from field observations and remotely sensed data. I have 3 variables I would like to include ... |
What is the meaning of with drift in the ARIMA model produced by the auto.arima() function?
What is the difference between a model ARIMA(1,0,2)(1,1,2)[12] and ARIMA(1,0,2)(1,1,2)[12] with drift? (The difference of a model with drift and without a drift?
Thank you!!
|
As a biologist, I'm interested in analyzing the dynamics of two biomarkers (A and B) over time of multiple subjects and how each biomarker is correlated with a disease phenotype/response to drug treatment (and if combination will be better to be correlated with a phenotype).
I've plotted the level of each biomarker tog... |
I recognize that the sample size calculation for the two-sample test at $\alpha = 0.05$ and $\beta = 0.80$ under a normal distribution becomes:
$$
n_{i} = \frac{16 * \sigma^2}{\Delta^2}
$$
But, what is in variance in the context of proportion vs mean measures? If the experiment was an AB experiment, can I assume that t... |
I am testing in vitro ovarian follicle growth in 4 different hydrogels. I have also tested 4 different medias with each hydrogel. I need to use a statistical test to determine which hydrogel was best overall (in all medias). My data is in percentage survival (%). Which test should I use?
|
I'm using a simple moving average to generate a forecast. Say I have $t$ observations. Then the forecast for time $t+1$ is given by
\begin{equation}
\hat{Y}_{t+1}= \frac{Y_t+Y_{t-1}+\dots Y_{t-m+1}}{m}
\end{equation}
If the forecasting horizon is longer than one period, then the forecasts are given by $\hat{Y}_{t+h} = ... |
Suppose $X\sim F(n_1,n_2)$, then, what is the distribution of $Y=\log \frac {\exp(X)}{X}$?
I don't even have a clue about this distribution.
Any helpful suggestions and answers are greatly appreciated!
Following Christoph Hanck's suggestion, I got the answer.
Note that $Y=X-\log X \in [1,\inf)$.
The CDF of $Y$ is
$$
... |
My team works to resolve online tasks assigned to them through a queue system; time taken to clear each task is measured (called handle_seconds). Approximately 18% of the tasks turn out to be defective. I want to check if there is a relationship between time taken to complete the task (handle_seconds) and the chance th... |
I am running multiple regression to test my hypothesis, which includes interaction terms. I have some control variables and three key predictors A, B and C. I used hierarchical regression models which adds the predictors step by step.
Here is my sequence of models:
model 1: only include control variables to see how the... |
I am looking for defects in a structure that can be difficult even for a human to detect. I'm using segmentation algorithms (e.g. Mask RCNN, UNet) to do this. Sometimes the structure will have regularly repeating holes in it that look like defects but are not. A human can see that they are regularly repeating and there... |
I have several sets of numerical data, and we'll call those sets $i=1...n$. Each set describes a normalized probability mass distributions $y_{i,j}$ such that
$$\sum_j y_{i,j} = 1$$
These $y_{i,j}$ are realizations of a physical process, e.g. "distribution of the heights of sunflowers after 10 days in X soil". However,... |
I am using a zero-inflated negative binomial regression model for my data analysis, where the dependent variable is the number of retweets. I have three categorical variables called emotionally_charged (0 if not 1 if yes), hashtag_used (0 if not 1 if yes), and media_used (0 if not 1 if yes). The base reference for all ... |
I know that there are many pages about "bootstrapping statistics" and I have read several of them. However, either I am too stupid to understand them, or they do not represent what I am trying to do. Also, some "all-in-one" packages for R are not usable for my case, I think.
Let's say I have some imperfect (e.g., relat... |
I have several trained ML models (RandomForest, XGBoost and similar) for binary classification. Those models predict a score between 0 and 1 for different (but related) tasks. I would like to compare the scores to see which model yields a higher probability. Because the scores are not probabilities and therefore, are n... |
I want to apply a robust logistic regression in R and I tried the functions robust::glmRob (using the method mallows) and robustbase::glmrob (method Mqle, which fits a generalized linear model using Mallows or Huber type robust estimators, according to the authors).
I don't understand much about those estimators, but I... |
I am very new to time series analysis. Please help me if the following analysis and interpretation are wrong. Thank you!
I have a time series with two different events, as in the following illustration.
Each blue block generates a continuous measurement, and its length represents time duration. Every red dot produces ... |
The topic is somewhat generic but I will try to specify it as much as possible.
Theoretically, we have a dataset that being a survey could be biased (geographically, gender ...) in this case are about 100k respondents.
This dataset is a sample of people with their characteristics and a response variable of a survey tha... |
I have below output from AUTO ARIMA model. I do think the output is justified, but the model is considering only the recent change in input and giving the same trend as output.
I have to use a generic AUTO ARIMA model which does 10+ time series forecast. How to handle input such as below?
Input data: from 01-01-2019 t... |
Previous questions this & this does not answer my question
Code
import matplotlib.pyplot as plt
inputs = [(0.0000, 0.0000), (0.1600, 0.1556), (0.2400, 0.3543), (0.2800, 0.3709)]
targets = [230, 555, 815, 860]
weights = [0.1, 0.2]
b = 0.3
learning_rate = 0.1
epochs = 4
# prediction
def predict(inputs):
return su... |
What I've seen very often, is that people are saying, that logistic and probit regression are giving very similar results, however, logistic regression is more interpretabe. And in this question, I want to understand why.
In the logistic regression, interpretability lies on the log of the odds:
$$\log\left(\frac{p}{1 -... |
I am working with novel Next Generation Sequencing (NGS) method which reports DNA breaks with perfect single nucleotide-resolution and strand-specificity. The outcome of the technique is that the first base of the Illumina sequencing read is the 5'-terminal base at the DNA strand break site (the x coordinate of the pe... |
I'm trying to figure out the differences between the "Super Learner" approach of Van der Laan et al. (2007), the "Stacked regressions" approach of Leo Breiman (1996) and the "Stacked generalization" by Wolpert (1992).
In particular, I think they all describe as an option the following approach:
do cross-validation (C... |
Let's say we measure binary classifier performance by ROC graph, and we have two separate models with distinct AUC (The Area Under the Curve) values. Is the model with the higher AUC value always better?
|
I am trying to use Neural Networks or ML to make my mouse cursor move as humanly as possible, I want to be able to generate a set of points which are needed for the mouse to move from point A (Starting Point) to point B (Target Point). I have a dataset where I recorded the mouse movement from one point to another in th... |
This is a general question, which I have encountered regularly, but as it is seemingly very basic, I can not seem to find an answer / explanation for it.
Assume a situation in which we have paired data (repeated measures under different conditions on the same subject). In this situation, we want to do a kind of analysi... |
This may be too broad a question, but I'm currently starting on a time-series model and was testing my potential variables for stationarity and found that a set of the predictors are stationary from 2008-2020 but a huge spike in the last two years makes them fail an adf test.
My question though is, when it comes to the... |
I need your opinion about this study.
Originally it is a clinical trial comparing two treatment regimens (of IVF) on the chance of fertility. One (Treatment A) consists of ovarian stimulation during two follicular phases of two consecutive ovarian cycles. The other (Treatment B) consists of two ovarian stimulations on ... |
I have a continuous random variable $\tau$ and I want to evaluate
$$
E\left(\sum_{i=1}^{\lfloor \tau \rfloor} Y_i\right),
$$
where $Y_i$ are known, non-random, and $\lfloor . \rfloor$ is the floor function. If $Y_i$s were iid I know I could use Wald's equation, for instance, but that is not the case. I am able to solve... |
With two samples A and B having nA and nB as size, muA and muB as means and sigmaA and sigmaB as standard deviations I can calculate the 95% confidence interval of each mean, but also the confidence interval of the difference between the means.
Could I do the same when the estimator is the median?
That is, summary data... |
I have proportion data which includes 0s and 1s (the ri column below, calculated from the ud/days_lib)). I have found a few threads related to modelling this issue. A few of which (e.g., this thread) suggest transforming the data, using the following formula, y * (n−1) + 0.5) / n, where n is the sample size, from Smith... |
Say we have a model with three predictors and one dependent variable. For the sake of our example let the model be the following:
Y = X1 + X2 + X3 + e
Where Y is a 1-10 feeling towards apples, and X1, X2, and X3 is information provided to respondents about apples. The purpose of this model is to estimate how different ... |
I have a Cox regression with 9 covariates as below in R:
coxph(Surv(Tstart, Tstop, status) ~ cancer+A+B+C+D+E+F+(1|clusterid), data = dat)
I would like to check if I need to include all the A,B, C, D, ... in the model. Can I choose based on lower AIC?
Also, is it necessary to check the Cox PH assumption as my main exp... |
Running some Wilcoxon rank sum tests, I noticed that if I reverse the x and y vectors I get different values of the statistic. Since I have to report the value of W in the results, I would like to understand how to choose the right order of the vectors x, y. (In some cases the two vectors do not have the same length as... |
I know that when we standardize a predictor, "one unit change" becomes one standard deviation in the predictor, but what if we only center the data on the mean (i.e. only subtract all values by the mean) ?
edit below: bounty
This example is from Winter (2019: 139):
mutate(SER_c = SER - mean(SER, na.rm = T)
term est... |
Suppose I have a big genome and a small one (ex. mitochondrion) And I would like to know which words or k-mers of length k (ex. "AGCCGTA" - k = 7) are under/over-represented in both genomes, but I know when using a high Markov model (Rocha et al. it led to a powerless statistic tests and difficulties to find real under... |
I'm trying to decide between two logistic regression models. I think I've used the negative two times log likelihood criterion before. My two models are not nested - can I still use that approach? If so, please point me to a resource for how to use -2LogL to make the decision. If not, what do you recommend?
|
I am trying to do the partial derivative of this function but I don't know how to include the $\theta$ inside my function to be able to apply the partial derivative in $\theta$.
The likelihood function is
$L(\theta)=P(X|\theta)=\prod_{i=1}^{m}\sigma (x_{i})^{y_{i}}(1-\sigma (x_{i}))^{y_{i}-1},$
and the log-likelihood f... |
I'm ending my Master's Thesis, and I'm trying to figure out which test to use to calculate the significance of my data.
Basically, we measured the Free Kick biomechanical parameters of several football players in different pitch zones.
I was going to perform a Wilcoxon test, seeing as the data is not normally distribut... |
I am trying to understand the conditional entropy of the finite mixture model given in this paper about regularized EM algorithm.
On page 3 of the paper: in the finite mixture model, we are given $m$ mixed component densities with mixing coefficients $\alpha_k, k = 1,\dots, m$, i.e., $p(c_k) = \alpha_k$, then
$$p(x \... |
I understand this for an ACF plot. You are plotting $x_t$ vs $x_{t-1}$ and then calculating $r$. This gives the point $(1, r_1)$. Repeat for lag 2: plotting $x_t$ vs $x_{t-2}$ and then calculating $r$. This gives the point $(2, r_2)$. Do this for as many lags as you want and plot the resulting $(\text{lag}, r_\tex... |
Consider the density function given by
$$
\left[\dfrac{\gamma_{\leq0} \mathbb{1}(t \leq 0) + \gamma_{>0} \mathbb{1}(t > 0)}{\gamma_{\leq0}\Phi\left(- \mu / \sigma\right) + \gamma_{>0}\Phi\left(\mu / \sigma\right)}\right] \phi\left(\dfrac{t - \mu}{\sigma}\right).
$$
The parameters $\gamma_{\leq 0}$ and $\gamma_{>0}$ den... |
Bollen (1989) introduces a general structural equation model of the (matrix) form:
$$\eta = \beta \eta + \gamma \xi + \zeta$$
$$y = \lambda \eta + \epsilon$$
Most textbooks (e.g. Depaili 2021) presenting the general model describe $\beta$ is a $m \times m$ matrix of coefficients "relating the $m$ endogenous latent fact... |
In Introduction to Linear Algebra, Strang shows \hat{x} from equation 12 in the attached screenshot is the best linear unbiased estimator for Ax = b. One of the assumptions used to derive \hat{x} is that "each right side bi has mean zero" (see blue highlights)
Is this a typo? I get that the error (b - Ax)i has mean zer... |
I've gotten a lot of usage out of principal component analysis, and after recently learning the basics of performing canonical polyadic decomposition I was intrigued to learn that there exists a multilinear principal components analysis (MPCA).
The trouble is, the wikipedia page doesn't really clarify what it is mathem... |
If $X$ is an $n\times p$ matrix where each row is iid multivariate normal, then $X^TX$ has a Wishart distribution.
What is known about the limiting distribution of $X^TX$ for large $n$ when the rows of $X$ are from some general multivariate distribution not necessarily normal?
Is anything known about the distribution... |
I am a MBA Student that is taking some statistics courses, a colleague recommended this site as a useful resource! So far there seems to be a lot of interesting information here!
We are learning about "Count Data" - for example, we are interested in learning how to make a model that predicts the number of complaints a ... |
I am doing one calculation in two different ways and the result does not match.
Let two sets of random variables $\bar{y} = (y_1, y_2, \ldots, y_N)$ and $\bar{x} = (x_1, x_2, \ldots, x_N)$. Each $y_i$ depends only on $x_i$ and a parameter $\theta$ and all the $x_i$ are i.i.d from a parameter $\theta$.
If I try to calc... |
So I understand that dummy variables and binary variables are not the same thing. Here are my definitions of both (please correct if I am wrong):
Dummy: Categorizes variables that don’t have any relationship with each other with the numbers 0 or 1.
Binary: Any variable that has only 2 values.
However, I cant think of... |
I'm trying to derive the ELBO as per CS229 Page 144, Eq 11.8.
For E-step, the LHS and RHS must be equal:
$$
\begin{align}
f\left(\mathbb{E}_{z\sim Q}\left[ \frac{p(x, z; \theta)}{Q(z)}\right]\right) \geq \mathbb{E}_{z\sim Q}\left[f\left( \frac{p(x, z; \theta)}{Q(z)}\right)\right]
\end{align}
$$
The value must be a cons... |
Given $v \sim N_{p+1}(\mu, \Sigma), v = (x, y)', \mu = (\mu_x, \mu_y)', \Sigma = \begin{pmatrix}
\Sigma_{xx} & \sigma_{xy} \\
\sigma_{yx} & \sigma_{yy}
\end{pmatrix}$, how do you prove the formula for multiple correlation (the Pearson correlation between $\mu_{y|x}$ and $y$): $$\rho(y,x) = Corr(y, E[y|x]) = \left( \f... |
I am considering a question regarding the calculation of the probability limit for a high-dimensional inverse matrix.
Specifically, suppose that $A_n, B_n \in \mathbb{R}^{N_n \times N_n}$ where $N_n \to \infty$, whose minimum eigenvalues are bounded below by some positive constant $C$ (independent of $n$). Let $A_n^{-... |
I've been working on the problem where for a bivariate normal random variable (X,Y), uncorrelated implies Independence. However, I realized that I didn't use the bivariate normal assumption, so there is something wrong with my argument. Can someone point out the problem with the following:
Starting from the first direc... |
I am trying to express the difference in the 'speed of increase' between two categories in gam modelling. My data represents the cumulative values over time [0-100%], but I wish (for comparability with other studies) to express them in yearly values. I wonder if it is even meaningfull, if my models are gam, and therefo... |
I'm trying to apply the White test for heteroskedasticity to some neural network models in Python (https://www.statsmodels.org/dev/generated/statsmodels.stats.diagnostic.het_white.html). The built-in White test of the statsmodels package seems to assume that the (exogeneous) variables also contain the bias term, since ... |
Suppose $X_1,...,X_n $ are independent bernoulli random variables with success parameter $p$, i.e. the common pmf is $f(x)=p^x (1-p) ^{1-x}$ for $x=1$ or $x=0$. I am interested in finding a prediction interval of the weighted sum $$Y=\sum_{i=1}^nw_iX_i,$$
where $w_i>0$ are deterministic weights.
I do not know the under... |
I would like to ask what would be the appropriate test to compare mean/median of groups with different number of samples for example:
A: 5%, 10%
B: 3%, 2%, 10%, 12%
C: 20%,25%, 30:
D: 40%, 30%, 25%, 20%
Because A has only 2 input, would Wilcoxon test be appropriate (as data will be non-parametric)?
Thanks
|
Hello Everyone,
I'm relatively new to statistics and this community so please bear with me and forgive me if I commit any mistake while asking my question. For starters, here are two hypotheses tests that I want to perform:
Test 1: If on an average, Girls score more than 600 in an exam?
Test 2: Mean score of girls = 60... |
Given some estimator T for a parameter θ, by definition T is unbiased if its bias B(T) is 0. It is asymptotically unbiased if B(T) is not 0, but some value that tends to 0 as n goes to infinity. My question is: how are these properties different in practical terms? Unbiasedness by itself is only true for infinitely lar... |
I've been studying GPs with Rasmussens book as well as a few of my old probability favorites.
I am confused by the results we're getting (doing also a lot of practice) when sampling from our Gaussian Process.
Conditional on the data $ D_n = [{X_n, Y_n}] $ for $n$ datapoints the predictive posterior distribution for a n... |
Background
I'm working with longitudinal survey data collected at two time points. Pre-treatment data were collected, subjects were randomly assigned to a treatment/control group, then post-treatment variables were collected. My aim is to estimate the following equation, where $\beta_1$ is the parameter of interest: $$... |
I was wondering how would be the best way to report this model ?
### This model is from Winter (2019:139)
# Center SER: mutate(SER_c = SER - mean(SER, na.rm = T)
# Model:
lm(Iconicity ~ SER_c * POS)
term estimate
intercept 0.66
SER_c 0.11
POSVerb 0.72
SER_c:POSVerb 0.50
Obs: SER_c is a centered continuos pred... |
I am trying to infer the parameters of a linear multivariate time-invariant state space system using a subspace method. However, the inferred parameters do not match the ground-truth parameters used to generate the observations.
My system is defined as follows:
$$
x_{t+1} = Ax_t
$$
$$
y_t = Bx_t
$$
where $x_t$ is a vec... |
Performance of classification algorithms is quantified by comparing the predicted probability distribution of the labels $q$ to the true probability $p$, which is commonly a vector of zeros for all labels except the true label, where it is 1. The cross-entropy is given by
$$L(p, q) = -\sum_i p_i \log q_i$$
My question ... |
I am trying to set up a logistic regression model for inventory units and sales.
My binary response variable (sales) is 1 if overall sales are up over last year and 0 if they are not.
I have about 30 independent variables which are a count of inventory units by category (30 categories).
The goal is to rank categories b... |
I'm mainly interested in an estimation of smoothed yearly trend of rate of patients by a disease type. Currently I'm using model with varying coefficients in a form:
fit <- mgcv::gam(no_patients ~
s(year, by=disease_type) +
s(clinic_ID, year, bs="re")
... |
I am a MBA Student that is taking some statistics courses, a colleague recommended this site as a useful resource! So far there seems to be a lot of interesting information here! I posted a previous question on the same topic and was advised to break it into individual parts.
We are learning about "Count Data" - for ex... |
Inspiration: https://www.snopes.com/fact-check/trees-stars-milky-way/
Let's say I take a Bayesian approach and use probability distributions to represent my beliefs about the number of stars in the Milky Way and the number of trees on Earth, as shown below:
The overlapping area is approximately 0.25.
Let's say I am in... |
I am a student currently working on a simple slope for mixed model and came upon a question.
As I am interested in a two-way interaction that involves a quadratic term of X variable and a moderator, I wanted to conduct simple slopes.
When I look into prior research, as interactions with quadratic term is difficult to i... |
I have data on patients who have two gastric samples drawn to culture bacteria. I would like to see if gastric pH (categorized as acidic, neutral, or basic) has an influence on the dichotomous outcome of culture (growth or no growth). The two samples from each patient will have the same pH, but may have discordant cult... |
I am not sure whether a test for something like this exists. So I have multiple groups 1,2,3,4.... In each group there are many measurement values.
Group Values
1 [1,293 ,8, 2, 52, 23, 5]
2 [2]
3 [43, 523, 2, 5]
....
What I am trying to do is to see whether it makes sense take the avera... |
I'm relatively new to statistics, so the question is primarily about your advice on where I should start with this problem and read related material.
So, suppose I've got a temporal distribution of phone calls of a suspicious subscriber, a very basic one with just a timestamp of a successful phone call and a duration o... |
I was wondering about Data Leakage in the data preparation phase during the training of a model. By definition, data leakage happens when information is revealed to the model giving it an unrealistic advantage to make better predictions, cf. Page 93 Feature Engineering for Machine Learning,2018. Following this article,... |
The original Dickey-Fuller test provides a test for the H0: no unit root, so $\gamma \neq 0$ in a simple AR(1) model:
$$X_t = \rho X_{t-1} + \varepsilon_t$$
$$ \Delta X_t = \gamma X_{t-1} + \varepsilon_t$$
where $\gamma = \rho - 1$.
They also include models with linear and quadratic (deterministic) trends (i.e., functi... |
Given a time series $T_1$, I want to sample time series that are a $\epsilon$-distance away from $T_1$. Let's assume the distance metric is Dynamic Time Warping.
The specific problem is, I have a limited dataset of time series. I want to generate artificial data such that those are not far away from the given time seri... |
Background
Suppose I am interested in sampling the posterior distribution defined by $p(\theta_1,\theta_2|y)$, where $\theta_1,\theta_2$ are parameters of interest and $y$ is a vector of observations. With proper priors $p(\theta_1)$ and $p(\theta_2)$, I set up my Gibbs sampler as follows:
Draw $\theta_1$ from a distr... |
I'm teaching an undergrad class on survey sampling (not in the stats department) for the first time. This seems like a very basic question that I should know the answer to, but I can't find it anywhere here, nor have I found it in the various survey sampling books I have consulted. If we are using the CLT, a confidence... |
Sometimes, by simply shuffling my data, not changing the parameters, I get a different cluster result using sklearn.DBSCAN. Why this happens?
I mean, by shuffling data, the data distribution is the same, so I should get the same result. Is this related to the implementation of DBSCAN algorithm, or internal mechanism? T... |
I am using a SRS spreadsheet (Not necessary to know I believe, but it is as mentioned in this article) to determine team strength in various sports. This system allows me to predict an average score for both teams and what the variance of the score is for both teams.
I am running this in google sheets, and have been br... |
In persistent homology estimation the standard approach involves using $\epsilon$-balls. When two balls intersect, an edge is drawn between the points. Faces are formed in a similar way (although the details depend on the choice of Cech vs Vietoris-Rips).
Often variables in a data set have distinct variances. Maybe tha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.