6. Parameter Estimation and Confidence Intervals: Practical 6
Confidence intervals for proportions
Let's assume the municipality would take a sample of #23# to check for types of green roofs and also the distribution of the roofs over the different city districts. Simulate this situation by taking a simple random sample of size #23# from D, use seed #19# by running the command
Estimate the fraction of green roofs that are of the type 'Solar-sedumdak' and calculate the #50\%# confidence interval around this estimate. Round your answers to three decimal points.
set.seed(19)
before taking the sample. Estimate the fraction of green roofs that are of the type 'Solar-sedumdak' and calculate the #50\%# confidence interval around this estimate. Round your answers to three decimal points.
Fraction of green roofs of type Solar-sedumdak = |
Lower bound #50\%# confidence interval = |
Upper bound #50\%# confidence interval = |
Unlock full access