[R] Wald-Wolfowitz runs test vs Monte Carlo, inconsistent results

I have some bernoulli trials and was testing for randomness. I used the Wald-Wolfowitz runs test and got a p value of .003162 for a one-sided test. Curiously, when I simulated 10000 simulations I found that 452 of my simulations had less runs than my data set indicating a much higher p value. To run my simulations I call rbinom(3247, 1, .7717).

The mean number of runs from my monte carlo is 1144.436 which is incredibly close to the runs test mean of 1144.79. What am I missing here? Thanks

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/ActuarialAnalyst
πŸ“…︎ Feb 05 2020
🚨︎ report
[Q] Wald test- definition of restrictions (degrees of freedom)-

Hello all,

I have a question regarding the definition of restrictions in a Wald test statistics. I have the following linear model:

Y = \alpha + \beta X + \delta M + e

I would like to test whether \beta=c and \delta=c (two restrictions and also the null hypothesis), I can re-write it to be \beta-\delta=0 (one restriction). I first impose two restrictions (one on each parameter) or I can collapse the two conditions into one restriction (i.e \beta= \delta).

Can I understand the latter statement (\beta=\delta) to be one restriction and thus have a t-test (special case of Wald test)? And the former statement ( \beta=c and \delta=c) to be a Wald test with two degrees of freedom under the null hypothesis?

I am making the assumption that the two tests should give me the same answer. However I am not sure if I understand how restrictions are defined in a Wald test.

Thank you!

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Lambdapie
πŸ“…︎ Dec 21 2021
🚨︎ report
Linear mixed models, type II Wald Chi Square tests: Does including higher order interaction terms in the model meaningfully affect results for lower order terms?

My understanding of type II testing is that you compare a model with each tested factor, and all equivalent or lower-order terms, with a model excluding that factor. For example for y ~ a+b + ab, a type II significance test of a would involve comparing y ~ a + b with y ~b. The fact that the full model under consideration includes an additional term (ab) appears irrelevant to that test. From what I understand then, including higher order interactions in the model should not affect type II tests of lower interaction terms. The way I imagine doing a likelihood ratio, you would fit the sub-models mentioned above and compare their likelihoods with no reference to the full model. I understand the Wald test to be an approximation of the likelihood ratio. However, when I check the results for type II Wald tests in R on mixed models with and without interaction terms, I see some small differences in results for the lower order terms when an interaction is included, as shown below.

Is my understanding of type II testing correct? If so, I assume the differences introduced by the interaction term are due to numerical issues, or the Wald test being an approximation?

library(lme4) library(car) 

#Wald type II chi square tests on model including interaction term 

m <- lmer(angle ~ recipe * temperature + (1|replicate), cake) 

Anova(m)

 #Wald type II chi square tests on model excluding interaction term

 m2 <- lmer(angle ~ recipe + temperature + (1|replicate), cake) 

Anova(m2)
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/lukeS-32
πŸ“…︎ Dec 06 2021
🚨︎ report
Can i use Wald Test after ologit? Does it even make sense?

Hi everybody, my issue is that i’m not even sure if i should use wald test after ologit, so for an ordinal logistic regression. I tried it out but it didn’t work.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Blaz092
πŸ“…︎ Oct 22 2021
🚨︎ report
[Q] Terminology question: Wald Tests

I have a question about what is meant by Wald tests. Based on the contexts of where I have read it, as well as some notes like the Wikipedia entry, my understanding is any test that is formulated by a measure of distance between the estimated value and hypothesized value is a Wald Test?

So the distribution of the test is not relevant, just if it is a distance it can be called a Wald Test? so a T test, F test, z -test, chi-square etc. are all types of Wald Tests, that have a particular distribution?

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/Whynvme
πŸ“…︎ Jun 20 2021
🚨︎ report
matrix - wald_test

I want to test whether there is an effect of group for a three level variable using a Wald_test:

yi ~ 0 + Group + Group:Variable

How can I write the matrix?

I tried the following but it states that it should be a q*6 matrix

