Question

(1) Construct the following table that summarizes the number of people who have car accidents in...

(1) Construct the following table that summarizes the number of people who have car accidents in a school.(do question(2) and using R I need R code)thank you

Age Accidents 18-24 33 25-29 18 30-34 17 35-39 5

No Accidents 124
94
109
60

>40 2 30

(2) Use the Chi-Square test to conclude if the group (Accidents and No Accidents) and the Age range effects are independent. Test by using α= .10. (using R)

Homework Answers

Answer #1

The R code for question 2 is pasted below.

# SETTING UP THE DATA
x=c(rep("18-24",33),rep("25-29",18),rep("30-34",17),rep("35-39",5),rep(">40",2),rep("18-24",124),rep("25-29",94),rep("30-34",109),rep("35-39",60),rep(">40",30))
y=c(rep("Accidents",75),rep("No Accidents",417))
data=data.frame(Age.Group = x,Whether.Accidents = y)
data

# SETTING UP THE FREQUENCY DISTRIBUTION
tbl = table(data$Age.Group,data$Whether.Accidents)
tbl

# WE CONDUCT A CHI-SQUARE TEST OF INDEPENDENCE
chisq.test(tbl)
# SINCE P-VALUE IS LESS THAN ALPHA = 0.10, WE REJECT H0 AND CONCLUDE THAT THERE IS ENOUGH EVIDENCE TO SUGGEST THAT THE GROUP (ACCIDENTS AND NO ACCIDENTS) AND THE AGE RANGE EFFECTS ARE NOT INDEPENDENT.

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
(1) Construct the following table that summarizes the number of people who have car accidents in...
(1) Construct the following table that summarizes the number of people who have car accidents in a school.(I can do question (1), help me do question (2) please thank you) Age Accidents 18-24 33 25-29 18 30-34 17 35-39 5 No Accidents 124 94 109 60 >40 2 30 (2) Use the Chi-Square test to conclude if the group (Accidents and No Accidents) and the Age range effects are independent. Test by using α= .10.
A car insurance company performed a study to determine whether an association exists between age and...
A car insurance company performed a study to determine whether an association exists between age and the frequency of car accidents. They obtained the following sample data. under 25 25-45 over 45 total number of 0 74 90 84 248 accidents in 1 19 8 12 39 past 3 years >1 7 2 4 13 total 100 100 100 300 Conduct a test, at the 5% significance level, to determine whether the data provide sufficient evidence to conclude that an...
After you run the t-test, answer these questions (type responses in this box): 1. What is...
After you run the t-test, answer these questions (type responses in this box): 1. What is the p-value (the significance)? 2. Is the difference between the mean age first diagnosed for males and females statistically significant? Independent Samples t-TEST Age First Diagnosed Male Female 25 33 35 32 34 45 22 44 34 21 21 33 21 29 18 30 43 31 28 28 29 44 32 54 41 32 25 39 30 36 19 50 15 21 18 37...
The following data give the number of patients who visited a walk-in clinic on each of...
The following data give the number of patients who visited a walk-in clinic on each of 20 randomly selected days. 24 38 27 19 33 23 30 42 25 27 28 32 38 29 39 25 36 21 34 39 Carry out all calculations exactly, round to 2 decimal places the final answers where it is necessary. a. Calculate the range, variance, and standard deviation for these data.
the following are the average weekly losses of worker-hours due to accidents in 10 industrial plants...
the following are the average weekly losses of worker-hours due to accidents in 10 industrial plants before and after a certain safety program was put into operation: BEFORE plant 1: 45 plant 2: 73 plant 3: 46 plant 4: 124 plant 5: 33 plant 6: 57 plant 7: 83 plant 8: 34 plant 9: 26 plant 10: 17 AFTER plant 1: 36 plant 2: 60 plant 3: 44 plant 4: 119 plant 5: 35 plant 6: 51 plant 7: 77...
JUST ANSWER QUESTION 6, PLEASE Based on the following data for car crash deceleration measurements, do...
JUST ANSWER QUESTION 6, PLEASE Based on the following data for car crash deceleration measurements, do an ANOVA test and answer question 5 (i.e., the question that will be #5 on the test) Small cars: 45, 43, 44, 54, 38, 43, 42, 45, 44, 50 Medium cars: 30, 49, 43, 41, 47, 42, 37, 43, 44, 34 Large cars: 30, 37, 38, 45, 37, 33, 38, 45, 43, 42 5. What is the test statistic of F for this data?...
The following table shows age distribution and location of a random sample of 166 buffalo in...
The following table shows age distribution and location of a random sample of 166 buffalo in a national park. Age Lamar District Nez Perce District Firehole District Row Total Calf 10 13 18 41 Yearling 10 14 9 33 Adult 38 29 25 92 Column Total 58 56 52 166 Use a chi-square test to determine if age distribution and location are independent at the 0.05 level of significance. (a) What is the level of significance? State the null and...
Among drivers who have had car crashes in the last year, the data was collected by...
Among drivers who have had car crashes in the last year, the data was collected by age of driver and appears in the table below. If the ages all had the same crash rate we would expect the probability (percentage) shown in the table as well. (This is adjusted to account for the percentage of that age group in the driving population as a whole.) Using the methods that you learned with Chi-Square Goodness of Fit, test the data at...
2) Airline accidents: According to the U.S. National Transportation Safety Board, the number of airline accidents...
2) Airline accidents: According to the U.S. National Transportation Safety Board, the number of airline accidents by year from 1983 to 2006 were 23, 16, 21, 24, 34, 30, 28, 24, 26, 18, 23, 23, 36, 37, 49, 50, 51, 56, 46, 41, 54, 30, 40, and 31. a. For the sample data, compute the mean and its standard error (from the standard deviation), and the median. b. Using R, compute bootstrap estimates of the mean, median and 25% trimmed...
Using the class sample data, analyze the student heights by completing the following. Please note the...
Using the class sample data, analyze the student heights by completing the following. Please note the following directions. The data below was collected from a group of 45 female students last semester. You will use this data throughout the semester on your lab assignments. Student # Gender Height Shoe Age Hand 1 F 68 8.5 20 R 2 F 60 5.5 27 R 3 F 64 7 31 R 4 F 67 7.5 19 R 5 F 65 8 20...