21 Testing Problems

Total Page:16

File Type:pdf, Size:1020Kb

21 Testing Problems 21 Testing Problems Testing is certainly another fundamental problem of inference. It is interestingly different from estimation. The accuracy measures are fundamentally different and the appropriate asymptotic theory is also different. Much of the theory of testing has revolved somehow or other on the Neyman-Pearson lemma, which has led to a lot of ancillary developments in other problems in mathematical statistics. Testing has ledto the useful idea of local alternatives, and like maximum likelihood in estimation, likelihood ratio, Wald, and Rao score tests have earned the status of default methods, with a neat and quite unified asymptotic theory. Because of all these reasons, a treatment of testing is essential. We discuss the asymptotic theory of likelihood ratio, Wald, and Rao score tests in this chapter. Principal references for this chapter are Bickel and Doksum (2001), Ferguson (1996), and Sen and Singer (1993). Many other specific references are given in the sections. 21.1 Likelihood Ratio Tests The likelihood ratio test is a general omnibus test applicable, in principle, in most (n) finite dimensional parametric problems. Thus, let X =(X1,...,Xn)bethe n (n) observed data with joint distribution Pθ ¿ µn, θ ∈ Θ, and density fθ(x )= n dPθ /dµn. Here, µn is some appropriate σ-finite measure on Xn, which we assume to be a subset of an Euclidean space. For testing H0 : θ ∈ Θ0 vs. H1 : θ ∈ Θ − Θ0, the likelihood ratio test (LRT) rejects H0 for small values of (n) supθ∈Θ0 fθ(x ) n Λ = (n) supθ∈Θ fθ(x ) The motivation for Λn comes from two sources: (a) The case where H0, H1 are each simple, a most powerful (MP) test is found from Λn by the Neyman-Pearson lemma. (b) The intuitive explanation that for small values of Λn we can better match the observed data with some value of θ outside of Θ0. LRTs are useful because they are omnibus tests and because otherwise optimal tests for a given sample size n are generally hard to find outside of the exponential family. However the LRT is not a universal test. There are important examples where the LRT simply cannot be used, because the null distribution of the LRT test statistic depends on nuisance parameters. Also, the exact distribution of the LRT 319 statistic is very difficult or impossible to find in many problems. Thus, asymptotics become really important. But the asymptotics of the LRT may be nonstandard under nonstandard conditions. Although we only discuss the case of a parametric model with a fixed finite di- mensional parameter space, LRTs and their useful modifications have been studied when the number of parameters grows with the sample size n, and in nonparamet- ric problems. See, e.g., Portnoy(1988),Fan,Hung and Wong(2000), and Fan and Zhang(2001). We start with a series of examples, which illustrate various important aspects of the likelihood ratio method. 21.2 Examples iid 2 Example 21.1. Let X1,X2,... ,Xn ∼ N(µ, σ ) and consider testing H0 : µ =0vs.H1 : µ =06 . Let θ =(µ, σ2). Then, ¡ P ¢ µP ¶n/ n 1 2 2 − i − − 2 supθ∈Θ0 (1/σ )exp 2σ2 i(X µ) i(Xi Xn) n ¡ P ¢ P Λ = n 1 = 2 − i − 2 supθ∈Θ(1/σ )exp 2σ2 i(X µ) i Xi by an elementary calculation of mles of θ under H0 and in the general parameter 2 space. By another elementary calculation, Λn <cis seen to be equivalent to tn >k where √ nXn tn = q P 1 2 i − n n−1 i(X X ) is the t-statistic. In other words, the t-test is the LRT. Also, observe that, 2 2 nXn tn = P 1 2 i − n n−1 i(X X ) P P 2 2 X − (Xi − Xn) = i i P i 1 − 2 n− i(Xi Xn) 1 P − 2 (n 1) i Xi − − = P 2 (n 1) i(Xi − Xn) −2/n =(n − 1)Λn − (n − 1) 320 This implies, µ ¶n/ n − 1 2 n Λ = 2 tn + n − 1 n n − 1 ⇒ log Λn = log 2 t2 + n − 1 µ n ¶ 2 tn ⇒−2logΛn = n log 1+ n − 1 µ µ ¶¶ 2 2 tn tn = n + op n − 1 n − 1 −→L 2 χ1 L under H0 since tn −→ N(0, 1) under H0. Example 21.2. Consider a multinomial distribution MN(n, p1, ··· ,pk). Consider testing H0 : p1 = p2 = ···= pk vs. H1 : H0 is not true. Let n1, ··· ,nk denote the observed cell frequencies. Then by an elementary calcu- lation, µ ¶ ni k n Λn =Πi=1 kni k k X ⇒−log Λn = n(log )+ ni log ni n i=1 The exact distribution of this is a messy discrete object and so asymptotics will be useful. We illustrate the asymptotic distribution for k =2.Inthiscase, − log Λn = n log 2 − n log n + n1 log n1 +(n − n1)log(n − n1) p Let Zn =(n1 − n/2)/ n/4. Then, − log Λn = n log 2 − n log n √ √ √ √ n + nZn n + nZn n − nZn n − nZn + log + log 2 √ 2 2 √ 2 n + nZn √ n − nZn √ = −n log n + log(n + nZn)+ log(n − nZn) √ 2 √ 2 n + nZn Zn n − nZn Zn = log(1 + √ )+ log(1 − √ ) 2 n 2 n √ µ µ ¶¶ 2 2 n + nZn Zn Zn Zn = √ − + op 2 n 2n n 321 √ µ µ ¶¶ 2 2 n − nZn Zn Zn Zn + −√ − + op 2 n 2n n 2 Zn = + op(1). 2 L L − −→ 2 −→ Hence 2logΛn χ1 under H0 as Zn N(0, 1) under H0. Remark: The popular test in this problem is the Pearson chi-square test which rejects H0 for large values of P k − 2 i=1(ni n/k) n/k 2 Interestingly this test statistic too has an asymptotic χ1 distribution as does the LRT statistic. Example 21.3. This example shows that the chi-square asymptotics of the LRT statistic fail when parameters have constraints or somehow there is a boundary phe- nomenon. iid Let X1,X2,... ,Xn ∼ N2(θ, I) where the parameter space is restricted to Θ = {θ = (θ1,θ2):θ1 ≥ 0,θ2 ≥ 0}. Consider testing H0 : θ =0vs. H1 : H0 is not true. T We would write the n realizations as xi =(x1i,x2i) and the sample average would be denoted by x =(x1, x2). The mle of θ is given by, à ! x ∨ 0 θˆ = 1 x2 ∨ 0 Therefore by an elementary calculation, P P − 2 − 2 exp( i x1i/2 i x2i/2) n P P Λ = 2 2 exp(− i(x1i − x1 ∨ 0) /2 − i(x2i − x2 ∨ 0) /2) Case 1: x1 ≤ 0, x2 ≤ 0. In this case Λn =1and−2logΛn =0. ≤ − 2 Case 2: x1 > 0, x2 0. In this case 2logΛn = nx1. ≤ − 2 Case 3: x1 0, x2 > 0. In this case 2logΛn = nx2. 322 − 2 2 Case 4: x1 > 0, x2 > 0. In this case 2logΛn = nx1 + nx2. Now, under H0 each of the above four cases has a probability 1/4 of occurrence. Therefore, under H0, L 1 1 2 1 2 −2logΛn −→ δ{ } + χ + χ , 4 0 2 1 4 2 in the sense of the mixture distribution being its weak limit. Example 21.4. In bio-equivalence trials, a brand name drug and a generic are compared with regard to some important clinical variable, such as average drug concentration in blood over a 24 hour time period. By testing for a difference, the problem is reduced to a single variable, often assumed to be normal. Formally, one iid 2 has X1,X2,... ,Xn ∼ N(µ, σ ) and the bio-equivalence hypothesis is: H0 : |µ|≤² for some specified ²>0. Inference is always significantly harder if known constraints on the parameters are enforced. Casella and Strawderman(1980) is a standard introduction to the normal mean problem with restrictions on the mean; Robertson,Wright and Dykstra (1988) is an almost encyclopedic exposition. Coming back to our example, to derive the LRT, we need the restricted mle and the non-restricted mle. We will assume here that σ2 is known. Then the MLE under H0 is ¯ ¯ µˆH0 = X if |X|≤² = ²sign(X¯)if|X¯| >². Consequently, the LRT statistic Λn satisfies, −2logΛn =0 if |X¯|≤² n = (X¯ − ²)2 if X>²¯ σ2 n = (X¯ + ²)2 if X<¯ −². σ2 Take a fixed µ. Then, µ√ ¶ µ√ ¶ n(² − µ) n(² + µ) Pµ(|X¯|≤²)=Φ +Φ − 1 σ σ µ √ ¶ n(² + µ) Pµ(X<¯ −²)=Φ − σ 323 and µ√ ¶ n(² − µ) Pµ(X>²¯ )=1− Φ σ From these expressions we get: ¯ L Case 1: If −²<µ<²then Pµ(|X|≤²) → 1andso−2logΛn −→ δ{0}. Case 2.a: If µ = −² then each of Pµ(|X¯|≤²)andPµ(X<¯ −²) converges to 1/2. In L 1 1 2 − n −→ this case, 2logΛ 2 δ{0} + 2 χ1, i.e., the mixture of a point mass and a chisquare distribution. L 1 1 2 − n −→ Case 2.b: Similarly if µ = ² then again, 2logΛ 2 δ{0} + 2 χ1. Case 3: If µ>²then Pµ(|X¯|≤²) → 0andPµ(X>²¯ ) → 1. In this case, L 2 2 2 −2logΛn −→ NCχ (1, (µ − ²) /σ )), a noncentral chisquare distribution. L 2 2 2 Case 4: Likewise, if µ<−² then −2logΛn −→ NCχ (1, (µ + ²) /σ )). So, unfortunately, even the null asymptotic distribution of − log Λn depends on the exact value of µ. Example 21.5. Consider the Behrens-Fisher problem with iid ∼ 2 X1,X2,... ,Xm N(µ1,σ1) iid ∼ 2 Y1,Y2,... ,Yn N(µ2,σ2) and all m + n observations are independent. We want to test H0 : µ1 = µ2 vs. H1 : µ1 =6 µ2.
Recommended publications
  • Three Statistical Testing Procedures in Logistic Regression: Their Performance in Differential Item Functioning (DIF) Investigation
    Research Report Three Statistical Testing Procedures in Logistic Regression: Their Performance in Differential Item Functioning (DIF) Investigation Insu Paek December 2009 ETS RR-09-35 Listening. Learning. Leading.® Three Statistical Testing Procedures in Logistic Regression: Their Performance in Differential Item Functioning (DIF) Investigation Insu Paek ETS, Princeton, New Jersey December 2009 As part of its nonprofit mission, ETS conducts and disseminates the results of research to advance quality and equity in education and assessment for the benefit of ETS’s constituents and the field. To obtain a PDF or a print copy of a report, please visit: http://www.ets.org/research/contact.html Copyright © 2009 by Educational Testing Service. All rights reserved. ETS, the ETS logo, GRE, and LISTENING. LEARNING. LEADING. are registered trademarks of Educational Testing Service (ETS). SAT is a registered trademark of the College Board. Abstract Three statistical testing procedures well-known in the maximum likelihood approach are the Wald, likelihood ratio (LR), and score tests. Although well-known, the application of these three testing procedures in the logistic regression method to investigate differential item function (DIF) has not been rigorously made yet. Employing a variety of simulation conditions, this research (a) assessed the three tests’ performance for DIF detection and (b) compared DIF detection in different DIF testing modes (targeted vs. general DIF testing). Simulation results showed small differences between the three tests and different testing modes. However, targeted DIF testing consistently performed better than general DIF testing; the three tests differed more in performance in general DIF testing and nonuniform DIF conditions than in targeted DIF testing and uniform DIF conditions; and the LR and score tests consistently performed better than the Wald test.
    [Show full text]
  • Testing for INAR Effects
    Communications in Statistics - Simulation and Computation ISSN: 0361-0918 (Print) 1532-4141 (Online) Journal homepage: https://www.tandfonline.com/loi/lssp20 Testing for INAR effects Rolf Larsson To cite this article: Rolf Larsson (2020) Testing for INAR effects, Communications in Statistics - Simulation and Computation, 49:10, 2745-2764, DOI: 10.1080/03610918.2018.1530784 To link to this article: https://doi.org/10.1080/03610918.2018.1530784 © 2019 The Author(s). Published with license by Taylor & Francis Group, LLC Published online: 21 Jan 2019. Submit your article to this journal Article views: 294 View related articles View Crossmark data Full Terms & Conditions of access and use can be found at https://www.tandfonline.com/action/journalInformation?journalCode=lssp20 COMMUNICATIONS IN STATISTICS - SIMULATION AND COMPUTATIONVR 2020, VOL. 49, NO. 10, 2745–2764 https://doi.org/10.1080/03610918.2018.1530784 Testing for INAR effects Rolf Larsson Department of Mathematics, Uppsala University, Uppsala, Sweden ABSTRACT ARTICLE HISTORY In this article, we focus on the integer valued autoregressive model, Received 10 April 2018 INAR (1), with Poisson innovations. We test the null of serial independ- Accepted 25 September 2018 ence, where the INAR parameter is zero, versus the alternative of a KEYWORDS positive INAR parameter. To this end, we propose different explicit INAR model; Likelihood approximations of the likelihood ratio (LR) statistic. We derive the limit- ratio test ing distributions of our statistics under the null. In a simulation study, we compare size and power of our tests with the score test, proposed by Sun and McCabe [2013. Score statistics for testing serial depend- ence in count data.
    [Show full text]
  • Wald (And Score) Tests
    Wald (and Score) Tests 1 / 18 Vector of MLEs is Asymptotically Normal That is, Multivariate Normal This yields I Confidence intervals I Z-tests of H0 : θj = θ0 I Wald tests I Score Tests I Indirectly, the Likelihood Ratio tests 2 / 18 Under Regularity Conditions (Thank you, Mr. Wald) a.s. I θbn → θ √ d −1 I n(θbn − θ) → T ∼ Nk 0, I(θ) 1 −1 I So we say that θbn is asymptotically Nk θ, n I(θ) . I I(θ) is the Fisher Information in one observation. I A k × k matrix ∂2 I(θ) = E[− log f(Y ; θ)] ∂θi∂θj I The Fisher Information in the whole sample is nI(θ) 3 / 18 H0 : Cθ = h Suppose θ = (θ1, . θ7), and the null hypothesis is I θ1 = θ2 I θ6 = θ7 1 1 I 3 (θ1 + θ2 + θ3) = 3 (θ4 + θ5 + θ6) We can write null hypothesis in matrix form as θ1 θ2 1 −1 0 0 0 0 0 θ3 0 0 0 0 0 0 1 −1 θ4 = 0 1 1 1 −1 −1 −1 0 θ5 0 θ6 θ7 4 / 18 p Suppose H0 : Cθ = h is True, and Id(θ)n → I(θ) By Slutsky 6a (Continuous mapping), √ √ d −1 0 n(Cθbn − Cθ) = n(Cθbn − h) → CT ∼ Nk 0, CI(θ) C and −1 p −1 Id(θ)n → I(θ) . Then by Slutsky’s (6c) Stack Theorem, √ ! n(Cθbn − h) d CT → . −1 I(θ)−1 Id(θ)n Finally, by Slutsky 6a again, −1 0 0 −1 Wn = n(Cθb − h) (CId(θ)n C ) (Cθb − h) →d W = (CT − 0)0(CI(θ)−1C0)−1(CT − 0) ∼ χ2(r) 5 / 18 The Wald Test Statistic −1 0 0 −1 Wn = n(Cθbn − h) (CId(θ)n C ) (Cθbn − h) I Again, null hypothesis is H0 : Cθ = h I Matrix C is r × k, r ≤ k, rank r I All we need is a consistent estimator of I(θ) I I(θb) would do I But it’s inconvenient I Need to compute partial derivatives and expected values in ∂2 I(θ) = E[− log f(Y ; θ)] ∂θi∂θj 6 / 18 Observed Fisher Information I To find θbn, minimize the minus log likelihood.
    [Show full text]
  • Comparison of Wald, Score, and Likelihood Ratio Tests for Response Adaptive Designs
    Journal of Statistical Theory and Applications Volume 10, Number 4, 2011, pp. 553-569 ISSN 1538-7887 Comparison of Wald, Score, and Likelihood Ratio Tests for Response Adaptive Designs Yanqing Yi1∗and Xikui Wang2 1 Division of Community Health and Humanities, Faculty of Medicine, Memorial University of Newfoundland, St. Johns, Newfoundland, Canada A1B 3V6 2 Department of Statistics, University of Manitoba, Winnipeg, Manitoba, Canada R3T 2N2 Abstract Data collected from response adaptive designs are dependent. Traditional statistical methods need to be justified for the use in response adaptive designs. This paper gener- alizes the Rao's score test to response adaptive designs and introduces a generalized score statistic. Simulation is conducted to compare the statistical powers of the Wald, the score, the generalized score and the likelihood ratio statistics. The overall statistical power of the Wald statistic is better than the score, the generalized score and the likelihood ratio statistics for small to medium sample sizes. The score statistic does not show good sample properties for adaptive designs and the generalized score statistic is better than the score statistic under the adaptive designs considered. When the sample size becomes large, the statistical power is similar for the Wald, the sore, the generalized score and the likelihood ratio test statistics. MSC: 62L05, 62F03 Keywords and Phrases: Response adaptive design, likelihood ratio test, maximum likelihood estimation, Rao's score test, statistical power, the Wald test ∗Corresponding author. Fax: 1-709-777-7382. E-mail addresses: [email protected] (Yanqing Yi), xikui [email protected] (Xikui Wang) Y. Yi and X.
    [Show full text]
  • Robust Score and Portmanteau Tests of Volatility Spillover Mike Aguilar, Jonathan B
    Journal of Econometrics 184 (2015) 37–61 Contents lists available at ScienceDirect Journal of Econometrics journal homepage: www.elsevier.com/locate/jeconom Robust score and portmanteau tests of volatility spillover Mike Aguilar, Jonathan B. Hill ∗ Department of Economics, University of North Carolina at Chapel Hill, United States article info a b s t r a c t Article history: This paper presents a variety of tests of volatility spillover that are robust to heavy tails generated by Received 27 March 2012 large errors or GARCH-type feedback. The tests are couched in a general conditional heteroskedasticity Received in revised form framework with idiosyncratic shocks that are only required to have a finite variance if they are 1 September 2014 independent. We negligibly trim test equations, or components of the equations, and construct heavy Accepted 1 September 2014 tail robust score and portmanteau statistics. Trimming is either simple based on an indicator function, or Available online 16 September 2014 smoothed. In particular, we develop the tail-trimmed sample correlation coefficient for robust inference, and prove that its Gaussian limit under the null hypothesis of no spillover has the same standardization JEL classification: C13 irrespective of tail thickness. Further, if spillover occurs within a specified horizon, our test statistics C20 obtain power of one asymptotically. We discuss the choice of trimming portion, including a smoothed C22 p-value over a window of extreme observations. A Monte Carlo study shows our tests provide significant improvements over extant GARCH-based tests of spillover, and we apply the tests to financial returns data. Keywords: Finally, based on ideas in Patton (2011) we construct a heavy tail robust forecast improvement statistic, Volatility spillover which allows us to demonstrate that our spillover test can be used as a model specification pre-test to Heavy tails Tail trimming improve volatility forecasting.
    [Show full text]
  • Statistical Asymptotics Part II: First-Order Theory
    First-Order Asymptotic Theory Statistical Asymptotics Part II: First-Order Theory Andrew Wood School of Mathematical Sciences University of Nottingham APTS, April 15-19 2013 Andrew Wood Statistical Asymptotics Part II: First-Order Theory First-Order Asymptotic Theory Structure of the Chapter This chapter covers asymptotic normality and related results. Topics: MLEs, log-likelihood ratio statistics and their asymptotic distributions; M-estimators and their first-order asymptotic theory. Initially we focus on the case of the MLE of a scalar parameter θ. Then we study the case of the MLE of a vector θ, first without and then with nuisance parameters. Finally, we consider the more general setting of M-estimators. Andrew Wood Statistical Asymptotics Part II: First-Order Theory First-Order Asymptotic Theory Motivation Statistical inference typically requires approximations because exact answers are usually not available. Asymptotic theory provides useful approximations to densities or distribution functions. These approximations are based on results from probability theory. The theory underlying these approximation techniques is valid as some quantity, typically the sample size n [or more generally some measure of information], goes to infinity, but the approximations obtained are often accurate even for small sample sizes. Andrew Wood Statistical Asymptotics Part II: First-Order Theory First-Order Asymptotic Theory Test statistics Consider testing the null hypothesis H0 : θ = θ0, where θ0 is an arbitrary specified point in Ωθ. If desired, we may
    [Show full text]
  • Econometrics-I-11.Pdf
    Econometrics I Professor William Greene Stern School of Business Department of Economics 11-1/78 Part 11: Hypothesis Testing - 2 Econometrics I Part 11 – Hypothesis Testing 11-2/78 Part 11: Hypothesis Testing - 2 Classical Hypothesis Testing We are interested in using the linear regression to support or cast doubt on the validity of a theory about the real world counterpart to our statistical model. The model is used to test hypotheses about the underlying data generating process. 11-3/78 Part 11: Hypothesis Testing - 2 Types of Tests Nested Models: Restriction on the parameters of a particular model y = 1 + 2x + 3T + , 3 = 0 (The “treatment” works; 3 0 .) Nonnested models: E.g., different RHS variables yt = 1 + 2xt + 3xt-1 + t yt = 1 + 2xt + 3yt-1 + wt (Lagged effects occur immediately or spread over time.) Specification tests: ~ N[0,2] vs. some other distribution (The “null” spec. is true or some other spec. is true.) 11-4/78 Part 11: Hypothesis Testing - 2 Hypothesis Testing Nested vs. nonnested specifications y=b1x+e vs. y=b1x+b2z+e: Nested y=bx+e vs. y=cz+u: Not nested y=bx+e vs. logy=clogx: Not nested y=bx+e; e ~ Normal vs. e ~ t[.]: Not nested Fixed vs. random effects: Not nested Logit vs. probit: Not nested x is (not) endogenous: Maybe nested. We’ll see … Parametric restrictions Linear: R-q = 0, R is JxK, J < K, full row rank General: r(,q) = 0, r = a vector of J functions, R(,q) = r(,q)/’. Use r(,q)=0 for linear and nonlinear cases 11-5/78 Part 11: Hypothesis Testing - 2 Broad Approaches Bayesian: Does not reach a firm conclusion.
    [Show full text]
  • Power Analysis for the Wald, LR, Score, and Gradient Tests in a Marginal Maximum Likelihood Framework: Applications in IRT
    Power analysis for the Wald, LR, score, and gradient tests in a marginal maximum likelihood framework: Applications in IRT Felix Zimmer1, Clemens Draxler2, and Rudolf Debelak1 1University of Zurich 2The Health and Life Sciences University March 9, 2021 Abstract The Wald, likelihood ratio, score and the recently proposed gradient statistics can be used to assess a broad range of hypotheses in item re- sponse theory models, for instance, to check the overall model fit or to detect differential item functioning. We introduce new methods for power analysis and sample size planning that can be applied when marginal maximum likelihood estimation is used. This avails the application to a variety of IRT models, which are increasingly used in practice, e.g., in large-scale educational assessments. An analytical method utilizes the asymptotic distributions of the statistics under alternative hypotheses. For a larger number of items, we also provide a sampling-based method, which is necessary due to an exponentially increasing computational load of the analytical approach. We performed extensive simulation studies in two practically relevant settings, i.e., testing a Rasch model against a 2PL model and testing for differential item functioning. The observed distribu- tions of the test statistics and the power of the tests agreed well with the predictions by the proposed methods. We provide an openly accessible R package that implements the methods for user-supplied hypotheses. Keywords: marginal maximum likelihood, item response theory, power analysis, Wald test, score test, likelihood ratio, gradient test We wish to thank Carolin Strobl for helpful comments in the course of this research.
    [Show full text]
  • Package 'Lmtest'
    Package ‘lmtest’ September 9, 2020 Title Testing Linear Regression Models Version 0.9-38 Date 2020-09-09 Description A collection of tests, data sets, and examples for diagnostic checking in linear regression models. Furthermore, some generic tools for inference in parametric models are provided. LazyData yes Depends R (>= 3.0.0), stats, zoo Suggests car, strucchange, sandwich, dynlm, stats4, survival, AER Imports graphics License GPL-2 | GPL-3 NeedsCompilation yes Author Torsten Hothorn [aut] (<https://orcid.org/0000-0001-8301-0471>), Achim Zeileis [aut, cre] (<https://orcid.org/0000-0003-0918-3766>), Richard W. Farebrother [aut] (pan.f), Clint Cummins [aut] (pan.f), Giovanni Millo [ctb], David Mitchell [ctb] Maintainer Achim Zeileis <[email protected]> Repository CRAN Date/Publication 2020-09-09 05:30:11 UTC R topics documented: bgtest . .2 bondyield . .4 bptest . .6 ChickEgg . .8 coeftest . .9 coxtest . 11 currencysubstitution . 13 1 2 bgtest dwtest . 14 encomptest . 16 ftemp . 18 gqtest . 19 grangertest . 21 growthofmoney . 22 harvtest . 23 hmctest . 25 jocci . 26 jtest . 28 lrtest . 29 Mandible . 31 moneydemand . 31 petest . 33 raintest . 35 resettest . 36 unemployment . 38 USDistLag . 39 valueofstocks . 40 wages ............................................ 41 waldtest . 42 Index 46 bgtest Breusch-Godfrey Test Description bgtest performs the Breusch-Godfrey test for higher-order serial correlation. Usage bgtest(formula, order = 1, order.by = NULL, type = c("Chisq", "F"), data = list(), fill = 0) Arguments formula a symbolic description for the model to be tested (or a fitted "lm" object). order integer. maximal order of serial correlation to be tested. order.by Either a vector z or a formula with a single explanatory variable like ~ z.
    [Show full text]
  • Wald (And Score) Tests
    Wald (and score) tests • MLEs have an approximate multivariate normal sampling distribution for large samples (Thanks Mr. Wald.) • Approximate mean vector = vector of true parameter values for large samples • Asymptotic variance-covariance matrix is easy to estimate • H0: Cθ = h (Linear hypothesis) H0 : Cθ = h Cθ h is multivariate normal as n − → ∞ Leads! to a straightforward chisquare test • Called a Wald test • Based on the full model (unrestricted by any null hypothesis) • Asymptotically equivalent to the LR test • Not as good as LR for smaller samples • Very convenient sometimes Example of H0: Cθ=h Suppose θ = (θ1, . θ7), with 1 1 H : θ = θ , θ = θ , (θ + θ + θ ) = (θ + θ + θ ) 0 1 2 6 7 3 1 2 3 3 4 5 6 θ1 θ2 1 1 0 0 0 0 0 θ 0 − 3 0 0 0 0 0 1 1 θ = 0 − 4 1 1 1 1 1 1 0 θ 0 − − − 5 θ6 θ 7 Multivariate Normal Univariate Normal • 1 1 (x µ)2 – f(x) = exp − σ√2π − 2 σ2 (x µ)2 ! " – −σ2 is the squared Euclidian distance between x and µ, in a space that is stretched by σ2. 2 (X µ) 2 – − χ (1) σ2 ∼ Multivariate Normal • 1 1 1 – f(x) = 1 k exp 2 (x µ)#Σ− (x µ) Σ 2 (2π) 2 − − − | | 1 # $ – (x µ)#Σ− (x µ) is the squared Euclidian distance between x and µ, −in a space that− is warped and stretched by Σ. 1 2 – (X µ)#Σ− (X µ) χ (k) − − ∼ Distance: Suppose Σ = I2 2 1 d = (X µ)!Σ− (X µ) − − 1 0 x1 µ1 = x1 µ1, x2 µ2 − − − 0 1 x2 µ2 # $ # − $ ! " x1 µ1 = x1 µ1, x2 µ2 − − − x2 µ2 # − $ = !(x µ )2 + (x µ ")2 1 − 1 2 − 2 2 2 d = (x1 µ1) + (x2 µ2) − − (x1, x2) % x µ 2 − 2 (µ1, µ2) x µ 1 − 1 86 APPENDIX A.
    [Show full text]
  • Rao's Score Test in Econometrics
    UNIVERSITY OF ILLINOIS LIBRARY AT URBANA CHAMPAIGN EOOKSTACKS Digitized by the Internet Archive in 2012 with funding from University of Illinois Urbana-Champaign http://www.archive.org/details/raosscoretestine91132bera Faculty Working Paper 91-0132 330 STX B385 1991: 132 COPY 2 Rao's Score Test in Econometrics Anil K. Bern Aman Ullah Department of Economics Department of Economics University of Illinois University of California Indiana University Riverside o' *9 •the UWatK %2& Bureau of Economic and Business Research College of Commerce and Business Administration University of Illinois at Urbana-Champaign BEBR FACULTY WORKING PAPER NO. 91-0132 College of Commerce and Business Administration University of Illinois at Urbana-Champaign April 1991 Rao's Score Test in Econometrics Anil K. Bera Department of Economics University of Illinois and Indiana University Aman Ullah Department of Economics University of California-Riverside We are grateful to Rick Vinod, Vicki Zinde- Walsh and Mann Yoon for comments on an earlier draft of the paper. Financial support from the Research Board and the Bureau of Economics and Business Research of the University of Illinois is gratefully acknowledged. ABSTRACT Rao's work is always inspired by some practical problems. It is not surprising that many of the techniques he developed found their way to various applications in econometrics. In this review paper, we try to evaluate the impact of his pioneering 1948 score test on the current practice of econometric model specification tests. In so doing, we relate Rao's score principle to some of the earlier popular tests in econometrics. We also discuss the recent developments on this topic and problems for further research.
    [Show full text]
  • Week 4: Simple Linear Regression II
    Week 4: Simple Linear Regression II Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2019 These slides are part of a forthcoming book to be published by Cambridge University Press. For more information, go to perraillon.com/PLH. c This material is copyrighted. Please see the entire copyright notice on the book's website. Updated notes are here: https://clas.ucdenver.edu/marcelo-perraillon/ teaching/health-services-research-methods-i-hsmp-7607 1 Outline Algebraic properties of OLS Reminder on hypothesis testing The Wald test Examples Another way at looking at causal inference 2 Big picture We used the method of least squares to find the line that minimizes the sum of square errors (SSE) We made NO assumptions about the distribution of or Y We saw that the mean of the predicted values is the same as the mean of the observed values and that implies that predictions regress towards the mean Today, we will assume that distributes N(0; σ2) and are independent (iid). We need that assumption for inference (not to find the best βj ) 3 Algebraic properties of OLS Pn 1) The sum of the residuals is zero: i=1 ^i = 0. One implication of this is that if the residuals add up to zero, then we will always get the mean of Y right. Confusion alert: is the error term; ^ is the residual (more on this later) Recall the first order conditions: @SSE = Pn (y − β^ − β^ x ) = 0 @β0 i=1 i 0 1 i @SSE = Pn x (y − β^ − β^ x ) = 0 @β1 i=1 i i 0 1 i From the first one, it's obvious that we choose β^0; β^1 that satisfy this Pn ^ ^ Pn ¯ property: i=1(yi − β0 − β1xi ) = i=1 ^i = 0, so ^ = 0 In words: On average, the residuals or predicted errors are zero, so on average the predicted outcomey ^ is the same as the observed y.
    [Show full text]