Post Reply 
Scatter Charts and Sine Regression
01-24-2014, 01:48 PM
Post: #1
Scatter Charts and Sine Regression
Hello,
I'm new to graphing calculators and pre-calculus. So far the Prime has helped tons to visualize things. After spending most this week trying to figure this issue out and having no luck, I'm hoping maybe someone here can point me in the right direction.

My current section involves graphing sinusoidal data. The book uses the SinReg function of a TI-84 to explain how to get the sine equation (y= a*sin*ω(x-c)+b) from the scatter points. I've been having issues getting it to work on the Prime.

For one example, I go to Statistics 2Var and enter the data:
Code:

    C1      C2
1:   0      2.1
2:   2      1.1
3:   4     -0.8
4:   6     -2.1
5:   8     -1.3
6:  10      0.6
7:  12      1.9
8:  14      1.5

Then for Plot Setup I use X Rng: -1, 15 Y Rng: -3, -3 and the scatter points appear looking similar to cosine graph. The question requires me to use the data to figure out the equation by hand for the cosine graph which fits the points. Doing so I get:

y= 2.1*cos(0.52x)

If I then place that equation in the Symbolic View for S1, select C1 and C2, User Defined fit and my cosine equation, the fit matches nicely.

I'm then required to use a graphing calculator to find the sine function that fits the data and refers to the before mentioned TI84 SinReg function. Their answer matches the scatter points nicely and has the equation:
y=2.05*sin(0.50x+1.55)-0.01

The only way I know so far to do this on the prime is in Symbolic View select the fit as Trigonometric. However, the resulting plot shows a small sine graph no where near the cosine graph and when returning to the Symbolic View shows the equation in the fit box of:
y= .18*sin(-14.77x+113.35)+.32

There have been a few other similar questions where the Trigonometric fit isn't anywhere near my scatter points. However, some questions it fits fine, such as with this data:
Code:

     C1       C2
 1:   1      40.0
 2:   2      43.1
 3:   3      54.6
 4:   4      64.2
 5:   5      73.8
 6:   6      81.8
 7:   7      85.8
 8:   8      83.9
 9:   9      76.9
10:  10     66.8
11:  11     55.5
12:  12     44.5

I don't know if I'm not setting something up right or if there's a different process for doing this on the Prime. I think it matches when the scatter points are close to a sine graph, but if they're closer to cosine then it seems the Trig fit won't work too well.

I'm still going through the User Manual and figuring a lot out. I've just been stuck on this for a while and hope to have some idea to finish the homework this next week.

Thank you.
Find all posts by this user
Quote this message in a reply
01-24-2014, 04:27 PM
Post: #2
RE: Scatter Charts and Sine Regression
Change your angle mode to degrees and it should work. In radian mode, it gives the wrong fit.

There seems to be a second issue here (for me) in that sometimes the user-defined formula works, and sometimes it does not. A user-defined formula will work if you already selected a different type of fit (e.g. trig) and enter in your own formula. The fit will auto-switch to user-defined and all is nice. On the other hand, if you first manually choose user-defined fit, and then enter your formula, it appears as a horizontal line along the x-axis.

There is definitely a bug in the this app.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
01-26-2014, 08:03 PM
Post: #3
RE: Scatter Charts and Sine Regression
Dumb question - specifically how do you enter/use a user defined function in this app? Can to key it in the SYMB view directly? Do you have to create a user defined function outside of the app? Users guide was not helpful for me.
Find all posts by this user
Quote this message in a reply
01-26-2014, 08:20 PM
Post: #4
RE: Scatter Charts and Sine Regression
(01-26-2014 08:03 PM)CR Haeger Wrote:  Dumb question - specifically how do you enter/use a user defined function in this app? Can to key it in the SYMB view directly?

That's how I did it.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
01-26-2014, 08:26 PM
Post: #5
RE: Scatter Charts and Sine Regression
Yes, you just key it in. You can also edit an existing fit to see how that changes the graph.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)