Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [polynomial]

A mathematical expression w/ >1 term containing the same variable (eg, x & x^2). Polynomials are commonly used to model curvilinear relationships.

2
votes
1answer
22 views

How can I use polynomial distributed lag models for longitudinal categorical exposure?

I have SHS data from 13 time points and i want to describe the relationship between this cumulative exposure and health outcome after the 13th time point. It seems the ...
0
votes
0answers
20 views

Calculating predicted value from polynomial regression by hand

I have the following output from from R. I know we can calculate predicted values using the predict() function. How can we calculate the predicted value by hand if X=2 or 3? I'm using the below ...
0
votes
0answers
15 views

Unclear “mathematical notation” in a polynomial

Although, the Enigma here is a protocol for enhancing the privacy in blockchain; however, the question is about mathematical notation, where we want to calculate the coefficients in a polynomial. ...
0
votes
1answer
18 views

ANCOVA with Polynomial Categorical Variable

I have a homework problem that asks me to fit a one way ANCOVA model to a set of data (which I feel comfortable with). The model is represented as yij = μi + γzij + eij where i indicates ...
1
vote
1answer
39 views

Using a given polynomial formula in a lm() model in R

I am currently trying to fit a polynomial model to measurement data using the lm() function. fit_poly4 <- lm(y ~ poly(x, degree = 4, raw = T), weights = w) ...
0
votes
0answers
11 views

Package to perform 2nd degree polynomial regression with L1 penalty for use of the 2nd degree

I'm trying to fit either a straight line or 2nd degree polynomial through many sets of points (2-dimensional data). I would much prefer a straight line over a polynomial, so am trying to penalize the ...
1
vote
0answers
24 views

test for moderation in a quadratic regression model

I am trying to test for moderation in a quadratic regression model. my results show significant evidence of a quadratic relationship on one of the independent variables (x1) and also significant ...
0
votes
0answers
17 views

How to automatically identify degree of multiple independent variables of Polynomial Regression in R

In the dataset, there are 8 independent variable and 1 dependent variable. I want to use polynomial regression to find the relationship between independent variables and the dependent variable. The ...
2
votes
1answer
34 views

Quadratic polynomial - how to test correlation between x and y?

I have one dependent variable (fish abundance) and one independet variable (time), both continuous. I would like to test the correlation between them because I expect that the abudance changes over ...
0
votes
0answers
37 views

Explanation of covariance matrix of polynomial parameters [duplicate]

I'm asked to find the covariance matrix of $\alpha$, $\beta$, and $\gamma$ for: $$y_i=\alpha+\beta(x_i-\bar{x})+\gamma[(x_i-\bar{x})^2-\zeta^2]+\epsilon_i$$ where all the errors have equal variance $...
1
vote
0answers
37 views

Plot confidence interval of average polynomial fit from coefficients

I am studying the propagation of a wave and to do that I want to follow the position of my maxima over time. In order to do that I thought to fit a polynomial on the data of each replicate, then save ...
1
vote
1answer
46 views

Training r-squared decreases after adding higher degree polynomial terms to regression model

I was playing around with some examples to get some experience using the PolyFeatures tool from Scikit-Learn, and I ran into something strange. I iteratively added ...
2
votes
2answers
49 views

Can polynomial regression be used to handle data with more than one dimension?

Polynomial regression is said to be a subclass of linear regression. However, it seems that only linear regression can handle data input with more than one dimension, whereas polynomial regression ...
1
vote
1answer
49 views

Difficulty fitting polynomial model to data

I need to fit a model to an existing dataset such that I can use the parameters to replicate the best-fit curve to manage the behaviour of an application. I've been trying to fit a polynomial model, ...
3
votes
1answer
66 views

Orthogonal polynomials with respect to weighted inner product

Recently I have posted a question on SO, but maybe here is better place to ask. So, I have data and I want to fit polynomial of order $k$ orthogonal with respect to weighted inner product of functions:...
0
votes
0answers
26 views

What is the consequence from building polynomial regression with multiple ind. variables?

I'm exploring polynomial regression. I understand how to execute it for cases with one independent variable. What about cases with multiple independent variables? I'm working with the boston housing ...
0
votes
0answers
24 views

