instruction stringlengths 9 38.7k |
|---|
In my lab we pre-register our hypotheses prior to running an experiment, and we also attempt to fully specify our exclusion criteria, coding practices for small categories and edge cases, etc. However, real-world data is frequently messy, corrupted, fraudulent, or clustered in ways we didn't anticipate. We also sometim... |
My apologies if this sounds..... obvious but my first time running these..I have completed EFA..got the factor loadings and extracted variables etc.But how do I interpret or relate these back to my main data...for instance if I was running it on the most liked fruit (apples, bananas,orange, grapes,kiwi,pears,lemons),If... |
I have some existing data, and I want to do a power analysis for a second confirmatory study. I want to estimate the number of participants I would need for having a power of .9, keeping the same items I already have. To give a bit of extra context, I am analyzing my data with linear mixed effects models; now I have a ... |
Can the Bonferroni correction or another correction for multiple comparisons be used in a logistic regression? I have only seen it used in ANOVAs. Also, is there a test I can use in SPSS for this?
|
I am doing a variance decomposition, with a hierarchal random intercept model like the one below (BRMS R Code):
model <- brm(DV ~ (1 | Level_1) + (1|Level_1:Level_2) +(1|Level_1:Level_2:Level_3)
Where I measure the effect size of every level in terms of the variance explained of the random intercept coefficients on th... |
I have a problem where, effectively, my slot machines have very low payout probability (on the order of 1% for the "best" slot machines) and my goal is to minimize the number of actions to get one reward. I'm wondering if my goal is still equivalent to maximizing long term reward (as in the original formulation). At a ... |
If my understanding is correct, the key difference is that:
In stratified SRS you intentionally draw $N_h$ samples from each of your $k$ strata ($h = 1...k$, $\sum_{1}^{k}{N_h} = N$) and are therefore guaranteed to get a certain number, $N_h$, from each stratum by design.
In PPS you are modifying the probability of se... |
I have a bunch of weighted particles $(Z^{(i, k)}, W^{(i, k)})$ from a distribution $\mu(dz)$ where $i=1, \ldots, N$ and $k=0,\ldots, T$. These defines the following empirical approximation
$$
\hat{\mu}^{N(T+1)}(dz) = \sum_{i=1}^N \sum_{k=0}^T W^{(i, k)}\delta_{Z^{(i, k)}}(dz)
$$
It is composed of $N(T+1)$ particles wi... |
I’m looking for a good reference (be that textbook, website, article…) that goes through a derivation of backpropagation in a multi-channel convolutional neural network. I’m also looking for a reference on how to vectorise the algorithm in this context too.
|
Suppose you have a hierarchical random intercept model with a dependent variable that is zero inflated. The link function is linear and the priors for the coefficients are normally distributed. In BRMS the model looks like this:
model <- brm(DV ~ (1 | Level_1) + (1|Level_1:Level_2) +(1|Level_1:Level_2:Level_3)
I ran su... |
I ran a multilevel model (lmer; package lme4) which provides me with unstandardized coefficients. I tried getting the standardized coefficients in multiple ways (by using the scale() function to scale the entire dataset, using the scale() function for predictors in the lmer function (see example below), and through the... |
I am using the mgcv package in R to build a Generalized Additive Model via the gam() function with the ziP() family call. My model is called via the following code:
model1 <- gam(outcome ~ metric + year + elevation +
s(longitude,latitude) + s(Location_ID,bs='re'),
offset = log(population),
... |
I was looking for formulas for calculating the number of subjects needed in survival analysis studies.
The formula that comes up most often is the one that takes the following parameters into account.
Median survival for control group
Median survival for treatment group
Accrual period
Additionnal follow-up time
Power
S... |
I have two empirical distributions $X$ and $Y$, both with the same number of samples (a few thousand). $X$ are true values, they are accurate (i.e. no uncertainty). Values of $Y$, on the other hand, are measured with some error. The error distribution $Z$ is also known, on the same number of samples.
I want to know if ... |
I have gone in circles reading about this for days and still not quite understanding.
I have aggregated data at the state level and by year estimating breast cancer incidence rate per 100 k, mortality rate per 100 k, mortality-to-incidence ratio, and a number of aggregated socioeconomic predictors including number of h... |
I am trying to compare the MSE values for two GAMs that are modeling water temperature. The only difference between the two is that one model has an auto-regressive (lag = 1) term. When I run the cross-validation, the MSE score for the auto-regressive model is NA and I cannot figure out why. I removed all the NA values... |
I'm designing an AI for suggestions on medical choices. There could be multiple correct approaches for a given scenario.
For example in scenario X, doing A might be correct and doing B and C together is also correct, but doing D or doing A B C in any other combinations is incorrect.
How do I design the error function a... |
I am trying to compare air temperature data for 6 different treatments performed during 3 years in 5 different sites. I would like to know if the temperature differs between treatment but also between years and sites. I m new in R so I wanted to know which model is recommended to use in this case. lme or lmer? any help... |
I am evaluating machine learning classifiers with 4-cross validation due to very small dataset. Is there a way to determine if a classifier is better (other than F1 averages) from only 4 performance data points for each model?
Example of the data (models with F1 scores for every fold):
model1 0.730547 0.734663 0... |
I am looking to replicate a study that was conducted on running a VECM to assess the short- and long-term impacts of media on sales and brand health metrics (consideration & awareness).
Using statsmodels I am able to run all of the appropriate checks before running calling the VECM class. My question here is about the ... |
Consider I have three random variables A, B, C. I know that A depends on (B,C). Can I always deduce that it implies that A depends on B and also A depends on C? I mean does it implies that neither A is independent of B or A is independent of C?
I tried to find my answer using the definition that if A and (B, C) are ind... |
I'm trying to run GWAS pipeline using plink, but the results I got look really off. The QQ-plot of the p-values is far above the diagonal.
I'm pretty sure I followed the correct QC process, and the inclusion of covariates is probably also not a major cause since with and without covariates I got very similar QQ-plots w... |
Let $T$ denote a failure time random variable drawn from a proportional hazards model with a time-invariant covariate $X\sim U(2, 7)$ and a time-varying covariate $Z(t) = kt$ for $k > 0$. Assuming the baseline hazard function is Exponentially distributed with parameter $\lambda = 1$, I can generate $200$ observations o... |
I was going through the this 2001 paper on Random Forest Classifier (RFC). I understood most of the concepts but there are some probability equations that I am finding hard to understand.
Definitions
Random Forest - Collection of tree structured classifiers $\{h(X, \Theta_k), k=1,2,3...\}$ where $\Theta_i$s (trees) ar... |
I am implementing the EM algorithm for a Gaussian mixture model with prior; that is, I am using the EM algorithm to find the MAP estimate, rather than the ML estimate. As briefly discussed in section 9.4 of Bishop's Pattern Recognition and Machine Learning this can be done by modifying the M-step to optimize
$$R(\theta... |
I'm trying to get a better understanding of how to approach modeling time series data. I have made a synthetic dataset that is the sum of a sinusoid whose amplitude increase with time plus white noise. I'm considering each timestep as hourly so the sequence has a period of 12 hours.
What would be the procedure if I wa... |
I have a time-series data (Date and Total). This is actual data from the past 2 years.
I understand how to pick the (p, q, d) order for ARIMA. And I can divide my data into train and test, and the Arima model models the test data pretty well.
history = [x for x in train]
X = writes
predictions = list()
for t in range(l... |
Suppose I have a model:
$Y = X_1 \beta_{1} + X_2\beta_2 + C$, where $C$ is independent to $X_1$ but not $X_2$. If we naively perform linear regression, say by concatenating $X= (X_1 X_2)$ and considering $\hat{\beta} = (X^TX)^{-1} X^T Y$ and looked at the components, we would see that $\hat{\beta}_1$ is unbiased for $\... |
I am doing a research project for class. Our research questions are as follows:
Has news exposure impacted parental decision-making in preparation for the new school year?
Has Media exposure to violence impacted parental decision-making in preparation for the new school year?
Have school shooting impacted parental dec... |
I am not sure how to interpret a partial r statistic in a research paper I am reading for my class. I’ve attached a photo of the table provided by the researchers but cannot figure it out. I’m not sure how to interpret these as strong or weak, nor do so know how they affect the implicit understanding of the rest of the... |
$\left\{\xi_{n}\right\}_{n\in\ \mathbb{N}_{+}}$ is a sequence of independently and identically distributed random variables, each taking a finite number of integer values.$\mathbf{E}(\xi_1)\ne 0,$ For any $n\in \mathbb{N}_{+},$define $S_{n}:=\sum_{i=1}^{n}\xi_{i}.$ Show that $\left\{S_{n}\right\}_{n\in\ \mathbb{N}_{+}}... |
I got correlation coefficient r = 0.33
but my p-value = 0.124 > 0.05
Is there a non-significant correlation or no correlation at all?
|
There are two covariates: smoking history(yes or no) and gender(male or female), and the outcome is OA. The author of a paper constructed a Cox regression model with an outcome including this: smoking percentage with sex as a subgroup, and receive hazard ratio of each subgroup.
The original paper.
So, the questions ar... |
I'm trying to teach myself bayesian a/b/c+ (more than 2 variations) testing and working my way through
https://github.com/raffg/multi_armed_bandit/tree/master as an example.
My question is this: in a bayesian test of proportion with more than 2 variants, is there a pretty standard approach for evaluating the statistica... |
My data is a pair of points (x1, y1) & (x2, y2) [Just in case it's relevant, I explain how the data is created at the end]. I know how the data points are correlated. For a GLS (generalized least squares) analysis, I can represent the structure of the error with the following matrix: $$
\begin{array}{c|lcr}
& x_1 & ... |
I'm informally reviewing a study by a coworker, but as I'm not a specialist of survey weighting procedures, I need a second opinion about something I disagree with him.
He collected a convenience sample, from a (human) population on which we don't know much – except that this is a population we cannot treat as a finite... |
I'm trying to figure out the proper way to run a Linear Mixed-Effects Model. I am looking at the length of a certain gene modification for 3 genes and how they change upon treatment (there's one control and one experimental condition). Measurement of this length comes from 4 replicates but, due to experimental limitati... |
In the frequentist worldview, probabilities are long-run relative frequencies. Hence, a fair coin can be defined as a coin, for which the long run relative frequency of each of the sides approaches 0.5, as the number of flips approaches infinity. Fairness is a quality of the coin, for frequentists.
In the Bayesian worl... |
I'm having trouble on solving this problem. Given a Poisson process X with parameter lambda and, indipendently, a random variable T with density f(t)=$\theta*e^{(-\theta t)}$, compute the distribution of X(T). I have no idea of how to do it since I don't really understand the meaning of X(T). Thanks in advance
|
When I was reading Feynman lectures , I encountered with 'random walk' concept in which he states the expected distance to be square root of N where N is number of steps but, when I searched online for another solution the answer was given like this:-
Then, which is the correct answer and why?
I am attaching solutio... |
I have my training data for binary classification that consists of $N$ pairs $$(x_i\in R^F, y_i \in {-1, 1})$$ $i\in [1,\dots,N]$. My classification rule of a new point $x$ is simply
$$
\hat{y}(x) = \begin{cases}
1 & 0 < \frac{\sum_i y_i\phi(|x_i-x|/r)}{\sum_i \phi(|x_i - x|/r)} \\\\
-1 & otherwise
\end{cases}
$$
where... |
I'm using an LSTM-based model to train a regression model. I standardize the data (i.e., zero mean and unit standard deviation) (train, valid and test have different means and STDs). The model works well on standardized input. However, when scaling the predictions to their actual range, if I use the validation mean and... |
Suppose I have a sequence of distribution $F_1, ..., F_n$ convergence to a limiting distribution $F$ in the sense that
\begin{align}
\sup ||F_n - F|| \overset{a.s.}{\rightarrow} 0
\end{align}
which is called convergence in K-distance(I think that is the definition, if not correct, please point out).
Now I would like s... |
I've been stuck on a problem for a very long time now so I decided to post on this forum for the first time. Although I am using code to perform this task, I believe it uses some statistics and I would love to get some insight.
I have 4 datasets that consist of the columns:
area, age, count
area, sex, count
area, ethn... |
This question has been asked in math stack but no one has replied.
I have been given these definitions in my statistical inference class:
Let $(X_1,...,X_n)$ be a simple random sampling of $X\rightarrow\{P_\theta:\theta \in \Theta\}$ and $T\equiv T(X_1,...,X_n)$ a statistic. We say that
$T$ is sufficient for $\theta$ i... |
I want to know the power of a test I am conducting. Data was collected from three drugs to investigate equivalency of these three drugs for treating a disease. The data has already been collected so I want to know what the power is. Drug one has a sample of 26 people, mean response of u1 and SD1. Drug 2 has sample of 1... |
Is there any way to calculate unconditional variance of $X_{t-1}^2$ i.e. (VAR($X_{t-1}^2$)), when X follows an AR(1) process, $X_t = \phi X_{t-1} + e_t$ with VAR(X) being $\sigma_v^2$ and the mean of the error term is E($e_t$)= 0?
|
I find the following written in places:
$P$ is a state transition probability matrix,
$P_{ss'}^{a} = P[S_{t+1} = s' | S_t = s, A_t = a]$ (notes by david silver - slide 24 and, sutton and barto)
How is it that that is a matrix? Is not that a 3-D tensor? I think we would have a state transition matrix for every action an... |
This paragraph is from the book Machine Learning by Tom M.Mitchell (Page 26):
Initialize $h$ to the most specific hypothesis in $H$
For each positive training instance $x$
$\;\;\;\;\;\;$.For each attribute constraint $a_i$, in $h$
$\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;$If the constraint $a_i$, is satisfied by $x$
$\;\;... |
My team prefers to present the models by using contour plots.
Although I understand that they are looking nice I don't like them because they don't present the model's uncertainty but only the mean.
Instead I prefer to use something like the below where the model error is presented.
Notice that normally our data is sm... |
I am trying to do a binary classification on ticket canceling data from kaggle.
I know this question has been asked before. For example here and here
Summary of what I learned in those references:
this can happen if data is unbalanced
data leakage: one of the input features is actually a direct proxy for the target va... |
I am a statistical novice trying to work something out which is probably basic. Or impossible. I have discrete probability distributions for two random discrete variables $A$ and $B$.
I want to find probabilities like $P(A=k \cap B=j)$. When $A$ and $B$ are independent, I can just multiply $P(A=k)$ and $P(B=j)$. But in... |
Sampling uniformly from the surface of an ellipsoid (in the sense of $\mu(dA) = \frac{1}{A}$) seems very nontrivial:
How to sample uniformly from the surface of a hyper-ellipsoid (constant Mahalanobis distance)?
How to generate points uniformly distributed on the surface of an ellipsoid?
Random uniform points on the ... |
Let β = (β0, β1, . . . , βp) be the (p + 1)-vector of coefficients.
The vector of predicted values (f (x1), . . . , f (xn))T can be written as
Xβ.
|
Here is a question for which I did not find a definitive answer here.
So suppose I have two non-randomised group (i.e. observational data), A and B. I have measured a biomarker (named "C") over two timepoints (T0 and T1).
I want to test whether the change in "C" concentrations over the two timepoints (T0->T1) is differ... |
Item Response Theory is most conventionally applied to binary data, but can also be applied to Likert data with "graded" models. But what if you have data that is a mixture of both Likert and binary? In other words, not data of exclusively one type? Is there any type of Item Response Theory model for that type of datas... |
I was reviewing linear regression and I wanted to dig deeper into the F test that many software suites provide. I am aware that many sources comment on the degrees of freedom, but I haven't really found an answer that satisfies me.
I've been taught that if we take two random variables $X_1$ and $X_2$, both following ch... |
Coefficients:
(Intercept) 0.2991246444
animalDog -0.0006095736
mfMale .
age -0.0357061834
in.month2 .
in.month3 .
in.month4 .
in.month5 .
in.month6 .
in.month7 .
in.month8 .
in.month9 .
in.month10 .
in.month11 .
in.month12 .
in.reasonPublicAssist -0.1980702921
in.reasonStray .
in.intact1 .
In this LASSO coefficient e... |
The number of daily users ordering from an e-commerce can be modeled using a Poisson distribution.
I want to detect anomalies using some kind of hypothesis test or probabilistic reasoning. That is, I use the data of the last months to calculate the mean of my Poisson distribution. If a given day I observe a number of o... |
Just a general statistical question: when any statistical software returns log-likelihood of some model, does it account for all details in it?
For example, when we employ generalized least square method, the correlation structure and variance weighting affects the estimation of model coefficients, so the likelihood fu... |
Suppose we have $N$ individuals consisting of two different groups, A and B. Each group contains $N/2$ people. The label of each individual $Z$ follows a binary distribution with probability $P(Z=A)=P(Z=B)=1/2$ independently. We don't know which group each person belongs to.
Is there any strategy to generate samples fr... |
In R KPSS test, what is meaning of level and trend stationarity?
As far as I have read, trend stationarity means that once you remove the trend, the process becomes stationary. Is this the correct definition of trend stationarity? I do not know the meaning of level stationarity. I found a similar question, but no one i... |
I am working on a data-driven collision risk model for cars. Using car trajectory data, the model computes the probability of collision at each data timestamp with 2 sub-models:
An overlap model: By extrapolating car trajectory data, the model outputs the probability that the car will overlap $P_{\text{olap}}$ at some... |
For a sample, I know the sample size, and the mean and standard deviation of the values transformed using the natural logarithm. I need to calculate the mean and standard deviation of the original data (which I don't have). Is this possible?
|
I have a continuous outcome that is negatively skewed and includes negative, positive, and zero values. There are multiple measurements per subject, and the assumptions of a linear mixed-effects model didn't hold. What's the best family distribution and link function in generalized mixed-effects model that can handle n... |
The Welch t-test is best used when we cannot make an equal variance assumption between our treatment and control groups (our two samples).
However, in A/B testing, it's not clear to me how we could know the variance of the two samples ahead of time. We could, of course, assume they're equal: But how could we be sure? I... |
I know that random forest is just getting a lot of trees that are not pruned But, by the act of averaging predictions across many trees actually reduces the variance and get consistent prediction.
Then, how can you overfit?
And I read that if you have too many trees and the ensemble method (random forest) will get real... |
I have a dependent variable that is stationary in levels. However, one of the IVs is only trend-stationary (stationary around a deterministic trend that I can extract from the series). In other words, I have a regression with variables that have different transformations. My question is, does this bias the significance... |
Essentially, I'm trying to see whether a drug affects a latency measure. I have $n=10$ mice, each with $15$ individual latency recordings (in seconds) per drug dose (repeated measures design). Most of these sets of data are positively skewed, so taking the median value (as opposed to the mean) is preferable.
So now I h... |
I am quite new to cluster analysis and I am currently using Gaussian-multinomial mixture models. I have a sample size of 10000 people with some continuous variables and about 14 categorical variables (let's call the categorical ones var_1, var_2, ..., var_14) that defines these people.
The thing is that I think the cre... |
The following is a snippet of dialogue from the first volume of the Japanese light novel series Combatants Will Be Dispatched:
"Listen here, number 6. This teleportation machine hasn't failed even once, so the success rate is currently 100%. But what if I kept running trials, and an accident occurs? That's right, the ... |
I plan to model copulas with data that has categorical variables. Copula modeling with categorical variables requires a transformation of categorical variables into continuous (link: https://hal.science/hal-03188317/document#:~:text=Categorical%20data%20cannot%20be%20modeled,values%20of%20a%20categorical%20variable. at... |
I am working with a zero-inflated negative binomial model in R, using the glmmTMB package. My main goal is to investigate if there is a significant difference in the amount of times a grassland field was visited by birds (response variable) during different stages of a mowing procedure (treatment: pre, during or post-p... |
EDIT:
I have a correlation matrix with some known values and some unknown values, and i have a partial correlation matrix with the exact opposite known and unknown values. For example, my correlation matrix is:
\begin{bmatrix}1&.1&.5&.5\\.1&1&.4&.4\\.5&.4&1&?\\.5&.4&?&1\end{bmatrix}
and my partial correlation matrix i... |
Assume I have two rank vectors $r^A, r^B$ of size $p$ - that is, each of them is some permutation of $1,...,p$. For the sake of simplicity, assume that $p$ is odd.
Now, I take these vectors and recode them into binary: $b_j^A$ (the $j^{th}$ of vector $b^A$) equals 1 if $r_j^A \ge \frac{p}{2}$, 0 otherwise (we're conver... |
The Levene test is a statistical test that can be used to test the equality of variance between two samples.
I have two paired samples (N = 751 per sample) that clearly have a very different variance, and I would like to statistically show that the two samples’ variance is different.
Question: Is it valid to apply the ... |
Statement of the Problem
Suppose $Z = (X, V)$ with
$$
\begin{align}
X &\sim \mathcal{N}(\mu_X, \Sigma_X) \\
V &\sim \mathcal{N}(\mu_V, \Sigma_V)
\end{align}
$$
I write $p_Z, p_X, p_V$ for the distributions of these random variables. I wanted to check that if $f$ is an invertible transformation and $Z^{(i)}\sim ... |
I’m trying to do my data analysis (SPSS) for my thesis and I’ve been stuck for days. My supervisors also don’t know what test is best or they don’t respond to emails.
I have 1 continuous MV (sleep score), 1 dichotomous IV (2 different samples), and 1 continuous DV (school test score).
I wanted to compare the two sample... |
I'm reviewing kernel density estimation (KDE), maximum likelihood estimation (MLE) and expectation maximization (EM) algorithm for density estimation and struggling to differentiate what each algorithm's merits are compared to it's predecessor.
I'm aware that if data has two or more peaks, i.e., it came from two or mor... |
For a Markov chain $X \rightarrow Y \rightarrow Z$, we have the following data processing inequality: $I(Y;X) \ge I(Z;X)$. Now for the Markov chain, $(W,X) \rightarrow Y \rightarrow Z$, can we prove that the following inequality holds true: $I(Y; W,X) \ge I(Z; W,X)$? Also can we prove the followup inequality: $I(Z; Y) ... |
I am log-transforming my predictor variables to meet the linearity on the logit assumption for logistic regression. In so doing, I am adding a constant to ensure the minimum value is 1 .
My question is, if I then standardize my columns (e.g., min-max scaling), I will again end up with zeros that I will have to add a co... |
I want to get verified if I can say like this.
here is the GLM output:
glm(formula = purchase ~ PC1 + month + weekday + job,
family = binomial(link = "logit"), data = data_train)
Deviance Residuals:
Min 1Q Median 3Q Max
-2.4295 -0.8625 -0.5331 0.8478 2.1372
Coefficients:
Estimate S... |
In hierarchical multiple regression (not to be confused with hierarchical linear models that account for variance components), you add model terms by block. The fit of the new model is measured by the difference in multiple R-squared values and an F-test involving the residual sum of squares of each model.
My question ... |
From the general linear model, we know the following :
$E(\pmb{\hat{\beta}}) = E((\mathbf{X}^T \mathbf{X})^{-1}\mathbf{X}^T\mathbf{Y}) $
and
$Var(\pmb{\hat{\beta}}) = \sigma^2(\mathbf{X}^T \mathbf{X})^{-1}$.
Does that hold true when interaction effects are included, that is $\mathbf{X}$ contains variables and the prod... |
Let's say I have 4 groups of football fans, and I want to see who screams loudest, and I want to run an ANOVA. My dependent variable is loudness, and my independent variable is Fan_Type, with 4 levels. Do my residuals overall need to be normally distributed, or for each group?
It seems like what I've been reading is th... |
If I have a linear model
$$ Y = X_1 \beta_1 + X_2\beta_2 + e$$
where $X_1$ is endogenous to $e$ but $X_2$ is not, then simply performing OLS will yield an unbiased estimate for $\beta_2$ but not $\beta_1$.
As a whole, this seems intuitive, but I am having trouble proving that the estimator is indeed unbiased for the $\... |
I was reading this answer to a question that asked why TD learning was biased.
The answer showed that TD learning was biased due to the starting value of the value function:
\begin{align}
V_{n+1}(s) &= V_n(s) + \alpha[R + V(s') - V_n(s)] \\
&= (1-\alpha)V_n(s) + \alpha(R + V(s'))\\
&=(1 - \alpha)[V_{n-1}(s) + \alpha[R ... |
I am working on an algorithm which will detect the anomalies in multivariate timeseries.
Suppose there is a time series
My algorithm will compute two equations: lower_equation_y and upper_equation_y.
lower_equation_y = slope1 x X1 + slope2 x X2 + slope3 x X3 + lower_bound_intercept
upper_equation_y = slope1 x X1 + s... |
Suppose that I observe i.i.d. draws of two independent variables, $X$ and $Y$. My goal is to estimate $\mathbb{P}(X < Y)$, preferably in a consistent and unbiased way. How exactly should I do this?
Example and proposed approach. To illustrate, suppose that my draws of $X$ are $(1,2,1,2)$ whereas my draws of $Y$ are $(2... |
The problem is:
Consider the “triangle” learning model, where $h : R^2 → \{−1, +1\}$ and $h(x) = +1$ if $x$ lies within an arbitrarily chosen triangle in the plane and $−1$ otherwise. Which is the largest number of points in $R^2$(among the given choices) that can be shattered by this hypothethesis set?
The answer is... |
I'm working on a study where I want to explore whether two covariates, let's call them C and D, can help explain the differences we observe in our dependent variable, which we'll call B (depression scores). To do this, I'm using another predictor variable, A, which has five different groups (ADHD, ASD, Dyslexia, Dyscal... |
I have an issue when calculating log-likelihood for null model to double-check GLMResults.llnull parameter:
https://www.statsmodels.org/devel/generated/statsmodels.genmod.generalized_linear_model.GLMResults.llnull.html#statsmodels.genmod.generalized_linear_model.GLMResults.llnull
First I generate some data:
from scipy.... |
Let $X$ be a binomial random variable, $X \sim \mathcal{B}(n,p)$.
When $k > \mathbb{E}[X] = np$, are there no Hoeffding-like bounds on the probability $\mathbb{P}[X \leq k]$?
When $k \leq \mathbb{E}[X]$, it is easy to find that $\mathbb{P}[X \leq k] \leq \exp\{-2n(p-k/n)^2\}$, by means of the Hoeffding bound. When $k >... |
Two sets of methods for correcting for selection bias are g-computation (standardisation) and inverse probability of censoring weighting (IPCW). I'm having a difficult time understanding how to apply the former.
As a demonstration, I generate some data from the following DAG - Figure 8.4 from Hernan and Robins Causal I... |
I am performing an analysis on different values of complement (in total 18, 9 in blood and 9 in CSF). We aim to analyze if any of these complement values:
Differentiate between 3 diseases (Disease 1, Disease 2 and Disease 3)
Predict 3 different outcomes (EDSS at last follow up (numerical, with a quantile regression), ... |
I'm currently studying a paper by Winkler et. al on permutation inference for the general linear model and am confused by their reasoning and notation.
They first introduce a formulation for the general linear model:
Y
=
M
ψ
+
ϵ (Eq. 1)
where Y is the N × 1 vector of observed data, M is the full-rank N × r
des... |
I want to simulate data from distributions that are not normal but have equal mean give mean example for these distributions
For example, I have this example for non-normal distributions but have different means
set. Seed(1234)
a<-matrix(rlnorm(30*100, 0,2),100)
b<-matrix(rcauchy(30*100,1,1),100)
c<-matrix(rt(30*100,4)... |
I have simulated data of a 4-dimensional random variable $(X_1,X_2,X_3,X_4)$. The individual pdfs of these random variables, i.e., $X_i$ where $i\in\{1,2,3,4\}$ turns out to be stable distributed with no mean and variance. Though I am able to use fitdist MATLAB COMMAND to fit these distributions to Weibull distribution... |
I calculated Cramer's V by taking the square root of the chi-squared value divided by the product of the sum of all observations and the number of columns minus one. My p-value comes from the bootstrapped sample. The question is does the chisq.test() in R compute also the chi-squared value from the bootstrapped sample?... |
In information geometry, we consider a manifold of probability distributions, together with the Fisher Information metric (given by the Fisher Information matrix).
I have some intuition (see Wikipedia) for what the metric means locally, i.e. the length of infinitesimal vector $d \theta$ on tangent space of point $\the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.