# Connexions

You are here: Home » Content » Collaborative Statistics ( Custom Version Modified by K. Chu) » Practice: Linear Regression

• Student Welcome Letter

• 13. Tables

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### Endorsed by (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
• College Open Textbooks

This module is included inLens: Community College Open Textbook Collaborative
By: CC Open Textbook CollaborativeAs a part of collection: "Collaborative Statistics"

"Reviewer's Comments: 'I recommend this book. Overall, the chapters are very readable and the material presented is consistent and appropriate for the course. A wide range of exercises introduces […]"

Click the "College Open Textbooks" link to see all content they endorse.

Click the tag icon to display tags associated with this content.

• JVLA Endorsed

This module is included inLens: Jesuit Virtual Learning Academy Endorsed Material
By: Jesuit Virtual Learning AcademyAs a part of collection: "Collaborative Statistics"

"This is a robust collection (textbook) approved by the College Board as a resource for the teaching of AP Statistics. "

Click the "JVLA Endorsed" link to see all content they endorse.

• WebAssign

This module is included inLens: WebAssign The Independent Online Homework and Assessment Solution
By: WebAssignAs a part of collection: "Collaborative Statistics"

"Online homework and assessment available from WebAssign."

Click the "WebAssign" link to see all content they endorse.

Click the tag icon to display tags associated with this content.

#### Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
• OrangeGrove

This module is included inLens: Florida Orange Grove Textbooks
By: Florida Orange GroveAs a part of collection: "Collaborative Statistics"

Click the "OrangeGrove" link to see all content affiliated with them.

Click the tag icon to display tags associated with this content.

• Bookshare

This module is included inLens: Bookshare's Lens
By: Bookshare - A Benetech InitiativeAs a part of collection: "Collaborative Statistics"

"DAISY and BRF versions of this collection are available."

Click the "Bookshare" link to see all content affiliated with them.

• Featured Content

This module is included inLens: Connexions Featured Content
By: ConnexionsAs a part of collection: "Collaborative Statistics"

"Collaborative Statistics was written by two faculty members at De Anza College in Cupertino, California. This book is intended for introductory statistics courses being taken by students at two- […]"

Click the "Featured Content" link to see all content affiliated with them.

Click the tag icon to display tags associated with this content.

#### Also in these lenses

• statistics

This module is included inLens: Statistics
By: Brylie OxleyAs a part of collection: "Collaborative Statistics"

Click the "statistics" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

• Lucy Van Pelt

This module is included inLens: Lucy's Lens
By: Tahiya MaromeAs a part of collection: "Collaborative Statistics"

"Part of the Books featured on Community College Open Textbook Project"

Click the "Lucy Van Pelt" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

• Educational Technology Lens

This module is included inLens: Educational Technology
By: Steve WilhiteAs a part of collection: "Collaborative Statistics"

Click the "Educational Technology Lens" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

• Statistics

This module is included inLens: Mathieu Plourde's Lens
By: Mathieu PlourdeAs a part of collection: "Collaborative Statistics"

Click the "Statistics" link to see all content selected in this lens.

• statf12

This module is included inLens: Statistics Fall 2012
By: Alex KolesnikAs a part of collection: "Collaborative Statistics"

Click the "statf12" link to see all content selected in this lens.

• UTEP

This module is included inLens: Amy Wagler's Lens
By: Amy WaglerAs a part of collection: "Collaborative Statistics"

Click the "UTEP" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

• Make Textbooks Affordable

This module is included inLens: Make Textbooks Affordable
By: Nicole AllenAs a part of collection: "Collaborative Statistics"

Click the "Make Textbooks Affordable" link to see all content selected in this lens.

• BUS204 Homework

This module is included inLens: Saylor BUS 204 Homework
By: David BourgeoisAs a part of collection: "Collaborative Statistics"

"Homework for Discrete Variables/Probability. "

Click the "BUS204 Homework" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

• crowe

This module is included in aLens by: Chris RoweAs a part of collection: "Collaborative Statistics"

Click the "crowe" link to see all content selected in this lens.

• Bio 502 at CSUDH

This module is included inLens: Bio 502
By: Terrence McGlynnAs a part of collection: "Collaborative Statistics"

