Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rstudio coding/statistics question. How can I by using `team_counts` and `chisq.test()` , test the null hypothesis of independence between the `type` variable (home and away)

Rstudio coding/statistics question.

How can I by using `team_counts` and `chisq.test()`, test the null hypothesis of independence between the `type` variable (home and away) and the counts of `lose`, `draw` or `win` for Faroe Islands. - what is the conclusion of the test? - investigate the conditions for using the `chisq.test()`, was is OK to apply this test for the Faroe Islands?

Here's a picture of the data frame for team_counts:

image text in transcribed

Thanks

**{r} team_counts % group_by (team, type) %>% summarise(count = n(), lose = sum( score 0), -groups = 'drop' ) team_counts team type count lose draw win 67 10 36 64 21 12 12 13 away home away home 39 72 27 33 74 17 10 8 away 60 16 Belgium Belgium Denmark Denmark England England Faroe Islands Faroe Islands France France 47 36 48 5 63 4 11 4 home away home away home 69 69 60 52 9 8 6 17 34 57 59 6 11 42 1-10 of 32 rows Previous 1 2 3 4. Next **{r} team_counts % group_by (team, type) %>% summarise(count = n(), lose = sum( score 0), -groups = 'drop' ) team_counts team type count lose draw win 67 10 36 64 21 12 12 13 away home away home 39 72 27 33 74 17 10 8 away 60 16 Belgium Belgium Denmark Denmark England England Faroe Islands Faroe Islands France France 47 36 48 5 63 4 11 4 home away home away home 69 69 60 52 9 8 6 17 34 57 59 6 11 42 1-10 of 32 rows Previous 1 2 3 4. Next

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Foundations Of Business Analysis

Authors: M Douglas Berg

1st Edition

1465222030, 9781465222039

More Books

Students also viewed these Finance questions