Question

Q.N. 8) Does amount of education play a role in the healthiness of an individual? The...


Q.N. 8) Does amount of education play a role in the healthiness of an individual? The following data represent the level of health and the highest degree earned for a random sample of individuals from the General Social Survey. Does the evidence suggest that health and education are related?


Excellent Good Fair Poor

Less than High School 72 202 199 62
High School 465 877 358 108
Junior College 80 138 49 11
Bachelor 229 276 64 12
Graduate 130 147 32 2



Use R to solve and show R code

Homework Answers

Answer #1

Solution:

We are given that following table:

Excellent Good Fair Poor Total
Less than high school 72 202 199 62 535
High school 465 877 358 108 1808
Junior College 80 138 49 11 278
Bechelor 229 276 64 12 581
Graduatrs 130 147 32 2 311
Column Totals 976 1640 702 195 3513

We have to use R to test the if there is evidence to suggest that health and education are related.

Hypothesis for this test are:

H0: health and education are not related or are independent.

Vs

H1: health and education are related or are dependent.

We use following R code: Copy this code and paste it in R and Run.

> Input =("
+ Injection.area Excellent Good Fair Poor
+ Less_than_High_School 72 202 199 62
+ High_School 465 877 358 108
+ Junior_College 80 138 49 11
+ Bachelor 229 276 64 12
+ Graduate 130 147 32 2
+ ")
> Matriz = as.matrix(read.table(textConnection(Input),
+                    header=TRUE,
+                    row.names=1))
> Matriz
                      Excellent Good Fair Poor
Less_than_High_School        72 202 199   62
High_School                 465 877 358 108
Junior_College               80 138   49   11
Bachelor                    229 276   64   12
Graduate                    130 147   32    2
> chisq.test(Matriz,
+            correct=TRUE)

        Pearson's Chi-squared test

data: Matriz
X-squared = 285.061, df = 12, p-value < 2.2e-16

From the above R code output, we have Chi-square test statistic value = 285.061 and corresponding p-value = 2.2e-16 = 0.0000.

Decision Rule: Reject H0 if p-value < 0.05, otherwise we fail to reject H0.

( since level of significance is not given, we assume it is 0.05)

Since p-value = 0.0000 < 0.05 level of significance, we reject H0 and hence we conclude that there is evidence to suggest that health and education are related.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Does amount of education play a role in the healthiness of an individual? The following data...
Does amount of education play a role in the healthiness of an individual? The following data represent the level of health and the highest degree earned for a random sample of individuals form the General Social Survey. Excellent Good Fair Poor Less than High School 72 202 199 62 High School 465 877 358 108 Junior College 80 138 49 11 Bachelor 229 276 64 12 Graduate 130 147 32 2 a) copy the table to your Excel; calculate row...
A loan made on March 14 is due September 13 of the following year. Find the...
A loan made on March 14 is due September 13 of the following year. Find the exact time for the loan in a​ non-leap year and a leap year. days. The exact time in a​ non-leap year is ? days The exact time in a leap year is ? days. Data Table Sequential Numbers for Dates of the Year Day of Month Jan. Feb. Mar. Apr. May June July Aug. Sept. Oct. Nov. Dec. 1 1 32 60 91 121...
I am making a game like Rock Paper Scissors called fire water stick where the rules...
I am making a game like Rock Paper Scissors called fire water stick where the rules are Stick beats Water by floating on top of it Water beats Fire by putting it out Fire beats Stick by burning it The TODOS are as follows: TODO 1: Declare the instance variables of the class. Instance variables are private variables that keep the state of the game. The recommended instance variables are: 1. 2. 3. 4. 5. 6. A variable, “rand” that...
The Red Lobster Restaurant chain conducts regular surveys of its customers to monitor the performance of...
The Red Lobster Restaurant chain conducts regular surveys of its customers to monitor the performance of individual restaurants. One of the questions asks customers to rate the overall quality of their last visit. the listed responses are Poor 1, Fair 2, Good 3, Very Good 4, and Excellent 5. The survey also asks respondents whether their children accompanied them (1=yes) and (2=no). Graphically depict these data and describe your findings. Customer Rate Children 1 4 1 2 3 2 3...
Researchers in a 2015 study by Flannery et al. sought to estimate the effectiveness of the...
Researchers in a 2015 study by Flannery et al. sought to estimate the effectiveness of the seasonal influenza vaccine in preventing acute respiratory infection (ARI). A total of 507 subjects from Texas who showed symptoms of ARI were recruited for this study. The data provided show the result of each subject's test for influenza. Click to download the data in your preferred format.    CrunchIt!    CSV    Excel    JMP    Mac-Text    Minitab    PC-Text    R   ...
Use the Manufacturing database from “Excel Databases.xls” on Blackboard. Use Excel to develop a multiple regression...
Use the Manufacturing database from “Excel Databases.xls” on Blackboard. Use Excel to develop a multiple regression model to predict Cost of Materials by Number of Employees, New Capital Expenditures, Value Added by Manufacture, and End-of-Year Inventories. Locate the observed value that is in Industrial Group 12 and has 7 employees. Based on the model and the multiple regression output, what is the corresponding residual of this observation? Write your answer as a number, round to 2 decimal places. SIC Code...
Bivariate Data & Probability After completing the calculation by hand in Q1 you can use Excel...
Bivariate Data & Probability After completing the calculation by hand in Q1 you can use Excel to check your answers before submitting. Q2 assesses your general understanding of probability and linear associations using Excel to analyse a large dataset. Question 1       Covariance and Correlation The table below shows a set of sample bivariate data. Calculate the covariance and correlation coefficient by completing the below table. Show all working. X Y (X - ) (Y - ) (X - )(Y -...
Your firm works in construction and buys ASTM A325M8S bolts in very large numbers. You are...
Your firm works in construction and buys ASTM A325M8S bolts in very large numbers. You are interested in purchasing bolts from different suppliers and have obtained and tested samples of 200 bolts from three suppliers: Allnutt, Boltzman, Coachers.You have tested these in your new bolt testing machine, purchased after you had discovered your old bolt testing machine was performing erratically. (For the purposes of this question, you are safe to assume that the new machine works perfectly and that its...