Question

(4+4+2 = 10 points) Construct a mosaic plot for “League” versus “Division” with the corresponding contingency...

(4+4+2 = 10 points) Construct a mosaic plot for “League” versus “Division” with the corresponding contingency table. What is the probability that a randomly selected player played in League “A” given that s/he also played in Division “E”?

From ISLR ("Hitters") data package

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Rcode:

library(ISLR)

library(gmodels)

table = xtabs(~League+Division, data = Hitters)
mosaicplot(table, shade = TRUE)
CrossTable(Hitters$League, Hitters$Division,chisq = TRUE, expected = TRUE, sresid = TRUE, format = "SPSS")

Output:

League Residuals: Standardized Division ------------ >2020-24 table

cell Contents --- ------- ----- --------- Count Expected values | chi-square contribution ROW Percent column Percent Total Pe

------------------------- Total observations in Table: 322 secher 107 obs. of 4 variables values Europe_hambgnum (1:12] 5.14

Statistics for All Table Factors Pearsons chi-squared test chi^2 = 0.005327157 d. f. = 1 p = 0.9418162 Pearsons chi-squared

Intrepretation

From Mosaic plot we could see there are no signiifcant differences between league and division

also from chisq test statisitic

Chi^2 = 0.005327157 and p = 0.9418162

p>0.05

Fail to reject Ho

There is no relationship between league and division

Add a comment
Know the answer?
Add Answer to:
(4+4+2 = 10 points) Construct a mosaic plot for “League” versus “Division” with the corresponding contingency...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 0.10% (0.9018 N IU 4-0.1U P/missing half of PCX Tlher next 10 shots ) To.001488) blems...

    0.10% (0.9018 N IU 4-0.1U P/missing half of PCX Tlher next 10 shots ) To.001488) blems 8 through 12, consult the data in the following table regarding dragons found on Dragon Island. DRAGONS Number of heads Fire-breathing 89 Non Fire-breathing 8. If one of the 140 dragons is randomly selected, what is the probability it has two heads? (s points) 31 +0.221 140 9. Find the probability that a randomly selected dragon breathes fire. (5 points) P(breaths fire)=88+22+4/140=10.821 SIIS140 10....

  • BIU A IE E E - ** 11 na A, Search the menus (Alt+) 100 %...

    BIU A IE E E - ** 11 na A, Search the menus (Alt+) 100 % Normal text Calibri 1 2 3 4 Show your calculation and give your answer in the fraction form and in the decimal form to receive full credit. 1. Let's play "Craps" 5 points A favorite casino game of dice "craps is played in the following manner: A player starts by rolling a pair of balanced dice. If the roll (the sum of two numbers...

  • 7). a.b. Let the sample space be S = {1, 2, 3, 4, 5, 6, 7,...

    7). a.b. Let the sample space be S = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. Suppose the outcomes are equally likely. Compute the probability of the event E="an odd number less than 7." P(E)= (Type an integer or a decimal. Do not round.) The data in the following table show the association between cigar smoking and death from cancer for 139,625 men. Note: current cigar smoker means cigar smoker at time of death. Click the icon...

  • -+ Ft to page Page view 2. A doctor wanted to determine whether there is a Age versus HDL Cholest...

    -+ Ft to page Page view 2. A doctor wanted to determine whether there is a Age versus HDL Cholesterol relation between a male's age and his HDL (so-called good) cholesterol. He randomly selected 17 of his patients and determined their HDL cholesterol. He obtained the following data: (Use Minitab only for graphs. Show all the steps) HDL HDL Age, x Cholesterol,y Age, x Cholesterol, y 38 42 46 32 57 54 34 56 35 40 42 38 47 38...

  • 1. 2. 3. 4. ​​​​​​​ A sample of human brain volumes (cm) is given below. Use...

    1. 2. 3. 4. ​​​​​​​ A sample of human brain volumes (cm) is given below. Use the given data values to identify the corresponding z scores that are used for a normal quantile plot, then identify the coordinates of each point in the normal quantile plot. Construct the normal quantile plot, then determine whether the data appear to be from a population with a normal distribution. 1063 1028 1040 1078 1444 1070 969 1078 List the z scores for the...

  • Someone can help here explaining in an organized and easy way. Three randomly selected households are surveyed. The numbers of people in the households are 1, 4, and 10' Assume that samples of si...

    Someone can help here explaining in an organized and easy way. Three randomly selected households are surveyed. The numbers of people in the households are 1, 4, and 10' Assume that samples of size n 2 are randomly selected with replacement from the population of 1, 4, and 10. Construct a probability distribution table that describes the sampling distribution of the proportion of even numbers when samples o sizes n = 2 are randomly selected Does he mean o the...

  • Can someone help with this problems please 1. (10 pts] Suppose that for a given term,...

    Can someone help with this problems please 1. (10 pts] Suppose that for a given term, data is collected on the types of courses that SPSCC students take with an interest in online and evening courses. Answer the following questions using the distribution of students below. Online Course No Online Course Totals Evening Course 28 42 70 No Evening Course 82 200 282 Totals 110 242 352 a. What is the probability a student is taking an online course? b....

  • Problem Set 3 - Chp. 4 In Exercise 1, find the indicated binomial probabilities. 1f convenient,...

    Problem Set 3 - Chp. 4 In Exercise 1, find the indicated binomial probabilities. 1f convenient, use technology or Table 2 in Appendix B of the e-text. 1. Sixty-two percent of U.S. adults get news on social media sites. You randomly select five U.S adults. Find the probability that the number of U.S. adults who get news on social media sites is (a) exactly two, (b) at least two, and (c) more than two. (Source: Pew Research Center) In Exercise...

  • 4 or 5 Total Assuming that a single student is randomly selected from the sample data:...

    4 or 5 Total Assuming that a single student is randomly selected from the sample data: (a) What is the probability that the student skips class sometimes, often or almost always and has an A average grade? (b) What is the probability that the student has an average grade of B or less? Yo What is the probability that the student skips class rarely or never, given that she/he has a B average grade? (d) Test at the 1% significance...

  • Question 1 Use the data below to answer the questions that follow. The table below gives...

    Question 1 Use the data below to answer the questions that follow. The table below gives the approximate salaries (in millions of dollars) of the 13 members of the Los Angeles Lakers basketball team for the 2011-2012 season. Player Kobe Bryant Pau Gasol Andrew Bynum Lamar Odom Metta World Peace Luke Walton Steve Blake Salary Player 25.2 millon Derek Fisher 18.7 millon Matt Barnes 15.2 millon Troy Murphy 8.9 millon Jason Kapono 6.8 millon Derrick Caracter 5.7 millon Devin Ebanks...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT