Monday, October 08, 2007

Non-linear relationships

Assignment for Monday: Create an outline of the key points in the chapter, including all vocabulary words.

Also, do problems 4.54, 4.56, 4.62 (this study just celebrated its 20th anniversary!!!), and 4.66

So, how about those marginal and conditional distributions for two-way tables, huh?

The marginal distributions are the percents that each column or row represents in the entire table. For instance, if the total of one row was 250 and the total for the table was 1000, the marginal distribution for that row is 25%. You would continue to calculate percents for all of the other rows or the other columns--whatever the question asked for.

For the conditional distributions, you only consider a portion of your population, for instance only a specific row or column. Then, what portion of the observations recorded in tht small group shared the desired characteristic?

If there were 15 sophomores taking AP Chinese and 500 sophomores in a school of 2000 students, GIVEN THAT a student is a sophomore, the percent who are taking AP Chinese is 100*15/500.

Tuesday. October 16

Assignment for Friday: 4.34, .36, .38, .39, .40, .42, and .43

How did you like the Simpson's Paradox activity today?

When breaking data into two or more divisions by a lurking variable changes the "decision" for EVERY ONE of the sub-groups, the result is a Simpson's Paradox. For instance, the example today presented no clear, justifiable answer about whether we should fund Bolgg's Panacea or not.

The example in the book about the hospitals is instructive.

Good luck on the PSAT.

Monday, October 15

4.22-4.24, 4.27, and 4.28

Review the topics and procedures on the notes handed out today.

Have you ever heard of Simpson's Paradox???

Thursday, October 11
We've transformed non-linear data to a linear form, found the LSRL through the data, re-written the equation reflecting the nature of the lists used to develop the LSRL, and re-transformed the equation to model the original data.

You should have done problems 4.6 and 4.9. For tonight, DO problem 13 and READ ACTIVITY 4 and problem 4.15. If you feel excited about the investigation, read problem 16 also.



Monday, October 8

We graphed some relationships between x and y to determine whether we were allowed to run the LSRL on the data. Of course, we ONLY run the least squares regression on data that look like they have a linear pattern.

When the pattern in L1 and L2 looked like an exponential growth or decay model, we took the log of y in order to un-do the exponential. Putting the log y into L3, we proceeded to verify that the graph of L1 and L3 was approximately linear. We then ran the LSRL through that set of points.

The equation we found by using the LSRL will not run through our curve-y data, so we have to un-transform the equation. For the exponential case, we had used the log of y instead of y itself when finding the LSRL (but the original x values!), so we re-write the equation as log y-hat = a + bx.

We solve for y by taking the antilog of both sides ("ten-to-the" or 10^stuff). The resulting equation for y can be graphed with the original x and y data and should match the pattern pretty well.

If the model looks like a quadratic, square root, or other power function, you'll need to perform mostly the same functions, but on the logs of both x and y. The linear equation that passes through the straightened data will be transformed like this: log y-hat = a + b times log x, and the result will have a factor equal to x to the b power.

HW: Problem 4.1. The answer is in the back of the book, but there are a lot of sections to this problem.

Thursday, September 20, 2007

Chapter 3 Linear Relationships

Tuesday, October 2
Work AT LEAST 5 problems to prepare for Thursday's test.





Monday, October 1
3.50 and 3.52

Test on Thursday

Friday,September 28
Yo, this is David T.

Well today we broke up the deviation in a prediction, part into y-hat minus y-bar and an error part y -y-hat.

We also explained the significance of r^2 which equals the portion of the variation in y which could have been predicted using the regression relation.

Remember that if r^2 is close to zero, then the points on the graph are crazy and scattered. If r^2 is close to one, then the graph and points are predictable and are linear.


The HW is 3.46 and 3.49. (YES, this means YOU!) You = David V.



Thursday, September 27
KEY FORMULAS

b = r * Sy/Sx
a = y-bar minus b* x-bar

y-hat = a + b* x

residual = actual minus expected = y - y-hat

If residuals are small and scattered, then the linear model is a good model. If there is a distinct pattern (if you could predict what the residual would be for a particular x-value), then the linear model is not appropriate.

Be sure to WRITE what you see in the residuals ("The residuals are small and scattered, so a linear model is appropriate" or not) and what effect that observation has on your model.

