You are Here: Home >< Maths

Maths - Regression Question? watch

1. Hi Everyone,

For a maths project I am doing, I have modelled some data using a cosine function and I wanted to have a quantitative way to know how well the model fits the data points. Can I find an r^2 value for a cosine graph, because I have read that it can only be used for linear regression. However, when I did a sine regression on Desmos it gave me an r^2 value.

2. (Original post by Dotti22)
Hi Everyone,

For a maths project I am doing, I have modelled some data using a cosine function and I wanted to have a quantitative way to know how well the model fits the data points. Can I find an r^2 value for a cosine graph, because I have read that it can only be used for linear regression. However, when I did a sine regression on Desmos it gave me an r^2 value.

Hi! I'm not very great at maths, but I'll move your question over to the maths section so you get replies from our maths geniuses
3. (Original post by Amefish)
Hi! I'm not very great at maths, but I'll move your question over to the maths section so you get replies from our maths geniuses
Thank you so much!
4. (Original post by Dotti22)
Hi Everyone,

For a maths project I am doing, I have modelled some data using a cosine function and I wanted to have a quantitative way to know how well the model fits the data points. Can I find an r^2 value for a cosine graph, because I have read that it can only be used for linear regression. However, when I did a sine regression on Desmos it gave me an r^2 value.

Yes, this will work fine - the "linear" in "linear regression" refers to linearity in the regression coefficients - the betas that you estimate, not in the functional forms of the covariates. You can fit linear combinations of any functions that you like using linear regression.

Related university courses

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: July 19, 2017
Today on TSR

Edexcel C4 Maths Unofficial Markscheme

Find out how you've done here

1,715

students online now

Exam discussions

Poll
Useful resources

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

How to use LaTex

Writing equations the easy way

Study habits of A* students

Top tips from students who have already aced their exams

Chat with other maths applicants