Scatter Charts and Sine Regression

01242014, 01:48 PM
Post: #1




Scatter Charts and Sine Regression
Hello,
I'm new to graphing calculators and precalculus. 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 TI84 to explain how to get the sine equation (y= a*sin*ω(xc)+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:
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:
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. 

01242014, 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 userdefined formula works, and sometimes it does not. A userdefined formula will work if you already selected a different type of fit (e.g. trig) and enter in your own formula. The fit will autoswitch to userdefined and all is nice. On the other hand, if you first manually choose userdefined fit, and then enter your formula, it appears as a horizontal line along the xaxis. There is definitely a bug in the this app. Graph 3D  QPI  SolveSys 

01262014, 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.


01262014, 08:20 PM
Post: #4




RE: Scatter Charts and Sine Regression
(01262014 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 

01262014, 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 the HP calculator group, the views and opinions I post here are my own. 

« Next Oldest  Next Newest »

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