Also be sure to write out the description of the y-hat equation in words: "The predicted value of [insert y variable here] is approximately [insert y-intercept here] plus [insert slope here] times [insert the x variable here]."

COMMON ERRORS:
Failure to use LinReg(a+bx) L1, L2, Y1

Failure to check that the observed y values are close to the predicted y values.

Failure to use the same x and y in your stat plot that you used in your linreg equation. (causes graphs to not show up!)


HW problem 3.39.



Wednesday, September 26
Problems 23 and 31 PLUS find the Least squares regression line for the Archaeopteryx data.

Tuesday, September 25
We re-worked the HW from last night and extended the concept by investigating what happens when you calculate the correlation coefficient for non-linear data (Anarchy! Riots! Dogs and cats living together!). Although you CAN calculate a correlation coefficient for non-linear data, the results tells you NOTHING.

Key points to remember:



  • -1<= r <= 1. Always. No getting around it.
  • r is dimensionless. If you change units or perform a linear operation on all of the values of x, or y, or both, your r will not change!!! In fact, what happens when you switch the order of the variables and calculate r for L2 and L1????
  • r is affected by outliers. They increase the standard deviation, which causes the denominator to be smaller, which causes the r to be closer to 0.
  • r only gives you information about linear relationships. If it isn't linear, then this linear modeling is inappropriate.
If you haven't already tried it, calculate r for some small sets of non-linear data and see what I mean.

HW 3.13 and 3.19. All about the archaeopteryx.

See you tomorrow.



Monday, September 24
Do problem 3.18. This is just like what we did in class.

Friday, September 21
Problems 3.1-3.3 and 3.5.

Fifth and sixth periods: You did a great job with all the distractions today. Thanks for trying to stay on task.

Good job, Trojans! You make us proud.

CiCi's on Sunday? 2-4.

Be safe.


A new Chapter!!!

Thursday, September 20

Copy the formulas and definitions from Chapter 3 into your notes.

Friday, September 07, 2007

Chapter 2 Probability Distributions

Summaries of current topics can be found below the homework details.

Tuesday, 9/18
Work three of the problems that you set up last night and in class today. ALSO, do problems 2.41, .42, and .43 completely.

What more do you need in order to be successful with this? Make a list! Outline the important concepts from the chapter!

Why is the normal distribution such a big deal?


Monday, 9/17
Select 15 problems from Chapter 2. Split your paper in half (hotdog style). Write the details of the GIVENS on the left and the items that the problem asks you to find on the right side. You do not have to solve the problems. Watch carefully for those cases where there are multiple requirements.

Your test is Thursday.

Wednesday, 9/12

UPDATE: I have posted a WORD document with hints on the homework site: classhomework.com. You'll have to enter the password and then click on the file name.

Post to the blog and let me know when you get it--but don't ruin the fun for the other students!
-------------------------------------------------------------------------------------------
You KNOW that the area under the curve in a probability distribution is always one (That's why you get 1 when you use normalcdf(-infinity, +infinity)). Go back to the first parts of Chapter 2 and review the characteristics of a probability distribution.

Then, for HW, find the values of x which represent the Q1, median, and Q3 of a triangular probability distribution that starts at the origin and ends at (4, ???). Yes, you have to figure out what the value of ??? is so the are under the curve is 1.

You will use the formula for the area of a triangle: A = (1/2) base * height.

There are many different ways of attacking this problem. How many can you find???




Tuesday 9/11
HW 2.24, 2.25, 2.30

If you don't understand something, ask a question on the blog. Coming to class unprepared is not an option.


Monday 9/10
HW 2.15, 2.16, 2.22, 2.23



Friday 9/7
You developed equations today to standardize observed values.

Your formula for the z-score was (observed x minus the average)/(standard deviation).

You also used a formula to find the value of x that has a certain z-value:
x = average value + (z-score)(standard deviation)

but you probably noticed that the second formula is redundant.

You also learned about the Empirical Rule.
http://www.stat.tamu.edu/~west/applets/empiricalrule.html

This ONLY WORKS with normal distributions and it is only an approximation. We will learn more precise methods next week.

If you're interested in a neat relationship that works for other types of distributions, check this out: http://www.stat.tamu.edu/stat30x/notes/node33.html

Another neat website:
http://people.hofstra.edu/stefan_waner/Realworld/Summary7.html

Now, is anyone out there planning to CiCi's this Sunday? I won't go unless there is interest, so post your plans!

HW: 2.6, 2.7, 2.8 and read up to that point in Chapter 2. Be safe.

Wednesday, August 29, 2007

Graphs and standard deviation & CiCi's

Preparing for the test
Your test is Thursday. Begin to prepare now by working problems and creating an outline.

Homework: For those in class today - rewrite your responses to the FR questions, plus work problem 1.4 from the text.

For those absent today: Problem 1.4 PLUS ALL OF 1.48-1.52. Pick up your original responses to the FR upon your return to complete overnight. If you were participating in Senior Skip Day, your absence is unexcused.

CiCI's
YES!!!! There is a request for CiCi's this Sunday, so I will be there from 2 to 4. That is the one by the Walmart at Trickum and 92 (close to Arby's).