Selection optimum polynomial fit

I have fitted polynomial model of orders 1-4. I have three predictors with 7 levels and my response is 400 values from 0.6-0.9, which seems to be bad for information criterions. I am interested in ...
0
votes
2answers
62 views

Interpreting linear and polynomial predictors in LMM

I am using linear mixed models to investigate change over time on the score on a questionnaire, which was administered at 5 points in time. While I hypothesized a decline, I had no a priori ...
0
votes
1answer
140 views

Catboost Regression. Function Extrapolation

I'm new at ML and have a problem with catboost. So, I want to predict function value (For example cos | sin etc.). I went over everything but my prediction is always straight line Is it possible and ...
1
vote
0answers
91 views

Fitting multiple polynomial regression

I hope someone could advise to interpret and report outputs of the multiple polynomial regression fit. I am trying to do a simple sensitivity analysis of an empirical threshold-based ecological model ...
0
votes
1answer
81 views

Polynomial regression with multilevel data

I want to estimate a polynomial regression to test the effect of self and follower-perception of leadership behavior on some outcome (e.g., followers' job satisfaction). Hence, I have a multilevel ...
0
votes
1answer
88 views

polynomial regression in R: how to add hard constraints (go through specified points)? [duplicate]

I'd like to perform polynomial regression on my data (which lies in [0,10]), but I need to ensure that the endpoints of the range are fixed, i.e. that the curve goes through (0,0) and (10,10). So the ...
1
vote
1answer
37 views

Relation between number of features, higher order polynomial features and overfitting

Recently I came across an information stating that, if we have too many features, the model is most likely to overfit. I not sure why exactly this is happening. I mean, if I don’t use any higher order ...
1
vote
0answers
9 views

Difference in Predicted output in polynomial regression [closed]

In polynomial regression when the coefficients applied to calculate the predicted values manually is different from the output generated from the software. How to get the correct predicted values ...
2
votes
0answers
51 views

why not chosing always a spline?

I'm having a quite simple question: Why is a spline fit not the best choice everytime? In other words: How do I separate a spline fit from a kernel smoother or a polynomial in a meaningful way? I'm ...
1
vote
0answers
33 views

Polynomial chaos expansion and ODEs

I am trying to figure out how to use PCE. My background is dynamics and analysis. So if I understand correctly the main idea is that we have a random variable $X$, whose distribution we do not know, ...
1
vote
0answers
74 views

Linear Regression - Which Features Should We Apply a Polynomial Transform to and Why? [closed]

In which situations would a feature have a polynomial transformation appropriately applied to it, and why would we do this; what ultimate impact does this have on the data. Supposing we select the ...
1
vote
0answers
77 views

how to visualize the graph use matplotlib on polynomial and multiple regression with multiple predictors

Multiple: y=b0+b1X1+b2X2+b3X3....bnXn Polynomial: y=b0+b1X+b2(X)^2+....bn(X)^n Step1: Importing package import pandas as pd import numpy as np import sklearn import matplotlib.pyplot as plt import ...
1
vote
0answers
29 views

How to get specific terms of a polynomial function in a regression?

I want to simplify data from a complex modell like: fit <- lm(z ~ poly(a,4)*poly(b,5)*poly(c,6), data = somewhat) As I don't know which terms of the complete ...
0
votes
0answers
87 views

How to manually compute response variable using regression with poly [duplicate]

I believe I can manually compute response values from coefficients obtained using 'raw' polynomial predictor variables. Example R code is ...
2
votes
2answers
29 views

Maximum degree of a polynomial trend model

I have read some answers saying to make the maximum degree equals n-1 for testing. However, I wonder if it is also the case for a polynomial trend model with season variables included. I am using ...
0
votes
0answers
8 views

Determining Polynomial Trend, Stationarity, and Covariance of a Process

I'm given $$ Y_t = p(t) + \epsilon_t $$ where $\epsilon_t$ is a stationary series with covariance $\gamma_t$. Also given $$ p(t) = \sum_{r=0}^kK_rt^r $$ where the $K$s are constants, for the ...
1
vote
1answer
22 views

Does it make sense to do a polynomial contrast on a continuous time variable?

I tried running a few polynomial contrasts in SAS for a continuous time variable for linear, quadratic, cubic and quartic contrasts and the F values for each were the same. When I used categorical ...
1
vote
1answer
113 views

What more advanced methods can I use to predict future sales other than polynomial fitting? [closed]

I am using the polynomial fitting method to forecast the sales of a product throughout different years, where the polynomial is of degree 1. The error is measured by the sum of the squared residuals. ...
2
votes
1answer
70 views

How to check if a polynomial regression has any predictive value? [closed]

After fitting the polynomial data to a given curve, how can I check which of the many curves has the most predictive value ?
0
votes
0answers
35 views

Compare models with robust methds - R

This question is the first part of a larger question that is continued here. I thought that it could be easier to split it into two questions to generate better answer to both and to help further ...
0
votes
2answers
56 views

Compression of 18000 curves

I have over $18000$ curves that I need to compress to save $\geq 50\%$ of space. Each curve is described by points $f(1), f(2), ..., f(96)$, each $f(x)$ is 8-bit long. The curves in compressed form ...
2
votes
2answers
89 views

What kind of forecasting model for this curve?

I have two years of data - I want to forecast how the 2nd year of traffic will behave based off the previous year of data. The x axis is time, where left -> right is moving forward in calendar year ...
0
votes
0answers
16 views

Sensitivity study: measuring the effects of free parameters on performance measures of simulation

I am running a series of computer simulations in which I am outputting several performance measures. I want to know how much of the variability of these measures is due to the free parameters of the ...
2
votes
1answer
14 views

Distribution of a dice pool [duplicate]

The article Three Basic Distributions from AnyDice shows the distributions (and cumulative distributions) of 1d10, 2d10 and 3d10. Looking at the graphs, it seems there is a pattern here: 1d10: the ...
1
vote
1answer
277 views

forward model selection on multivariate polynomial regression with high dimension data

I am trying to fit the best multivariate polynomial on a dataset using stepAIC(). My problem is that I have more variables (p=3003) than observations (n=500), so ...
1
vote
0answers
27 views

How do factorization machines work for degree 3?

I understand that factorization machines as polynomial regressions, but their second degree coefficient form a matrix that is factorized as two smaller matrices. Some approaches for higher-order ...
3
votes
1answer
115 views

RKHS for polynomial kernel

Say we have a polynomial kernel of degree two: $k(x,x')=\langle x,x' \rangle^2$ for $X=\mathbb{R}^2$. I know that a feature map $\phi(x)=(x_1^2,\sqrt{2}x_1x_2,x_2^2)$ exist. What I want to know is ...
0
votes
0answers
28 views

Type of regression for a mix dataset

I am building a model for the following TYPE of dataset: Target function has float numerical values Variables are: 2 variables are float values 4 other variables are integers (Yes/No = 1 or 0) ...
4
votes
1answer
1k views

When is it better to use Multiple Linear Regression instead of Polynomial Regression?

In the course I've just learnt Multiple Linear Regression and Polynomial Regression. Why would you ever use Multiple Linear Regression when Polynomial Regression will always fit the data better?
0
votes
1answer
1k views

Degree Parameter for SVM Polynomial Kernel

For Support Vector Machines, what effect does the degree parameter have on a model, when using a polynomial kernel? I was able to find an intuitive explanation of the influence of cost and gamma ...
4
votes
1answer
172 views

What's the inverse of the finite polynomial $\phi_p$ in an $\ ARMA(p,q)$ model?

On learning about ARMA(p,q) models, Box and Jenkins (1970) defined a very important class of stochastic processes that is obtained as a white noise process goes through a linear filter. This can be ...
1
vote
1answer
37 views

Interpretation of Significance in a Polynomial Model?

I have the following output from a polynomial regression summary in R: ...
0
votes
2answers
332 views

Why does Mean Square Error decreases when I fit higher degree of polynomial?

I understand the intuition of polynomial regression with higher degree are able to fit the data better, as it is able to decrease your bias but increases the variance. However, I am unable to proof ...
2
votes
1answer
178 views

Model stability and variability

I am using polynomial regression to predict mean occupancy in a hospital unit using average length of stay (LOS) and arrival rate to the unit. I am using different percentages of training sets to ...