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
14
votes
1 answer

How does google prediction API work

Can someone predict :) or guess how does the Google Prediction API work under the hood? I know there are some machine learning techniques: Decision Trees, Neuron networks, naive Bayesian classification etc. Which technique do you think Google is…
Yuval Rimar
  • 1,055
  • 12
  • 22
14
votes
2 answers

Cross validation for glm() models

I'm trying to do a 10-fold cross validation for some glm models that I have built earlier in R. I'm a little confused about the cv.glm() function in the boot package, although I've read a lot of help files. When I provide the following…
Error404
  • 6,959
  • 16
  • 45
  • 58
13
votes
1 answer

Multivariate time series forecasting with 3 months dataset

I have 3 months of data (each row corresponding to each day) generated and I want to perform a multivariate time series analysis for the same : the columns that are available are - Date Capacity_booked Total_Bookings Total_Searches …
dper
  • 884
  • 1
  • 8
  • 31
13
votes
3 answers

How to avoid overfitting on a simple feed forward network

Using the pima indians diabetes dataset I'm trying to build an accurate model using Keras. I've written the following code: # Visualize training history from keras import callbacks from keras.layers import Dropout tb =…
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
13
votes
3 answers

What are good algorithms for detecting abnormality?

Background Here is the problem: A black box outputs a new number each day. Those numbers have been recorded for a period of time. Detect when a new number from the black box falls outside the pattern of numbers established over the time…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
13
votes
2 answers

Prediction with lme4 on new levels

I'm trying to fit a mixed effects model and then use that model to generate estimates on a new dataset that may have different levels. I expected that the estimates on a new dataset would use the mean value of the estimated parameters, but that…
random_forest_fanatic
  • 1,232
  • 1
  • 12
  • 30
13
votes
2 answers

Time Series Ahead Prediction in Neural Network (N Point Ahead Prediction) Large Scale Iterative Training

(N=90) Point ahead Prediction using Neural Network: I am trying to predict 3 minutes ahead i.e. 180 points ahead. Because I compressed my time series data as taking the mean of every 2 points as one, I have to predict (N=90) step-ahead…
13
votes
2 answers

Matlab: neural network time series prediction?

Background: I am trying to use MATLAB's Neural Network toolbox to predict future values of data. I run it from the GUI, but I have also included the output code below. Problem: My predicted values lag behind the actual values by 2 time periods, and…
12
votes
5 answers

Classification - Usage of factor levels

I am currently working on a predictive model for a churn problem. Whenever I try to run the following model, I get this error: At least one of the class levels is not a valid R variable name. This will cause errors when class probabilities are…
Simon
  • 121
  • 1
  • 1
  • 5
12
votes
2 answers

R - loess prediction returns NA

I am struggling with "out-of-sample" prediction using loess. I get NA values for new x that are outside the original sample. Can I get these predictions? x <- c(24,36,48,60,84,120,180) y <- c(3.94,4.03,4.29,4.30,4.63,4.86,5.02) lo <-…
Pepacz
  • 881
  • 3
  • 9
  • 24
12
votes
1 answer

Prediction using Recurrent Neural Network on Time series dataset

Description Given a dataset that has 10 sequences - a sequence corresponds to a day of stock value recordings - where each constitutes 50 sample recordings of stock values that are separated by 5 minute intervals starting from the morning or 9:05…
IssamLaradji
  • 6,637
  • 8
  • 43
  • 68
12
votes
2 answers

Is there a way to set up a multi-hidden layer neural network with the mlp method in the caret package?

The mlp method in package caret calls the mlp function in RSNNS. In the RSNNS package, I can set up as many hidden layers in the neural net as I like by setting the size parameter, e.g. data(iris) #shuffle the vector iris <-…
Tommy Levi
  • 771
  • 5
  • 12
12
votes
2 answers

How to use Weka for predicting results

I'm new to Weka and I'm confused with the tool. I have a data set about fruit prices and related attributes. I'm trying to predict the specific fruit price using the data set. Since I'm new to Weka, I couldn't figure out how to do this task. Please…
12
votes
4 answers

How to save glm result without data or only with coeffients for prediction?

When I use the following R code, model_glm=glm(V1~. , data=xx,family="binomial"); save(file="modelfile",model_glm); The size of modelfile will be as much as the data, which will be 1gig in my case. How can I remove the data part in the result of…
Indicator
  • 361
  • 2
  • 13
11
votes
2 answers

Explain onehotencoder using python

I am new to scikit-learn library and have been trying to play with it for prediction of stock prices. I was going through its documentation and got stuck at the part where they explain OneHotEncoder(). Here is the code that they have used : >>> from…