Join TSR now and get all your revision questions answeredSign up now
    • Thread Starter
    Offline

    0
    ReputationRep:
    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.

    Thanks in advance
    • Community Assistant
    • Welcome Squad
    Offline

    20
    ReputationRep:
    (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.

    Thanks in advance
    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
    • Thread Starter
    Offline

    0
    ReputationRep:
    (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!
    Online

    12
    ReputationRep:
    (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.

    Thanks in advance
    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.
 
 
 
Poll
Which Fantasy Franchise is the best?
Useful resources

Make your revision easier

Maths

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

Equations

How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.