Wald_test(model, constraints = matrix(c(1,0,0,0,1,0,0,0,1, vcov = "CR2")]

Does anyone have a good grasp or resources of how to go about this?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/majorcatlover
πŸ“…︎ Aug 11 2021
🚨︎ report
[Question]Why there is no denominator in the Wald test?

I’m taking and adv econometrics class and my professor said that the Wald test is the asynthotic equivalent of the F test.

I get that a F distribution can be approximated to a chi square as the sample size increases. However in the F test formula has at the denominator the sample variance (s^2) divided by degrees of freedom of the chi square: number of restrictions r and the N-K (N is the sample size and K number of parameters to be tested). I don’t get why in the Wald test we correct only for r degrees of freedom and and if the variance estimator we use is same s^2 we used for the F-test. I hope I was clear enough, sorry for the mistakes and thank you redditors!

#waldtest

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/julesboh
πŸ“…︎ Mar 21 2021
🚨︎ report
Social distancing ourselves and doing a gear test. Timberjack and Karate Monkey. I'm gonna sell the handlebar bag and get a Wald 137.
πŸ‘︎ 197
πŸ’¬︎
πŸ‘€︎ u/abhinavsix
πŸ“…︎ Mar 17 2020
🚨︎ report
Interpreting Wald's sequential probability ratio test reddit.com/gallery/k20ekm
πŸ‘︎ 19
πŸ’¬︎
πŸ‘€︎ u/Hansmagnetron
πŸ“…︎ Nov 27 2020
🚨︎ report
Rainy evening beer run with the new Wald.
πŸ‘︎ 63
πŸ’¬︎
πŸ“…︎ Sep 04 2020
🚨︎ report
[E] Interactive post illustrating Maximum Likelihood, Likelihood Ratio Test, Wald Test, and Score Test
πŸ‘︎ 116
πŸ’¬︎
πŸ‘€︎ u/Stauce52
πŸ“…︎ Apr 21 2020
🚨︎ report
[Q] Quadratic regression - wald test

So I have this quadratic regression with two parameters. One of these parameters is squared and have a coefficient of 0.15 (b2) and the other is -1.17 (b1). My constant/intercept is 140 (b0). So my question is: based on a degree 2 polynomial model, do the wald test that was run to test association between X and mean outcome Y, take into account both coefficients or only one of them (either b1 or b2)? Also the test stat that I obtained, gave a t stat of -5.45 (P>t 0.000) for b1 and 1.83 (P>t 0.07) for b2. My second question is, does the wald test (5% level) still reject my null hypothesis of no linearity, despite the bigger p-value obtained for b2?

πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Mar 12 2021
🚨︎ report
Is the p value output of glm(family=binomial) the result of the wald test?
input <- mtcars[,c("am","cyl","hp","wt")]
fit <- glm(formula = am ~ cyl + hp + wt, data = input, family = 
binomial)
summary(fit)

column Pr(>|z|) is the result of the wald test correct?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/python_noob_001
πŸ“…︎ Nov 24 2020
🚨︎ report
Better to use wald test or likelihood ratio test to make pairwise comparisons after omnibus test in this scenario? [Question]

I am testing the association between a gene and a binary disease

The gene has many different "versions". These versions are called alleles.

I am also including covariates for sex, age, etc.

Right now I am doing omnibus test for the gene like this (pseudocode): full<- "disease ~ sex + age + allele1 + allele2 + allele3" null<- "disease ~ sex + age" lr_test <- anova(null, full, test='Chisq')

I realize that after this I could use the wald test results to determine how significant each allele of the gene is, but I am wondering if this is best done with the LR test, which would allow me to account for the covariates on each allele comparisons, sort of like this:

full1<- "disease ~ sex + age + allele1" null<- "disease ~ sex + age" lr_test1 <- anova(null, full1, test='Chisq')

full2<- "disease ~ sex + age + allele2" null<- "disease ~ sex + age" lr_test2 <- anova(null, full2, test='Chisq'), etc.

My gut feeling is that the LR approach for the pairwise allele comparisons would be better than wald. Is this the case?

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/python_noob_001
πŸ“…︎ Dec 27 2020
🚨︎ report
Eviation’s electric commuter plane Alice doing engine runs and prepping for high speed taxi tests, north of Seattle, January 10, 2022
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/_SP3CT3R
πŸ“…︎ Jan 11 2022
🚨︎ report
Wald delivery basket is very crucial for diet Pepsi runs
πŸ‘︎ 41
πŸ’¬︎
πŸ‘€︎ u/uglyjoeshreds
πŸ“…︎ Jun 19 2020
🚨︎ report
Basket bottom made from western red cedar, nice and light but strong. Milled from the log, fitted to a Wald 137 basket. Passed the very stringent pie test. reddit.com/gallery/i3hl7r
πŸ‘︎ 28
πŸ’¬︎
πŸ‘€︎ u/simplicityweb
πŸ“…︎ Aug 04 2020
🚨︎ report
Eviation’s electric commuter plane Alice doing engine runs and prepping for high speed taxi tests, north of Seattle, January 10, 2022
πŸ‘︎ 938
πŸ’¬︎
πŸ‘€︎ u/Neumean
πŸ“…︎ Jan 11 2022
🚨︎ report
Help understanding DESeq2 Wald test

Hi,

Sorry if this has been asked before, I tried searching and couldn't find an answer (At least one that I could understand).

I'm having trouble understanding how DEseq2 prepares the data to perform the Wald test. I tried reading the DESeq2 paper and the vignette as well as looking through various tutorials. I've found an illustration of the Wald test that makes sense to me but I'm having trouble putting it in the context of RNA seq analysis. According to (1) the Wald test calculates the probability of a_0 given the data which has been fit with maximum likelihood a-hat.

(1)

So in RNA-seq data the a-hat is the maximum likelihood for the fold change of a gene between two groups, say Control and Treated. a_0 is the null hypothesis that the fold change is zero (No change in expression for that gene). What I'm wondering about is how this model takes into account the variability in the data. Both the Treated and Control groups will have a standard error, how are both of these used in the analysis?

Let's say I have two biological replicates for the Control group and two for the Treated group, is it fair to think of it like I've illustrated in (2) where I calculate the fold change for all possible combinations of Control to Treatment samples (C1/T1, C1/T2, C2/T1, C2/T2). Then I can set a_0 to 0 and a-hat to the maximum likelihood for these pairwise fold changes.

(2)

I know this is probably convoluted and confusing. I'm working on improving my literacy in statistics but it's a process, so for now pictures help me. Thanks for reading and any help you can provide!

πŸ‘︎ 20
πŸ’¬︎
πŸ‘€︎ u/spraycanhead
πŸ“…︎ Apr 26 2020
🚨︎ report
Consistency Wald Test

How can I prove that the Wald test is consistent? We have been given as hint that we need to find an estimator for sigma squared under the null hypothesis, alternative hypothesis and the whole parameter space. Then we need to find how the sigma under the alternative hypothesis corresponds with the other two.

P.S. With the wald test I mean ni(\hat{\theta}_n)(\hat{\theta}_n - \theta_0)^2

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/math_geek1
πŸ“…︎ Oct 27 2020
🚨︎ report
There are 195 cricketers who have opened the batting at least 25 times in the history of Test cricket. Of them, Marcus Harris ranks 193rd in terms of runs scored (607) and 192nd in terms of highest individual score (79). @nic_savage1
πŸ‘︎ 731
πŸ’¬︎
πŸ“…︎ Jan 08 2022
🚨︎ report
Most Test runs in 2021
πŸ‘︎ 1k
πŸ’¬︎
πŸ“…︎ Dec 31 2021
🚨︎ report
Conway moves to 5th on the list of batters with most test runs in their first 5 matches with an innings in hand.
πŸ‘︎ 627
πŸ’¬︎
πŸ‘€︎ u/MarrionberryJam
πŸ“…︎ Jan 09 2022
🚨︎ report
Eviation’s electric commuter plane Alice doing engine runs and prepping for high speed taxi tests, north of Seattle, January 10, 2022
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/_SP3CT3R
πŸ“…︎ Jan 11 2022
🚨︎ report
Armoured Car CEO takes in the bullet shots to prove the security in the test run v.redd.it/w12q0jgax6z71
πŸ‘︎ 17k
πŸ’¬︎
πŸ‘€︎ u/BoredAF_211
πŸ“…︎ Nov 12 2021
🚨︎ report
PWInsider: β€œComing out of this past weekend’s loop of live events & TV tapings, a number of talents & staff were feeling run down & some have since tested positive for COVID-19, while others who were feeling sick are still waiting for their test results to return.” pwinsider.com/ViewArticle…
πŸ‘︎ 707
πŸ’¬︎
πŸ‘€︎ u/Strike_Gently
πŸ“…︎ Dec 22 2021
🚨︎ report
My girlfriend and I just completed our first test run of our real life Inscryption game and it turned out really fun! Check out our setup! reddit.com/gallery/rzbazh
πŸ‘︎ 754
πŸ’¬︎
πŸ‘€︎ u/GuineaPigLover98
πŸ“…︎ Jan 08 2022
🚨︎ report
This year in test matches batters scored 39662 runs at an average of 27.27, fifth worst in the history of test cricket. stats.espncricinfo.com/ci…
πŸ‘︎ 451
πŸ’¬︎
πŸ‘€︎ u/Ancalagon523
πŸ“…︎ Dec 31 2021
🚨︎ report
David Warner moves into the top 10 for most Test runs for Australia
πŸ‘︎ 983
πŸ’¬︎
πŸ‘€︎ u/ll--o--ll
πŸ“…︎ Dec 16 2021
🚨︎ report
My van life test run and what I found challenging

I’m finally on the road for a few weeks to try this out. So far my biggest challenge is figuring out where to sleep. I have the iOverlander app and have found spots but it’s still been harder than I expected. I’ve run in to a van dweller bias. Tried a casino that allows overnight camping, but they turned me away for being in a van and not an RV. Also got rejected from a private campground for the same reason. I’ve been too anxious to try stealth camping, so have mostly been staying at campgrounds, but paying for a campground every night is not sustainable. So working on getting my nerve up for stealth mode. I think I’ve collected a lot of good advice on picking a spot, I just need to do it. I’m hoping it will feel easier after a few times.

πŸ‘︎ 107
πŸ’¬︎
πŸ‘€︎ u/User5790
πŸ“…︎ Jan 11 2022
🚨︎ report
Front End Friday Essentials Grocery Run - Wald 274
πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/BayTrails
πŸ“…︎ Jun 05 2020
🚨︎ report
Loopring team run tests on their code to support MOASS scenarios!

The new version of loopring sdk was released today, with an major version update from 0.2.9 to 1.3.2 - means it's production ready!

But before your tits relax a bit, have a look at this bug - https://github.com/Loopring/loopring-web-v2/issues/211

Turns out Loopring exchange price chart DOESN'T support at the moment assets with, and I quote, when amplitude is tremendous large.

Now, what kind of assets do they want to support, which have tremendously large amplitude?

Are they running tests on assets with a MOASS scenario in mind?!?!?!

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/Training-Ad-803
πŸ“…︎ Dec 02 2021
🚨︎ report
I got six weeks before I take a PT test. How can I improve my run time in between these next couple of weeks?
πŸ‘︎ 63
πŸ’¬︎
πŸ‘€︎ u/SoMuchPainz
πŸ“…︎ Jan 03 2022
🚨︎ report
Completed the Albedo test run just as I triggered his elemental burst v.redd.it/mh4zfb4f3j381
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/AmethystSunsets
πŸ“…︎ Dec 04 2021
🚨︎ report
Most test runs in a calender year.
πŸ‘︎ 358
πŸ’¬︎
πŸ‘€︎ u/pappu_bhosdi_69
πŸ“…︎ Dec 28 2021
🚨︎ report
[Question]Why there is no denominator in the Wald Test?

[Question]Why there is no denominator in the Wald test?

I’m taking and adv econometrics class and my professor said that the Wald test is the asynthotic equivalent of the F test.

I get that a F distribution can be approximated to a chi square as the sample size increases. However in the F test formula has at the denominator the sample variance (s^2) divided by degrees of freedom of the chi square: number of restrictions r and the N-K (N is the sample size and K number of parameters to be tested). I don’t get why in the Wald test we correct only for r degrees of freedom and and if the variance estimator we use is same s^2 we used for the F-test. I hope I was clear enough, sorry for the mistakes and thank you redditors!

#waldtest

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/julesboh
πŸ“…︎ Mar 21 2021
🚨︎ report
[University: Statistics] Wald Test consistency

How can I prove that the Wald test is consistent? We have been given as hint that we need to find an estimator for sigma squared under the null hypothesis, alternative hypothesis and the whole parameter space. Then we need to find how the sigma under the alternative hypothesis corresponds with the other two.

P.S. With the wald test I mean ni(\hat{\theta}_n)(\hat{\theta}_n - \theta_0)^2

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/math_geek1
πŸ“…︎ Oct 27 2020
🚨︎ report
Consistency of the Wald Test

How can I prove that the Wald test is consistent? We have been given as hint that we need to find an estimator for sigma squared under the null hypothesis, alternative hypothesis and the whole parameter space. Then we need to find how the sigma under the alternative hypothesis corresponds with the other two.

P.S. With the wald test I mean ni(\hat{\theta}_n)(\hat{\theta}_n - \theta_0)^2

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/math_geek1
πŸ“…︎ Oct 27 2020
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.