Question

As player salaries have increased, the cost of attending baseball games has increased dramatically. The data...

As player salaries have increased, the cost of attending baseball games has increased dramatically. The data below represents the cost of four tickets, two beers, four soft drinks, four hot dogs, two game programs, two baseball caps, and the parking fee for one car for each of the 30 Major League Baseball teams in 2011:

174, 339, 259, 171, 207, 160, 130, 213, 338, 178, 184, 140, 159, 212, 121, 169, 306, 162, 161, 160, 221, 226, 160, 242, 241, 128, 223, 126, 208, 196

Decide whether the data appears to be approximately normally distributed by

(a) comparing data characteristics to theoretical properties.

(b) constructing a normal probability plot.

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

Solution-:

> x=c(174,339,259,171,207,160,130,213,338,178,184,140,159,212,121,169,306,162,161,160,221,226,160,242,241,128,223,126,208,196);x
[1] 174 339 259 171 207 160 130 213 338 178 184 140 159 212 121 169 306 162 161
[20] 160 221 226 160 242 241 128 223 126 208 196
> #(a)
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
121.0 160.0 181.0 197.1 222.5 339.0
> mean(x)
[1] 197.1333
> #for mode
> tx=table(x);
> m=which(tx==max(tx))
> stx=sort(unique(x))
> Mode=stx[m];
> Mode
[1] 160
> # Here, Mean=197.33, Median=181 and Mode=160 are notequal so this data is not satisfy property of normal distribution.
> #(b)
> #For check normality
> shapiro.test(x)

Shapiro-Wilk normality test

data: x
W = 0.90476, p-value = 0.011

> #Conclusion:- If pvalue=0.011< l.o.s.= \alpha=0.05 then we reject the hypothesis of normality. We say that data is not normal.
> #Or
> qqnorm(x)
> qqline(x)
Normal Q-Q Plot o 0 o 300 o 250 Sample Quantiles 200 Donecos 000000 150 -2 -1 0 1 N Theoretical Quantiles

> #This graph shows non-normal probability plot.

R-Code:

x=c(174,339,259,171,207,160,130,213,338,178,184,140,159,212,121,169,306,162,161,160,221,226,160,242,241,128,223,126,208,196);x
#(a)
summary(x)
mean(x)
#for mode
tx=table(x);
m=which(tx==max(tx))
stx=sort(unique(x))
Mode=stx[m];
Mode
# Here, Mean=197.33, Median=181 and Mode=160 are notequal so this data is not satisfy property of normal distribution.
#(b)
#For check normality
shapiro.test(x)
#Conclusion:- If pvalue=0.011< l.o.s.= \alpha=0.05 then we reject the hypothesis of normality. We say that data is not normal.
#Or
qqnorm(x)
qqline(x)
#This graph shows non-normal probability plot.

Add a comment
Know the answer?
Add Answer to:
As player salaries have increased, the cost of attending baseball games has increased dramatically. The data...
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
  • Download the hypothesis testing dataset from the class website. 1. This is case 1, in which...

    Download the hypothesis testing dataset from the class website. 1. This is case 1, in which the value of population standard deviation is assumed to be known. a. Compute the standard deviation of the textbook price and assume this to be the population standard deviation. Type this value in E5. b. Pick a random sample of size 15. c. Compute the mean of your random sample in E4 using the AVERAGE function. d. Calculate the standard error in cell E9...

  • 33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim...

    33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim plans to repay the loan on March 11. Assume the loan is on ordinary interest. How much will Jim repay on March 11? (Use Days in a year table) (Round your answer to the nearest cent.) Jm repay etbook 7-1 TABLE Exact days-in-a-year calendar (excluding leap year)" Day of month 30 31 30 31 28 31 30 31 31 30 31 31 Dec Mar...

  • Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your...

    Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your pre-pregnancy weight six months after giving birth. Public health officials are interested in whether this is a realistic goal. Do the women in North Carolina weigh more than their pre-pregnancy weight six months postpartum? In other words, is the six months post-pregnancy weight greater than their pre-pregnancy weight? Use a paired samples t-test to compare pst6wght (variable 1) and prewght (variable 2). This uses...

  • Hi it's python I imported a data which are so many words in txt and I arranged and reshaped with ...

    Hi it's python I imported a data which are so many words in txt and I arranged and reshaped with alphabetically both rows and columns I was successful with these steps but I am stuck with next step below is my code and screenshot import numpy as np import pandas as pd data=pd.read_csv("/Users/superman/Downloads/words_file2.txt",header=None) df_input=pd.DataFrame(data) df_output=pd.DataFrame(np.arange(676).reshape((26,26)), index = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'], columns = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']) df_output.index.name="Start" df_output.columns.name="End" df_output This below screen shot is what I have to find I have to find each word...

  • need help to complete this java program // add appropriate import statements here. // These imports...

    need help to complete this java program // add appropriate import statements here. // These imports you can leave as is. import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import javafx.stage.Stage; /** @author yourAccountNameHere */ public class ConnectTheDots extends Application {            /*     * Do not add code to main(). Add it below in connectTheDots instead.     */     public static void main(String[] args) {         launch(args);     }         /*...

  • Partial payments are made on the dates indicated. Use the United States rule to determine the...

    Partial payments are made on the dates indicated. Use the United States rule to determine the balance due on the note at the date of maturity. (The Effective Date is the date the note was written.) Assume the year is not a leap year. Effective Partial Payment Maturity Principal Date Amount Date Date $1900 19% Sept. 1 $500 Oct. 1 Dec. 1 $500 Nov. 1 Click the icon to view a table of the number of the day of the...

  • A partial payment is made on the date indicated. Use the United States rule to determine...

    A partial payment is made on the date indicated. Use the United States rule to determine the balance due on the note at the date of maturity. (The Effective Date is the date the note was written.) Assume the year is not a leap year. Effective Partial Payment Maturity Principal Rate Date Amount Date Date $4000 4% April 1 $1000 May 1 June 1 Click the icon to view a table of the number of the day of the year...

  • Design Column B2: KL 30, Use an HSS section, Fy 46 ksi. pe 0.9 Use table 10.5 from handout Calcul...

    Answer the following blanks for design column B2 Design Column B2: KL 30, Use an HSS section, Fy 46 ksi. pe 0.9 Use table 10.5 from handout Calculate the following: Column tributary area: Artb (At2) Total column load: Pu (kips)- Column nominal Load: Pr (Kkips)- Lightest Column Section: Column Selection Table Pu (kips)- BLE 10.5 Safe Factored Loads for Selected 46-ksi Yield Stress Tube Steel Columns Effective Length (KL) in feet Area (in.2) 06 8 10 12 14 16 18...

  • Pls both parts for UPVOTE Using Excel create four histograms, properly labeled, depicting the data from...

    Pls both parts for UPVOTE Using Excel create four histograms, properly labeled, depicting the data from the frequency distributions in #a and #b below. a) Using the variable Age, construct TWO frequency distributions to summarize the Ages of students born in the USA and those born outside the USA. Use 5 classes to construct your frequency distribution. For each frequency distribution, show your calculations for the class width and then list the: Lower limits and upper limits Class boundaries Class...

  • Please determine the IDENTITY of the unknown compound and explain how each peak / data point...

    Please determine the IDENTITY of the unknown compound and explain how each peak / data point from the following instruments led to that identification. What does the gcms indicate. Thank you very much! (The GCMS data is just a long set of numbers which is why the question appears so long). IR of unknown: NMR unknown Proton Graphs (first is overall graph, others that follow are zoomed in sections): NMR unknown Carbon Graphs (first is overall graph, others that follow...

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