he dataset imagpop contains information about 10000 people from an imaginary population. One of the variables is cappun, which indicates whether the individual favors or opposes the death penalty. You can see the distribution of of this variable in the population in the row percents shown below: rowPerc(xtabs(~cappun,data=imagpop)) ## favor oppose Total ## 29.76 70.24 100.00 Suppose you are interested in the following
Contingency Table
A contingency table can be defined as the visual representation of the relationship between two or more categorical variables that can be evaluated and registered. It is a categorical version of the scatterplot, which is used to investigate the linear relationship between two variables. A contingency table is indeed a type of frequency distribution table that displays two variables at the same time.
Binomial Distribution
Binomial is an algebraic expression of the sum or the difference of two terms. Before knowing about binomial distribution, we must know about the binomial theorem.
Parameters vs. Statistics - Factor Variable
The dataset imagpop contains information about 10000 people from an imaginary population. One of the variables is cappun, which indicates whether the individual favors or opposes the death penalty. You can see the distribution of of this variable in the population in the row percents shown below:
rowPerc(xtabs(~cappun,data=imagpop))
## favor oppose Total
## 29.76 70.24 100.00
Suppose you are interested in the following
Research Question: What proportion of individuals in the imagpop population oppose capital punishment.
Suppose you decide to take a simple random sample of size 300. You can see the distribution of cappun in the sample below:
set.seed(2014)
mysamp<-popsamp(n=300,pop=imagpop)
rowPerc(xtabs(~cappun,data=mysamp))
## favor oppose Total
## 27.33 72.67 100.00
Match the following numbers with their correct descriptions in the attached picture.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps