Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

83
Views
How to predict the y based on past data

I have a data array like this

{x: 0, y: 7.9}
{x: 1, y: 7.5}
{x: 2, y: 7.0}
{x: 3, y: 7.4}
{x: 4, y: 7.3}
{x: 5, y: 7.2}
{x: 6, y: 7.5}
{x: 7, y: 7.6}
{x: 8, y: 7.7}
{x: 9, y: 7.2}

Based on this data, how can I find out the following y? For example, I used a library to find out this data but how could I predict based on this data the following data eg for the next 30 indexes now I have this

const cleanData = helpers.cleanData(this.data.datasets[0].data);
            const ordersRegression = regression.linear(cleanData);
            const regressionPoints = ordersRegression.points.map(([x, y]) => {
                return {x, y};    
            });

            this.data.datasets[1].data = regressionPoints;

But now I would like to do something with the data that I have to predict the following It's possible ? Is there a genuine formula?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!