Unformatted text preview:

Stat 13 UCLA, Statistics Statistical Methods for Life and Health Sciences I.D. Dinov, M. Zheng, J. Miller ChiChiChiChi----square Goodnesssquare Goodnesssquare Goodnesssquare Goodness----ofofofof----fit testfit testfit testfit test For this lab, we are going to see how STATA performs the Chi-square goodness-of-fit test. About the data . use http://www.ats.ucla.edu/stat/stata/notes/hsb2 The data used here is called hsb2, high school and beyond. This data file contains 200 observations from a sample of high school students with demographic information about the students, such as their gender (female), socio-economic status (ses) and ethnic background (race). It also contains a number of scores on standardized tests, including tests of reading (read), writing (write), mathematics (math) and social studies (socst). Today’s Lab First of all, look at the dataset: . describe Let’s look at “race”, which is the variable we are interested in. Here, please note that race is stored using real (floating point) numbers not strings. . sort race . list race so we can see that race==1 denotes Hispanic, race==2 denotes Asian, race==3 denotes African-American, and race==4 denotes white. Q1: What is the proportion of students of each race?Stat 13 UCLA, Statistics Statistical Methods for Life and Health Sciences I.D. Dinov, M. Zheng, J. Miller Now suppose the true proportion of the races is 10% for Hispanic and 10% for Asian, and 10% for African-American, and 70% for whites. We are going to test whether there is statistical evidence that there is significant difference between the given true proportions and the observed sample proportions. In STATA the Chi-Square (χ2) goodness of fit test is invoked by csgof: . csgof race, expperc(10 10 10 70) We obtain a p-value is 0.16. How do you interpret these findings and what are your conclusions, based on this result? Q2: What are your conclusions about the test reuslts? What should the null & the alternative hypotheses be? What is the degree of freedom? Next, let’s look at ses ( socio-economic status) variable. In the sample, are the proportions in each social-economic group the same. Q3: What should be the expected proportions in this case? We now perform a Chi-Square (χ2) goodness of fit test to investigate equal proportions: . csgof ses, expperc(33.3333,33.3333,33.3334) Q4: What do you think about our belief now? What should H0 and H1 be? What is the degree of freedom? Q5: Investigate if there are differences between the reading and writing literacy


View Full Document

UCLA STATS 13 - Lecture

Documents in this Course
lab8

lab8

3 pages

lecture2

lecture2

78 pages

Lecture 3

Lecture 3

117 pages

lecture14

lecture14

113 pages

Lab 3

Lab 3

3 pages

Boost

Boost

101 pages

Noise

Noise

97 pages

lecture10

lecture10

10 pages

teach

teach

100 pages

ch11

ch11

8 pages

ch07

ch07

12 pages

ch04

ch04

10 pages

ch07

ch07

12 pages

ch03

ch03

5 pages

ch01

ch01

7 pages

ch10

ch10

7 pages

ch06

ch06

11 pages

ch08

ch08

5 pages

ch11

ch11

9 pages

lecture16

lecture16

101 pages

lab4

lab4

4 pages

ch01

ch01

7 pages

ch08

ch08

5 pages

lecture05

lecture05

13 pages

Load more
Download Lecture
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?