STT 231 recitation 4

.docx

School

Michigan State University *

*We aren’t endorsed by this school

Course

231

Subject

Statistics

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by SargentFieldMagpie28 on coursehero.com

SS24 STT 231: Statistics for Scientists Week 4 Recitation Activity: Investigating associations & independence Your name: _______________________________________ Your NetID : _____________________________________ 1. Suppose that you ask dog and cat owners whether their pet has been to a veterinarian in the past twelve months. You organize your results in a 2x2 table like the one below. For each of the following exercises, create your own example of counts that satisfy the indicated property, assuming that an individual owns either a cat or a dog, but not both. Do this by filling in the appropriate cells of the table with counts. Also report the values for all relevant proportions and relative risks. Let ^ π i = the proportion of owners for the 𝑖 𝑡ℎ animal who indicated that ‘yes,’ they had taken their pet to the vet in the past 12 months. a. The difference in conditional proportions (cats – dogs) who answer ‘yes’ is exactly 0.2 and the ratio of proportions is less than 1.4. Dog owner Cat owner Yes 60 40 No 40 10 Total 100 50 𝜋̂ 𝑐𝑎𝑡 = __40/50=0.8_____ R.R. = ^ π cat ^ π dog = ___1.333____ 𝜋̂ 𝑑𝑜𝑔 = ___60/100=0.6________ b. The difference in conditional proportions (cats – dogs) who answer ‘yes’ is more than 0.1 and the ratio of proportions (i.e., the relative risk) who answer ‘yes’ is exactly 2.0. Dog owner Cat owner Yes 30 30 No 70 20 Total 100 50 𝜋̂ 𝑐𝑎𝑡 = ____30/50=0.6__ R.R. = ^ π cat ^ π dog = ¿ ___2_____ 𝜋̂ 𝑑𝑜𝑔 = __30/100=0.3______ c. The difference in conditional proportions (cats – dogs) who answer yes is greater than 0.2 and the relative risk is greater than 2.0. Dog owner Cat owner Yes 30 45 No 70 5 Total 100 50 𝜋̂ 𝑐𝑎𝑡 = ___45/50=0.9_____ R.R. = ^ π cat ^ π dog = __3____ 𝜋̂ 𝑑𝑜𝑔 = __30/100=0.3_____ d. The difference in conditional proportions (cats – dogs) who answer yes is greater than 0.2 and the relative risk is less than 2.0. Dog owner Cat owner Yes 40 20 No 60 30 Total 100 50 Dog owner Cat owner Yes ?? ?? No ?? ?? Total 100 50
𝜋̂ 𝑐𝑎𝑡 = ____20/50=0.4____ R.R. = ^ π cat ^ π dog = ¿ ___1________ 𝜋̂ 𝑑𝑜𝑔 = __40/100=0.4_______ e. The difference in conditional proportions who answer yes is less than 0.1 and the ratio of proportions (i.e., the relative risk) who answer ‘yes’ is greater than 2.0. Dog owner Cat owner Yes 2 5 No 98 45 Total 100 50 𝜋̂ 𝑐𝑎𝑡 = ___5/50________ R.R. = ^ π cat ^ π dog = ¿ _____5______ f. On Gradescope, write a 2-3 sentence response to the following question: Many statistical summaries are designed to accomplish the same task but do so in different ways. For instance, the mean ̅ and the median 𝑥̃ both describe central tendency, but often result in different values, depending on the skew of the distribution. The difference of conditional proportions 𝜋̂ 1 − 𝜋̂ 2 and the relative risk ̂ 1 /𝜋̂ 2 both describe the association between two categorical variables, but do so in different ways. How would you describe the differences and similarities between these statistics to a colleague? 2. Now, consider the scatterplot below of sale price (in thousands USD) vs. size (in square feet) for seven houses that recently sold in East Lansing, Michigan. The seven ordered pairs of (size, price) data points are: (1014, $474K), (1176, $520K), (1242, $459K), (1499, $470K), (1540, $575K), (1545, $500K), (1755, $580K). The correlation coefficient between price and size is 𝒓 = 𝟎.𝟔𝟐𝟕 . If you’d like to recreate these data in RStudio, you can use the following code: x<-c(1014,1176,1242,1499,1540,1545,1755) y<- c(474,520,459,470,575,500,580) cor(x,y); plot(x,y,pch=16) For each of the following, create your own example to satisfy the indicated property. Do this by adding one point to the scatterplot and also reporting the values of the size (square feet) and price for the house that you add. Also give a very brief description of the house (e.g., a very small and inexpensive house), and report the value of the correlation coefficient. a. Increase the correlation coefficient so that it is larger than 0.8.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help