Skip to main content
0 votes
1 answer
89 views

I'm getting an odd problem where I've attempted to plot a scatter graph and fit a quadratic regression line to it. I used stat_smooth() to make the line, and stat_regline_equation() to print the ...
CJG's user avatar
  • 3
1 vote
0 answers
168 views

I am regressing Y~(X1, X2) such that this fit is perfect (R squared is 1), where the R squared for Y~X1 and Y~X2 are chosen somewhere in the interval $(0,1)$. I am trying to create the numerical ...
turtlesandwich's user avatar
0 votes
0 answers
65 views

I’m trying to create a simple model in Java that predicts marks based on study hours (using a basic linear regression formula). My goal is to make it interactive — where the user can enter the number ...
vadde sree's user avatar
2 votes
0 answers
89 views

I would like to obtain estimates of the variance explained by each predictor in multiple regression using robust linear regression (for instance with the R function lmrob from robustbase R package or ...
CafféSospeso's user avatar
-3 votes
1 answer
42 views

I just want to ask whether the function mmec is deprecated in the latest version? because when I am trying to use it, its displaying (could not find function "mmec") message. It is ...
Muhammad Kamran's user avatar
0 votes
0 answers
70 views

My code: def calc_cost_function(w, b, data): m = len(data) cost = 0 for i in range(m): x = data.iloc[i].X y = data.iloc[i].Y cost += ((x * w + b) - y)**2 return ...
Aditya Verma's user avatar
0 votes
1 answer
49 views

I'm working with DolphinDB and trying to compute weighted least squares (WLS) regression between multiple pairs of columns in a table. The mslr function (moving least squares regression) works ...
Stella.W's user avatar
1 vote
1 answer
77 views

I am planning to make a Linear Regression model using C. It takes a set of m points as input from stdin using scanf. The points are defined as a struct: typedef struct{ double x; double y; } ...
Nirav Pandey's user avatar
2 votes
1 answer
109 views

I created two models using the lm() function in R. The first model, I created the design matrix for my prediction variable and then fed that into the lm() function. copy <- data.frame(mtcars) ...
Arthur's user avatar
  • 21
3 votes
0 answers
80 views

I have some real data points, and I'm trying to use the ODR to fit linear regression and also output the uncertainty error of the slope. import numpy as np from scipy.odr import ODR, Model, RealData ...
Mom Mam's user avatar
  • 151
0 votes
1 answer
28 views

In DolphinDB, I'm trying to perform multiple regression on multiple columns by using metaprogramming function sql, but I'm getting an error. Here's my script: sql(sqlColAlias(makeUnifiedCall(toArray, ...
saki's user avatar
  • 319
2 votes
2 answers
68 views

I am quite new to the data analytics stuff and R/RStudio so I am in need of advice. I am doing a project and asked to do: for every variable that has missing value to run a linear regression model ...
petar's user avatar
  • 21
0 votes
1 answer
49 views

I'm trying to implement a simple linear regression algo, and for that I've written two functions: Cost function Gradient descent Cost function appears to work normally, as in it's not giving me ...
Lucirie's user avatar
  • 15
3 votes
1 answer
141 views

Currently using R 4.4.3 on Windows 11. I'm plotting the following data set with ggplot2 and performing a linear regression with geom_smooth: df <- data.frame(A= c(1.313, 1.3118, 1.3132, 1.3122, 1....
jeffgoblue's user avatar
6 votes
2 answers
151 views

I'm trying to conduct the residual analysis for simple linear regression. I need to prove that the residuals follow an approximate Normal Distribution. The csv file I'm using has values for Percentage ...
advaitketkar's user avatar

15 30 50 per page
1
2 3 4 5
436