Statistical Modeling and Data Analysis Given a data

Statistical Modeling and Data Analysis Given a data

Statistical Modeling and Data Analysis Given a data set, first question a statistician ask is, What is the statistical model to this data? We then characterize and analyze the parameters of the model with an objective in mind. Example : SBP of Cancer Patients vs. Normal patients Cancer: 145, 165, 134, 120, 112, 156, 145, 133, 135, 120 Normal: 138, 120, 112, 110, 128, 134, 128, 109, 138, 140 Objective: Do cancer patients have higher SBP than the normal patients? 1 Population of cancer patients with a probability distribution Population of normal patients with a probability distribution

normal cancer 1 2 Systolic blood pressure Objective is to test the Hypothesis: Does the data support this hypothesis? 2

Assumption: The data is random and is generated from the normal distributions? Random Variable is the collection of all subjects. What we observe is one realization Random Sample: We collect a sample of subjects 3 Observed Sample: Assumption: Simple Random Sample (equally likely than any other sample) Multivariate Observations

An observed vector is one realization of this, i.e., 4 Random Sample: Observed sample is a realization of Note: If the simultaneous inference is to made on its components, the probability statement should be viewed in terms of probability of observing 5

Stochastic Process Observed value of this is one realization Can we describe a probability distribution of ? Kolmogorov Consistency Theorem says that probability distribution can be described. 6 These are three realizations with 7

Discrete time points If this process is stationary, then a probability model for can be described in a concise way. For example, , where is white noise. 8 Image Process: 9

, where is the set of all pixels. Note that what we observe is a realization of this 10 The same can be said about weather map. 11 Data Analysis Generally speaking, we perform one or more of the following tasks in data analysis (statistical inference) Estimate the model Hypothesis testing

Predictive analysis Given the sample data, objective is to make inference about the population described by the probability model. All inferences are based on probability model assumed. 12 Estimation Think of estimating any parameters of a probability model. For example, estimating and of a regression model How good is the estimate ? Well, you might say that if , it is a good estimate.

Not so simple! Note that is unknown. 13 Frequentists Interpretation Note that depends on the sample we observe. Sample -- -- --

-- -- -- -- -- observed

observed observed observed observed -- --

-- -- is better than if the average of is smaller than the average of , i.e., for all . 14 is better than if for all . A best estimate, in this sense, is of course not possible. If irrespective of the observed sample, then

for We restrict to a class of estimators, and then try to find best Estimate within this class. For example, we may consider a class of all unbiased estimators. 15 Theories are well developed for achieving best estimates among the class of unbiased estimates for simple probability models. For complicated model, we can always fall back to maximum likelihood estimates. Obtain the estimate by maximizing the likelihood function

For small sample size , this may not always yield good estimate, but for large sample size , this generally yield optimal estimates. 16 Asymptotic Optimality of Maximum Likelihood Estimate sequence of asymptotically normal estimates as can be interpreted as asymptotic variance of . , - Fisher Information Matrix Under regular probability models, maximum likelihood estimates achieves the lower bound.

17 Bayesian Interpretation Prior Distribution Through this we might say that some values of are more likely than other values. is better than if . A best estimate is now possible; for example, The RHS is the expectation with respect to the posterior distribution of . 18 Prior Distribution Really? Where did it come from?

You may not believe this, but we are really talking in terms of a statistical philosophy. Can you really believe that the true state of nature is random? normal cancer 1 2 Systolic blood pressure 19

and are supposed to be fixed mean SBPs of the normal and cancer populations. Now, we are saying that they are random. Bayesian Paradigm is never a fixed value; under most circumstances some values of are more likely than other values. Before a data is analyzed, we should explore this prior. Then update it based on the information provided by the data. Prior: Data: Posterior: All information about is contained in the posterior. 20

Example: 1 in 1,000 in the population carry a particular genetic disorder. Certain tests on a person are performed, and data is collected Data: Prior: Posterior: 21 The main issues with Bayesian inference are (1) Appropriateness of the prior (2) Computation of the posterior distribution

