Part I
We’ll use the “Debt and Taxes” tab in the Lab 5 Excel Workbook
The Economic Data Runs from 1946 (1st year post WW2) to 2016
Note: This issue is tremendously more complicated than the two variables presented here. This is only a partial look at the issue and there is ample room for debate as causes of the issues at hand.
1) Examining the Relationships
Create and copy in the following Charts
1) Line Chart with “Year”, “Top Bracket %”, and “Debt (Relative to 1946)”
2) Scatterplot with “Year” and “Top Bracket %,” choose “Show Trendline”
3) Scatterplot with “Year” and “National Debt (Trillions),” choose “Show Trendline”
a) What trends do you see over time?
b) Do “Top Bracket %” and “National Debt(Trillions)” appear associated?
c) What might be a possible confounding factor?
2) Running Regressions
a) Use “Data->Data Analysis->Regression” with “Top Bracket” as the y variable and
“Year” as the x- variable.
What is your model? Slope t-value? F-Value? R squared?
b) Run a second regression with “National Debt(Trillions)” as the y variable and
“Year” as the x-variable.
What is your model? Slope t-value? F-Value? R squared?
c) Run a final regression with “National Debt(Trillions)” as the y variable and
“Top Bracket %” as the x-variable
What is your model? Slope t-value? F-Value? R squared?
d) Based on the R squared from part c) how much of the debts change is due to taxes?
Part II
We will use the “Twins Data” tab in the workbook.
1) Single Variable
a) Create a Scatterplot of “Wins” and “Runs” (You might need to rescale the axis for each)
b) Run a Regression with “Wins” as y and “Runs” as x
c) What is your model? Slope t-value? F-Value? R squared?
2) Multivariable
a) Traditional Stats
Run a regression with “Wins” as the y variable and both “Batting Average” and “ERA”
as the two x variables
What is your model? Slope t-values? F-Value? R squared?
b) Moneyball Stats
Run a regression with “Wins” as the y variable and “OPS” and “WHIP” as the x variables
What is your model? Slope t-value? F-Value? R squared?
3) Of the 3 options which model do you feel works the best? Explain.
| Year | Top Bracket % | Decimal for Top Bracket | National Debt (Trillions) | Debt (Relative to 1946) |
| 1946 | 91 | 0.91 | 0.271 | 1.000 |
| 1947 | 91 | 0.91 | 0.257 | 0.948 |
| 1948 | 91 | 0.91 | 0.252 | 0.930 |
| 1949 | 91 | 0.91 | 0.253 | 0.934 |
| 1950 | 91 | 0.91 | 0.257 | 0.948 |
| 1951 | 91 | 0.91 | 0.255 | 0.941 |
| 1952 | 92 | 0.92 | 0.259 | 0.956 |
| 1953 | 92 | 0.92 | 0.266 | 0.982 |
| 1954 | 91 | 0.91 | 0.271 | 1.000 |
| 1955 | 91 | 0.91 | 0.274 | 1.011 |
| 1956 | 91 | 0.91 | 0.273 | 1.007 |
| 1957 | 91 | 0.91 | 0.271 | 1.000 |
| 1958 | 91 | 0.91 | 0.276 | 1.018 |
| 1959 | 91 | 0.91 | 0.285 | 1.052 |
| 1960 | 91 | 0.91 | 0.286 | 1.055 |
| 1961 | 91 | 0.91 | 0.289 | 1.066 |
| 1962 | 91 | 0.91 | 0.298 | 1.100 |
| 1963 | 91 | 0.91 | 0.306 | 1.129 |
| 1964 | 77 | 0.77 | 0.312 | 1.151 |
| 1965 | 70 | 0.7 | 0.317 | 1.170 |
| 1966 | 70 | 0.7 | 0.320 | 1.181 |
| 1967 | 70 | 0.7 | 0.326 | 1.203 |
| 1968 | 70 | 0.7 | 0.348 | 1.284 |
| 1969 | 70 | 0.7 | 0.354 | 1.306 |
| 1970 | 70 | 0.7 | 0.371 | 1.369 |
| 1971 | 70 | 0.7 | 0.398 | 1.469 |
| 1972 | 70 | 0.7 | 0.427 | 1.576 |
| 1973 | 70 | 0.7 | 0.458 | 1.690 |
| 1974 | 70 | 0.7 | 0.475 | 1.753 |
| 1975 | 70 | 0.7 | 0.533 | 1.967 |
| 1976 | 70 | 0.7 | 0.620 | 2.288 |
| 1977 | 70 | 0.7 | 0.699 | 2.579 |
| 1978 | 70 | 0.7 | 0.772 | 2.849 |
| 1979 | 70 | 0.7 | 0.827 | 3.052 |
| 1980 | 70 | 0.7 | 0.908 | 3.351 |
| 1981 | 70 | 0.7 | 0.998 | 3.683 |
| 1982 | 50 | 0.5 | 1.142 | 4.214 |
| 1983 | 50 | 0.5 | 1.377 | 5.081 |
| 1984 | 50 | 0.5 | 1.572 | 5.801 |
| 1985 | 50 | 0.5 | 1.823 | 6.727 |
| 1986 | 50 | 0.5 | 2.125 | 7.841 |
| 1987 | 38.5 | 0.385 | 2.340 | 8.635 |
| 1988 | 28 | 0.28 | 2.602 | 9.601 |
| 1989 | 28 | 0.28 | 2.857 | 10.542 |
| 1990 | 28 | 0.28 | 3.233 | 11.930 |
| 1991 | 31 | 0.31 | 3.665 | 13.524 |
| 1992 | 39.6 | 0.396 | 4.065 | 15.000 |
| 1993 | 39.6 | 0.396 | 4.411 | 16.277 |
| 1994 | 39.6 | 0.396 | 4.693 | 17.317 |
| 1995 | 39.6 | 0.396 | 4.974 | 18.354 |
| 1996 | 39.6 | 0.396 | 5.225 | 19.280 |
| 1997 | 39.6 | 0.396 | 5.413 | 19.974 |
| 1998 | 39.6 | 0.396 | 5.526 | 20.391 |
| 1999 | 39.6 | 0.396 | 5.656 | 20.871 |
| 2000 | 39.6 | 0.396 | 5.674 | 20.937 |
| 2001 | 39.1 | 0.391 | 5.807 | 21.428 |
| 2002 | 38.6 | 0.386 | 6.228 | 22.982 |
| 2003 | 35 | 0.35 | 6.783 | 25.030 |
| 2004 | 35 | 0.35 | 7.379 | 27.229 |
| 2005 | 35 | 0.35 | 7.933 | 29.273 |
| 2006 | 35 | 0.35 | 8.507 | 31.391 |
| 2007 | 35 | 0.35 | 9.008 | 33.240 |
| 2008 | 35 | 0.35 | 10.025 | 36.993 |
| 2009 | 35 | 0.35 | 11.910 | 43.948 |
| 2010 | 35 | 0.35 | 13.562 | 50.044 |
| 2011 | 35 | 0.35 | 14.790 | 54.576 |
| 2012 | 35 | 0.35 | 16.066 | 59.284 |
| 2013 | 39.6 | 0.396 | 16.738 | 61.764 |
| 2014 | 39.6 | 0.396 | 17.824 | 65.771 |
| 2015 | 39.6 | 0.396 | 18.151 | 66.978 |
| 2016 | 39.6 | 0.396 | 19.573 | 72.225 |
In: Statistics and Probability
At many amusement parks, customers who enter the park after 4 p.m. receive a steep discount on the price they pay. This is a type of price discrimination because the amusement park charges a lower price to
students who can’t visit until after 4 p.m. anyway.
people who have a more inelastic demand for amusement parks.
people who have a more elastic demand for amusement parks.
people with 9-to-5 jobs.
In: Economics
A friend owns a hotel that gets a lot of seasonal business. The average total cost per day of running the hotel is $75. She tells you that during the off-season (when there are a lot of empty rooms), she had someone offer her $70 for a room. She indignantly tells you she turned the offer down since it was less than her average cost. Was that a good decision? Explain your answer in detail.
In: Economics
A random sample of 378 hotel guests was taken at La Mirage and
it was found that 194 requested non-smoking room. Another random
sample of 516 hotel guests at Neptune Grand showed that 320
requested non-smoking room. We wan to test the claim that the
percentage of guests requesting non-smoking room is different
between the two hotels, using significance level 0.05. Round you
answer to 3 decimal places.
In: Statistics and Probability
In a survey of 3929 travelers, 1431 said that location was very important for choosing a hotel and 1222 said that reputation was very important in choosing an airline. Complete parts (a) through (c) below.
a. Construct a 95% confidence interval estimate for the population proportion of travelers who said that location was very important for choosing a hotel.
b. Construct a 95% confidence interval estimate for the population proportion of travelers who said that reputation was very important in choosing an airline.
In: Statistics and Probability
In a survey of 3,654 travelers, 1,456 said that location was very important for choosing a hotel and1,210 said that reputation was very important in choosing an airline. Complete parts (a) and (b) below.
a. Construct a 90% confidence interval estimate for the population proportion of travelers who said that location was very important for choosing a hotel.
b. Construct a 90% confidence interval estimate for the population proportion of travelers who said that reputation was very important in choosing an airline.
In: Statistics and Probability
Write a program that prompts the user for their first and last name. Display the first initial of their first name and their last name to the user.
Ask the user to input a phone number.
The program checks which part of Colorado a phone number is from using the values below.
If the second digit of the phone number is one of the below digits, print the phone number and which part of Colorado it is from. If none of the digits are entered, display the phone number and state it is not in Colorado.
If the number is in Estes Park, the user should see: phone number + “is in Estes Park, it is time to go pick up your new Corgi puppy!”
If the second digit of a phone number is:
0 = Boulder
1 = Colorado Springs
2 = Denver
7 = Estes Park
Sample output:
Please enter your first and last name: Ollie Biscuit
Hello, O Biscuit! //displays first initial and last name
Please enter a phone number:
Your phone number is: xxx-xxx-xxxx. Your number is not in Colorado.
OR
Your phone number is: xxx-xxx-xxxx. Your number is in Denver.
OR
Your phone number is: xxx-xxx-xxxx is in Estes Park, it is time to go pick up your new Corgi puppy!
In: Computer Science
8. A hotel manager is looking to enhance the initial impression that hotel guests have when they check in. Believed to contribute to initial impressions is the time it takes to deliver a guest’s luggage to his or her room after check-in. A random sample of 20 deliveries on a particular day were selected from Wing A of the hotel, and a random sample of 20 deliveries were selected in Wing B (i.e., the Excel tab LUGGAGE). (a) Identify which type of test is most appropriate for you to use, justify your answer. (b) Determine whether or not the mean delivery time differs for the two wings of the hotel (use α = .05). (c) If faster luggage delivery time is positively related to guests’ initial impression, which wing(s) should receive the highest impression ratings? (3 points)
| Wing A | Wing B |
| 10.20 | 13.70 |
| 12.68 | 12.89 |
| 12.29 | 14.83 |
| 11.95 | 12.23 |
| 9.61 | 11.56 |
| 11.53 | 16.05 |
| 11.92 | 15.20 |
| 14.92 | 16.86 |
| 13.69 | 13.26 |
| 14.00 | 10.09 |
| 15.35 | 13.74 |
| 9.05 | 13.85 |
| 15.01 | 13.57 |
| 8.28 | 14.06 |
| 12.23 | 11.91 |
| 14.25 | 14.79 |
| 11.44 | 13.59 |
| 9.57 | 12.13 |
| 13.61 | 14.37 |
| 9.77 | 12.91 |
In: Statistics and Probability
In: Accounting
Peter was born after an uneventful pregnancy and weighed 3.1kg. At 3 months, he developed otitis media and an upper respiratory tract infection. At the ages of 5 months and 11 months, he was admitted to hospital with Haemophilus influenzae pneumonia. The infections responded promptly to the appropriate antibiotics on each occasion. When 16 months old, he developed balanitis. He is the fourth child of unrelated parents: his three sisters show no predisposition to infection.
Examination at the age of 18 months showed a pale, thin child whose height and weight were below the third centile. There were no other abnormal features. He had been fully immunized as an infant (at 2, 3 and 4 months) with tetanus and diphtheria toxoids, whole-cell pertussis, Haemophilus conjugate vaccine and oral polio. In addition he had received measles, mumps and rubella vaccine at 12 months. All immunizations were uneventful.
Immunological investigations (Table C3.1) into the cause of his recurrent infections showed severe panhypogammaglobulinemia with absent antibody production. Although there was no family history of hypogammaglobulinemia, the absence of mature B lymphocytes in his peripheral blood strongly supported a diagnosis of ________________________________?????. His antibody deficiency was treated by 2-weekly intravenous infusions of human normal IgG in a dose of 400mg/kg body weight/month. Over the following 2 years, his health steadily improved: his weight and height are now on the 10th centile, and he has had only one episode of otitis media in the last 18 months.
Table C3.1 Immunological investigations
|
Quantitative serum immunoglobulins (g/l) |
||
|
IgG |
0.17 |
[5.5-10.0] |
|
IgA |
Not detected |
[0.3-0.8] |
|
IgM |
0.07 |
[0.4-1.8] |
|
Antibody activity |
||
|
Immunization responses |
||
|
Tetanus toxoid - no detectable IgG antibodies |
||
|
Diphtheria toxoid - no detectable IgG antibodies |
||
|
Polio - no IgG antibodies detected |
||
|
Measles - no IgG antibodies detected |
||
|
Rubella - no IgG antibodies detected |
||
|
Isohaemagglutinins (IgM) not detected (blood group A Rh+) |
||
|
Blood lymphocyte subpopulations (x109/l) |
||
|
Total lymphocyte count |
3.5 |
[2.5-5.0] |
|
T lymphocytes (CD3) |
3.02 |
[1.5-3.0] |
|
B lymphocytes (CD23) |
<0.03 |
[0.1-0.4] |
|
(CD19) |
<0.1 |
[0.3-1.0] |
|
(CD20) |
<0.1 |
[0.3-1.0] |
*Normal range for age 18 months shown in brackets.
In: Nursing