Test is Thursday, 9/6!

If you are going on the marketing fieldtrip, stay after school to take the test in room 214 at 3:30. Don't forget to bring your calculator.

For Tuesday (9/4), select one odd and one even problem from the set 1.48-1.52 and work them completely. Become an expert on one of the problems.

For Friday (8/31), complete problems 1.41 and 1.43. The answers are in the back of the book, but that is not sufficient! You must show all work and explain your actions.



By Thursday (8/30), you should have both the graph from the Internet, a newspaper, or magazine and problems 1.35 and 1.36 from the text.

RE: the graph
You will identify the variable(s) represented in the graph and the type of graph you brought. Are the data numerical or categorical? Are numerical data discrete or continuous? Does your graph represent one variables or two? Is a trendline appropriate for your data?

RE: Standard deviation

The standard deviation of a sample of data is like an average deviation from the sample mean. It is the square root of the sample variance, which is an unbiased estimator of the population variance.

If we just found the sum of the deviations, we would get a sum of zero because some data are above the mean and some are below. Because of the definition of the mean, the positives and the negatives cancel each other out.

Instead, we square each deviation so the numbers we add together are all positive. We "average" these numbers by dividing by (n-1). You remember that n is the number of observations. We subtract one because we are using an estimate derived from the data themselves for x-bar. This gives us the sample variance or s-squared. To get the value of s just take the square root.

In formula form, s = sqrt(sum of all the squared deviations/(n-1)). The formula for the first squared deviation is (x minus x-bar)^2. Again, x-bar is the average of the x values.

The same relationship holds between sigma and sigma squared, the population standard deviation and the population variance: you take the square root of the variance to get the standard deviation.

Monday, August 27, 2007

Cumulative and relative frequency histograms

We created cumulative frequency histograms and relative frequency histograms today. For the cumulative frequency histograms, find the cumulative sum up to and including each line of the frequency table, for instance,

x freq cumulative freq
1-5 4 4
5-10 5 9
11-15 6 15


For the relative frequency distribution, divide the count for an interval by the total number of observations, n. What do you observe about the graphs of frequency and relative frequency????

The HW is attached to the site at classhomework.com.

Friday, August 24, 2007

Histograms - a beginning

Find a nice set of data to graph.

Create a frequency table for the data, breaking the data into 5, 7, or 9 intervals of equal length. That does NOT mean that there will be an equal number of observations in each bin or interval!

Create a histogram to represent the data.


http://www.ncsu.edu/labwrite/res/gt/gt-bar-home.html in Excel

http://jwilson.coe.uga.edu/EMT668/EMAT6680.F99/Estes/graphicaldisplays1page.html on the TI-83, but you need to reset the window!!!


http://facstaff.colstate.edu/henning_cindy/Calculator%20Assistance_files/Creating%20Histograms%20on%20TI83.htm

Thursday, August 23, 2007

Stem and leaf plots

Create a stem-and-leaf graph (a stemplot) of your data. If your data your data don't go nicely into a stemplot, find some fun data to use instead.

More later. . .


Have you found good resources on the web?


Do these help?
http://regentsprep.org/regents/math/data/stemleaf.htm

http://en.wikipedia.org/wiki/Stemplot

http://www.sjsu.edu/faculty/gerstman/StatPrimer/freq.pdf