random sample from Prior: This is a conjugate prior because the posterior distribution is of same form as the prior distribution. Is this prior appropriate? 22 Prior: If nothing is known about , . This gives almost flat prior for and . There are other ways to assign non-informative priors. Note that if

Prior: then we will have computational problem of computing posterior distribution. 23 Computation of the posterior There are two popular techniques of computing posterior distribution: 1. Metropolis-Hasting Algorithm 2. Gibbs Sampler These techniques can be used effectively for complex probability model and reasonable priors.

24 Frequentist vs. Bayesian Frequentist Bayesian All data information is All data information is contained in the likelihood contained in the likelihood function. function and the prior The estimates are viewed

Estimates are viewed in in terms of how they behave terms of where they are on the average located in the posterior Estimates are generally obtainedEstimates are obtained from by maximizing the likelihood the posterior. Techniques function. Techniques include include Gibbas Sampler, Newton-Raphson, EM-algorithm Metropolis-Hasting etc. 25 Mixture Models

Suppose the population is a mixture of two or more populations. Bayesians would have a good answer to estimate this model than frequentists would. 26 Hypothesis Testing Think about how it started in statistical literature. Data: drawn from a probability model. associated with the probability model Does the data support this hypothesis? Bayesians had an answer to this, but they were not popular at the time.