"This is the course textbook for Biology 502 at CSU Dominguez Hills"

Click the "Bio 502 at CSUDH" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Inside Collection (Textbook):

Textbook by: Kathy Chu. E-mail the author

# Practice: Linear Regression

Summary: This module provides a practice of Linear Regression and Correlation as a part of Collaborative Statistics collection (col10522) by Barbara Illowsky and Susan Dean.

## Student Learning Outcomes

• The student will evaluate bivariate data and determine if a line is an appropriate fit to the data.

## Given

Below are real data for the first two decades of AIDS reporting. (Source: Centers for Disease Control and Prevention, National Center for HIV, STD, and TB Prevention)

 Year # AIDS cases diagnosed # AIDS deaths Pre-1981 91 29 1981 319 121 1982 1,170 453 1983 3,076 1,482 1984 6,240 3,466 1985 11,776 6,878 1986 19,032 11,987 1987 28,564 16,162 1988 35,447 20,868 1989 42,674 27,591 1990 48,634 31,335 1991 59,660 36,560 1992 78,530 41,055 1993 78,834 44,730 1994 71,874 49,095 1995 68,505 49,456 1996 59,347 38,510 1997 47,149 20,736 1998 38,393 19,005 1999 25,174 18,454 2000 25,522 17,347 2001 25,643 17,402 2002 26,464 16,371 Total 802,118 489,093

### Note:

We will use the columns “year” and “# AIDS cases diagnosed” for all questions unless otherwise stated.

## Graphing

Graph “year” vs. “# AIDS cases diagnosed.” Plot the points on the graph located below in the section titled "Plot" . Do not include pre-1981. Label both axes with words. Scale both axes.

## Data

### Exercise 1

Enter your data into your calculator or computer. The pre-1981 data should not be included. Why is that so?

## Linear Equation

Write the linear equation below, rounding to 4 decimal places:

### Note:

For any prediction questions, the answers are calculated using the least squares (best fit) line equation cited in the solution.

### Exercise 2

Calculate the following:

• a. a=a= size 12{a={}} {}
• b. b=b= size 12{b={}} {}
• c. corr.=corr.= size 12{ ital "corr" "." ={}} {}
• d. n=n= size 12{n={}} {}(# of pairs)

#### Solution

• a. a = -3,448,225 a = -3,448,225 size 12{a="-3,448,225"} {}
• b. b = 1750 b = 1750 size 12{b="1750"} {}
• c. corr . = 0 . 4526 corr . = 0 . 4526 size 12{ ital "corr" "." =0 "." "4526"} {}
• d. n = 22 n = 22 size 12{n="22"} {}

### Exercise 3

equation: y^=y^= size 12{ { hat {y}}={}} {}

#### Solution

y ^ = -3,448,225 y ^ = -3,448,225 size 12{ { hat {y}}="-3,448,225"} {} + 1750 x + 1750 x size 12{+"1750"x} {}

## Solve

### Exercise 4

Solve.

• a. When x=1985x=1985 size 12{x="1985"} {}, y^=y^= size 12{ { hat {y}}={}} {}
• b. When x=1990x=1990 size 12{x="1990"} {}, y^=y^= size 12{ { hat {y}}={}} {}

• a. 25,525
• b. 34,275

## Plot

Plot the 2 above points on the graph below. Then, connect the 2 points to form the regression line.

Obtain the graph on your calculator or computer.

## Discussion Questions

Look at the graph above.

### Exercise 5

Does the line seem to fit the data? Why or why not?

### Exercise 6

Do you think a linear fit is best? Why or why not?

### Exercise 7

Hand draw a smooth curve on the graph above that shows the flow of the data.

### Exercise 8

What does the correlation imply about the relationship between time (years) and the number of diagnosed AIDS cases reported in the U.S.?

### Exercise 9

Why is “year” the independent variable and “# AIDS cases diagnosed.” the dependent variable (instead of the reverse)?

### Exercise 10

Solve.

• a. When x=1970x=1970 size 12{x="1970"} {}, y^=y^= size 12{ { hat {y}}={}} {}:
• b. Why doesn’t this answer make sense?

• a. -725

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

#### Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

#### Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks