Questions tagged [prediction]

For questions related to statistical prediction, especially for programming tasks.

In science, a prediction is a rigorous, often quantitative, statement, forecasting what will happen under specific conditions; for example, if an apple falls from a tree it will be attracted towards the center of the earth by gravity with a specified and constant acceleration. The scientific method is built on testing assertions that are logical consequences of scientific theories. This is done through repeatable experiments or observational studies.

Mathematical equations and models, and computer models (e.g., ), are frequently used to describe the past and future behaviour of a process within the boundaries of that model.

In microprocessors, permits avoidance of pipeline emptying at branch instructions. In engineering, possible failure modes are predicted and avoided by correcting the mechanism causing the failure.

2846 questions
8
votes
2 answers

Classifying Single Instance in Weka

I trained and created a J48 model using WEKA gui. I saved the model file to my computer and now I would like to use it to classify a single instance in my Java code. I would like to get a prediction for the attribute "cluster". What I do is the…
Erol
  • 6,478
  • 5
  • 41
  • 55
8
votes
2 answers

Predicting from previous date:value data

I have a few data sets from similar periods of time. It's a presentation of people at that day, the period being about a year. The data hasn't been gathered in regular intervals, it is rather quite random: 15-30 entries for each year, from 5…
schme
  • 202
  • 2
  • 15
7
votes
4 answers

How to predict system resource need?

Is there any software or way to predict system resource need by taking several inputs such as MySQL query read/write ratio, queries executed in a second, properties of tables and databases, maybe some more inputs related with PHP configurations etc.…
user1055645
7
votes
2 answers

data shuffling by sample() decreases RMSE to lower value in testingset than trainingset

I have detected a peculiar effect that RMSE gets lower for the testing set than that of the training set with the sample function with the caret package. My code does a common split of training and testing set: set.seed(seed) training.index <-…
Agile Bean
  • 6,437
  • 1
  • 45
  • 53
7
votes
1 answer

Using LIBSVM to predict authenticity of the user

I am planning on using LibSVM to predict user authenticity in web applications. (1) Collect Data on particular user behavior(eg. LogIn time, IP Address, Country etc.) (2) Use Collected Data to train an SVM (3) Use real time data to compare and…
ruwanego
  • 427
  • 2
  • 7
  • 18
7
votes
1 answer

mgcv gam() error: model has more coefficients than data

I am using GAM (generalized additive models) for my dataset. This dataset has 32 observations, with 6 predictor variables and a response variable (namely power). I am using gam() function of the mgcv package to fit the models. Whenever, I try to…
Haroon Lone
  • 2,837
  • 5
  • 29
  • 65
7
votes
3 answers

Appending predicted values and residuals to pandas dataframe

It's a useful and common practice to append predicted values and residuals from running a regression onto a dataframe as distinct columns. I'm new to pandas, and I'm having trouble performing this very simple operation. I know I'm missing something…
Uncle Milton
  • 163
  • 1
  • 3
  • 10
7
votes
6 answers

Pseudo-Random Binary Sequence Prediction

Given a pseudo-random binary sequence (e.g.: 00101010010101) of finite values, predict how the sequence will continue. Can someone please tell me the easiest way to do it? Or in case it's too difficult for someone who can barely play solitaire on…
Rocket Power
  • 71
  • 1
  • 3
7
votes
1 answer

Deep Learning Neural Networks for Time Series Prediction

I'm starting a work on Internet traffic prediction (time series prediction) using artificial neural networks, but I have few experience with the matter. Does anyone knows which method is the best for that? (which type of neural network to use for…
7
votes
3 answers

Is it possible to predict the next number in a number generator?

With programming, it is never "random". Even the random generator uses an algorithm to predict a random number. But, if knowing the method of generation, is it possible to, let's say predict next 5 numbers that will be generated?
user2533070
7
votes
2 answers

How to create a graph showing the predictive model, data and residuals in R

Given two variables, x and y, I run a dynlm regression on the variables and would like to plot the fitted model against one of the variables and the residual on the bottom showing how the actual data line differs from the predicting line. I've seen…
FloppyDisk
  • 1,693
  • 16
  • 25
7
votes
1 answer

Weighted slope one algorithm? (porting from Python to R)

I was reading about the Weighted slope one algorithm ( and more formally here (PDF)) which is supposed to take item ratings from different users and, given a user vector containing at least 1 rating and 1 missing value, predict the missing…
NJ Torrance
6
votes
1 answer

lm predict won't predict

I have 2 data frames. One is training data (pubs1), the other (pubs2) test data. I can create a linear regression object but am unable to create a prediction. This is not my first time doing this and can't figure out what is going wrong. >…
screechOwl
  • 27,310
  • 61
  • 158
  • 267
6
votes
1 answer

R: cannot predict specific value

> age <- c(23,19,25,10,9,12,11,8) > steroid <- c(27.1,22.1,21.9,10.7,7.4,18.8,14.7,5.7) > sample <- data.frame(age,steroid) > fit2 <- lm(sample$steroid~poly(sample$age,2,raw=TRUE)) > fit2 Call: lm(formula = sample$steroid ~ poly(sample$age, 2, raw…
sujinge9
  • 231
  • 3
  • 4
  • 7
6
votes
1 answer

R: Extracting Rules from a Decision Tree

I am working with the R programming language. Recently, I read about a new decision tree algorithm called "Reinforcement Learning Trees" (RLT) which supposedly has the potential to fit "better" decision trees to a dataset. The documentation for…
stats_noob
  • 5,401
  • 4
  • 27
  • 83