Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8273695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:33:05+00:00 2026-06-08T07:33:05+00:00

The issue at hand is I need a mathematical method to model the sign

  • 0

The issue at hand is I need a mathematical method to model the sign of an set of x,y values. Specifically, I know there are methods to use polynomial regression, however, if I only care about the sign of the values (+/-), is there a simpler way? My current method of doing so:

import numpy
numpy.polyfit(x_bytearray,y_bytearray)

however, I only care whether or not the result gives me a positive value where the y_bytearray value was positive, and negative if the y_bytearray value was negative. Is there anyway to fiddle with the polyfit code to use a different weighting method other than least-squares?

Edit
The sign of x is sign(x)= x/abs(x) (-1 or 1) and the fitted polynomial or other expression must only satisfy the requirement that sign(y_bytearray[i]) == sign(computed_y[i]).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:33:06+00:00Added an answer on June 8, 2026 at 7:33 am

    Least Squares is popular because it’s simple and easy to calculate. There are lots of other possible methods but they are less likely to be implemented in libraries, so you’ll have to do them yourself.

    Another thing to look into is binary classification. There are tons of classification methods, but one of the best is Random Forest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My issue at hand is that I need to remove about 60M records from
The issue at hand is this. We have a web application with two different
i encounter an issue with my application. On one hand when my app launches,
The short version of my issue at hand, Windows 7 Professional x64 Java JDK
I am having an issue with a string manipulation method I have written. The
Here's the issue at hand: I have developed an ASP.NET MVC3 application using Razor.
I've been working on http://healthimpactnews.com and I need to fix this issue asap. For
This is a simplification of the issue (there are lots of ways of doing
Alright, so here is my issue. I need to generate xml in Java to
I have a complex issue at hand. I have developed a program that takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.