In: Statistics and Probability
We have considered a regression equation to predict life expectancy from percent of government expenditure on health care, using data for a sample of 50 countries in SampCountries. Using technology and this dataset, find a 95% prediction interval for each of the following situations.
(a) A country which puts only 3% of its expenditure into health care. Round your answers to one decimal place.
(b) A country which puts 10% of its expenditure into health care. Round your answers to two decimal places.
(c) A country which puts 50% of its expenditure into health care. Round your answers to two decimal places.
| Country | Health | LifeExpectancy |
| Iceland | 15.76 | 83.1 |
| Kazakhstan | 10.90 | 70.5 |
| Lesotho | 14.48 | 49.3 |
| Uzbekistan | 9.68 | 68.2 |
| Peru | 14.75 | 74.8 |
| Iraq | 5.99 | 69.5 |
| Nicaragua | 20.89 | 74.8 |
| Zambia | 12.57 | 58.1 |
| Guinea-Bissau | 7.79 | 54.3 |
| Romania | 12.17 | 74.5 |
| United States | 20.71 | 78.8 |
| Sierra Leone | 11.41 | 45.6 |
| Malta | 13.29 | 80.7 |
| Luxembourg | 13.64 | 81.8 |
| Micronesia, Fed. Sts. | 17.70 | 69.0 |
| South Africa | 14.02 | 56.7 |
| Panama | 12.79 | 77.6 |
| Turkey | 10.74 | 75.2 |
| Nigeria | 17.97 | 52.5 |
| Hungary | 10.23 | 75.3 |
| Albania | 9.85 | 77.5 |
| Brunei Darussalam | 7.42 | 78.6 |
| Portugal | 12.90 | 80.4 |
| Comoros | 7.55 | 60.9 |
| Pakistan | 4.73 | 66.6 |
| Ethiopia | 16.43 | 63.6 |
| Belize | 11.90 | 73.9 |
| Sweden | 14.98 | 81.7 |
| Bulgaria | 11.67 | 74.5 |
| Botswana | 8.75 | 47.4 |
| Greece | 11.66 | 80.6 |
| Belarus | 13.45 | 72.5 |
| United Kingdom | 16.18 | 81.0 |
| Tunisia | 13.33 | 73.6 |
| Thailand | 17.01 | 74.4 |
| Croatia | 12.67 | 77.1 |
| Colombia | 16.05 | 74.0 |
| Samoa | 17.00 | 73.3 |
| Cuba | 13.40 | 79.2 |
| Guyana | 13.87 | 66.2 |
| South Sudan | 4.00 | 55.2 |
| Cote d'Ivoire | 8.51 | 50.8 |
| Burkina Faso | 13.52 | 56.3 |
| Malaysia | 5.88 | 75.0 |
| Australia | 17.75 | 82.2 |
| Indonesia | 6.63 | 70.8 |
| Kenya | 5.85 | 61.7 |
| Ireland | 14.07 | 81.0 |
| Grenada | 9.56 | 72.7 |
| Korea, Rep. | 11.50 | 81.5 |
I input this data set in MS Excel, save this as a .CSV file and
import this into R programming software using the read.csv(.)
function and then use the lm(.) and predict(.) functions to
calculate the prediction intervals. The R code and the output are
given below.

(a) A country which puts only 3% of its expenditure into health
care = (41.8, 85.2).
(b) A country which puts 10% of its expenditure into health care =
(47.92, 89.29).
(c) A country which puts 50% of its expenditure into health care =
(63.33, 132.17).