Ans. 27 (Fisher) drawn from Hypothesis : Compute If this is vey small (, then the data provide very little evidence in support of the hypothesis. Conclusion: Reject the Hypothesis 28

Analysis of Variance (ANOVA) ANOVA is one of the most popular statistical tools of analyzing data. Factor 1 Y Factor 2 A Response Variable Factor 3

Does Y (the response) depends on any of the factors? 29 Example 1: You are doing a research on mpg (miles per gallon) for a brand of automobiles. Question: What effects mpg? Wind speed mpg Air temperature Air moisture

Do wind speed, air temperature, and air moisture effect mpg? 30 Example 2: Research Question: Does blood pressure (BP) depend on weight and gender? Weight BP Gender 31

There is a variation in BP. Some is due to weight, and some is due to gender. BP * Female * Male * ** * *

* * * * * * * Weight 32

Concept: Variation(BP) = Variation(Weight) + Variation(Gender) + Variation(Error) These variation can be described by Sums of Squares SS(BP) = SS(Weight) + SS(Gender) + SS(Error) is the degrees of freedom that represent the effective number of terms in the sums of squares 33 F-Statistics Weight: Test Statistic

Hypothesis : Weight is not a factor in BP If p-value (<0.05), then there is little evidence that weight is not a factor Gender: Test Statistics Same can be done to see if gender is a factor. 34 Neyman Pearson Lemma Basis for Classical Hypothesis Testing Null hypothesis Alternative Hypothesis (Research Hypothesis) TS: Test Statistics

Decision Rule Conclusion Type-I Error: False Discovery Type-II Error: False Non-Discovery Devise a decision rule so that = Pr(False Discovery) is very small (=0.05). Through Neyman-Pearson Lemma, a most powerful decision rule can be obtained. 35 Uniformly Most Powerful Unbiased Decision Rule is , where is such that

. Note that this is a frequentist method since the probability statement should be interpreted in a frequentist manner. 36 Likelihood Approach Neyman-Perason Lemma works only on simple probability models. Test Statistics If the hypothesis is correct, the should be closed to 0. Thus, we reject the hypothesis if

The cut-off point can be obtained through asymptotic distribution of , which is usually . 37 Model Selection Suppose you want choose one model out of several. This is a type of multiple hypotheses problem. Regression: Not all predictors are significant, and you want to select the set of significant predictors. This can be viewed as selecting one of the several models Choose the model that yields the smallest

38 This yields a biased selection, meaning that a model with higher number of parameters has a better chance of being selected. AIC or BIC Information criteria Select the model with the highest value of AIC (or BIC) 39 Bayesian Hypothesis Testing Data: drawn from Hypothesis

Prior: Posterior: , Bayes Factor: If this Bayes factor (, data has sufficient evidence to support the hypothesis . 40 Frequentist Vs. Bayesian Note that both and classical hypothesis tests are frequentists since the statements are made in terms of probability. The Bayes Factor is used in Bayesian tests which is based on the posterior probability

41 Multiple Hypotheses: Consider 1000 independent tests each at Type-error of = 0.05. Then 5% of the null hypotheses would be falsely rejected. In other words, if 50 of the hypotheses were rejected, there is no guarantee that they were not all falsely rejected. FWER: m = # of hypotheses = P(One or more falsely rejected hypotheses) m = 1 (1 ) 1 (1 )1/ m / m (Bonferroni Correction)

If m is large, would be very small. Thus the power of detecting any true positive would be very small. Sequential Bonferroni Corrections: Let p[1] p[2] ... p[m] be the p-values of independent tests with corresponding null hypotheses H (1) , H (2) ,...., H (m.) Holms Method (Holm, 1979; Scand. Statist.) If p / m , accept all nulls. [1] If p[1] / m , reject H ; if p /(m 1) , accept the rest of nulls. [2] (1) Continue until first j such that p /(m j .1) In that case reject

[ j] all H , i j 1,and accept the rest of nulls. (i) Simes Method (Biometrika, 1986): If p , reject all nulls. [m] If not, but if p[m 1] / 2 , reject all H (i) , i 1,2,..., m 1 p H , j 1,2,..., i Continue until first [i] ( j)

m i 1 . In that case reject all Note: Both Holms and Simes methods are designed to refine the FWER. False Discovery Rate (FDR): Benjamini and Hochberg (1995), JRSS When the number of hypotheses m is very large (say in thousands), and if each individual hypothesis is not important, then FWER criterion is not very useful since it yields few discoveries. For example, in a microarray data analysis, the objective is to detect potential genes for future exploration. Here, each individual gene is not important. In such cases, tests with a controlled FWER would yield few discoveries.

FDR = Expected proportion of false rejections. Accept Null Reject Null Total True Null U V

True Alternatives T S m 0 m m 0 m- R

R m FDR = E [ V ], where, V 0 if R 0 R R = E [ V | R 0] P( R 0) R Note that FWER = P(R>0) Benjamini and Hochberg proved that the following procedure produces FDR q : i

p q, then reject all Let k be the largest integer i such that [i] m H ( j) , j 1,2,..., k. The result was proved under the assumption of independent test statistics. It was later extended to a positively correlated test statistics by Benjamini and Yekutieli, 2001; Ann. Stat.

Bayesian Interpretation (Storey, 2003, Ann. Stat.) V pFDR E[ | R 0] R H i :i 0 vs. H ai :i 0, 0 i 1,2,..., m Let Ti be test statistics that reject H i if Ti c. 0 Ti , i 1,2,..., m are independently distributed.

, ,....,m are i.i.d. with p P(i H i ) 0, then 1 2 0 pFDR P( H i | Ti c) 0 Note: pFDR is a posterior version of the Type-I error Directional Hypothesis Problem (Three decision problem): Suppose H i : 0 is rejected, but it is also important to find the direction 0 i of i , i.e., i 0 or i 0. So the problem is to find subsets S and S of {1,2,..., m} such that S {i : i 0} and S {i : i 0}

Example: Gene selection When the genes are altered under adverse condition, such as cancer, the affected genes show under or over expression in a microarray. X i Expression Level X i ~ P(i , ) H i :i 0 vs H i :i 0 or H i :i 0 0 The objective is to find the genes with under expressions and genes with over expressions. Directional Error (Type III error):

Type III error is defined as P( Selection of false direction if the null is rejected). The traditional method does not control the directional error. For example, | t | t / 2 , and t t / 2 , an error occurs if 0. Sarkar and Zhou (2008, JSPI) Finner ( 1999, AS) Shaffer (2002, Psychological Methods) Lehmann (1952, AMS; 1957, AMS) Main points of these work is that if the objective is to find the true direction of the alternative after rejecting the null, then a Type III error must be controlled instead of Type I error. Bayesian Decision Theoretic Framework i :

H i :i (say, 0) , H i :i , H i 0 0 0 0 Suppose , ,...,m are generated from 1 2 ( ) p ( ) p ( ) p ( ) 0 0 where - ( ) g ( )I ( 0), ( ) I ( 0), g ( ) I ( 0) 0

g () density with support contained in (-,0) g () density with support contained in (0, ) g and g could be trucated densities of a density on . The skewness in the prior is introduced by (p , p , p ). -1 0 1 p p reflects that the right tail is more likely than the left tail. p- 0 (or p 0) would yield a one - tail test. p- p with g- and g as truncated of a symmetric density would yield a two - tail test. p- and p can be assigned based on what tail is

more important. Loss Function m L(,d) L ( , d ) i i i i 1 i ) taking values where di (di , d i , d 0 (1,0, 0) for selecting H i (0, 1, 0) for selecting H i 0 i

(0, 0, 1) for selecting H Let ( i , i , i ) be a randomized rule. 0 i The average risk for a decision rule ( ,..., m ) is given by 1 ( ) r ( ) p r ( ) p r (0) pr 00 where r ( ) 0 R(i ,i ) (i )di

i i ( ) r 0 R(i ,i )1(i )di i i r (0) R(0,i ) 0 i For a fixed prior , decision rules can be compared by comparing the space ( )) : D*} S( ) {(r ( ), r (0), r

0 consider the class of all rules for which R(0, ) are the same slope depends on p and p p p r ( ) Bayes Rule r ( )

i is Remark : This theorem implies that if apriori it is known that H more likely than H i ( p p ), then the average risk of the Bayes rule in the positive direction will be smaller than average risk in the negative direction. For the "0 -1", this would mean that the expected number of falsely delected genes in the positive direction would be less than the expected number of falsely detected genes in the negative direction.

Recently Viewed Presentations

  • Manningham Neighbourhood Watch

    Manningham Neighbourhood Watch

    In current times there are more and more scams . What can you do? Understand the nature of most scams. Be more wary . Help stop the proliferation of scams by not forwarding, and by educating peers
  • Speciation Activity Descriptions

    Speciation Activity Descriptions

    There is a small population of arctic foxes and penguin-like birds. However, it is difficult to hunt them during the winter months. Ice-fishing allows for most of the food supply. Vegetation can only be found during summer months.
  • Minitab의 활용 - Tistory

    Minitab의 활용 - Tistory

    학습곡선 일정계획 및 실습
  • Changing Attitudes in Public Discourse Capstone Event April

    Changing Attitudes in Public Discourse Capstone Event April

    Introducing Attitudes to Virtue Epistemology. Virtues are complex tendencies to evaluate or judge, to feel and desire in characteristic ways and to act on these cognitive, affective, and conative states.
  • Economic risk of change

    Economic risk of change

    Climate change in Western Australia WALIS Forum 2008 13 March 2008 Dr Ray Wills CEO, WA Sustainable Energy Association Principal, Future Smart Strategies
  • Diapositiva 1 -

    Diapositiva 1 -

    Jack A. Williams . Manager General Operations. Phoenix Cables Inc. Puerto Rico. Ron Tyler. Information Technology Mgr. (Corporate) Edgardo Gomez. Production Manager
  • Staking a claim -

    Staking a claim -

    Develop a thesis statement that could focus an argument in response to each of the following prompts. Discuss why you think that the structure (open, closed, counterargument) you chose would be appropriate or effective. You need a thesis statement and...
  • The Great Gatsby -

    The Great Gatsby -

    The Great Gatsby. The protagonist of the novel is James Gatz, a men who comes from a modest family. He makes many effort to rise above poverty, he even changes his name into . Jay. Gatsby. While in the army,...