Lab 1B Assignment_01

.pdf

School

Harrisburg University of Science and Technology *

*We aren’t endorsed by this school

Course

502

Subject

Statistics

Date

Jun 6, 2024

Type

pdf

Pages

3

Uploaded by beksg00

Assignment2: Lab1B: Intro to Data Basics II ANLY 502-90 - Analytical Methods I Mar. 30, 2020 #. Make a scatterplot of weight versus desired weight. Describe the relationship between these two variables. plot( cdc$weight , cdc$wtdesire ) There’s a positive linear association between Weight and Desired Weight. As the Weight increases, the Desired Weight also increases. #. Let's consider a new variable: the difference between desired weight (wtdesire) and current weight (weight). Create this new variable by subtracting the two columns in the data frame and assigning them to a new object called wdiff. wdiff = cdc$wtdesire - cdc$weight #. What type of data is wdiff? If an observation wdiff is 0, what does this mean about the person's weight and desired weight. What if wdiff is positive or negative? IF “wdiff” This means.. wdiff = 0 The person’s current Weight is exactly his/her Desired Weight. wdiff > 0 (positive) The person’s current Weight is higher than his/her Desired Weight. wdiff < 0 (negative) The person’s current Weight is below his/her Desired Weight. This study source was downloaded by 100000794023742 from CourseHero.com on 07-17-2023 17:12:58 GMT -05:00 https://www.coursehero.com/file/59919757/Assignment2-Lab1Bdocx/
#. Describe the distribution of wdiff in terms of its center, shape, and spread, including any plots you use. summary(wdiff) sd(wdiff) plot(density(wdiff)) # What does this tell us about how people feel about their current weight? Most of “wdiff” data are negative but are centered around 0, which means people might be satisfied with their current weight as it’s close to/slightly less than their Desired Weight. #. Using numerical summaries and a side-by-side box plot, determine if men tend to view their weight differently than women. boxplot(cdc$weight-cdc$wtdesire ~ cdc$gender) This study source was downloaded by 100000794023742 from CourseHero.com on 07-17-2023 17:12:58 GMT -05:00 https://www.coursehero.com/file/59919757/Assignment2-Lab1Bdocx/
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