As of late I have been learning much about machine learning, basically trying to rehearse how computers learn and possibly use this method to gain an "achievement" with the lottery!!? lol - Thus far I wanted to present what I currently have figured out in terms of coding using python to predict a vector of 5 dimensions or a pick 5 game. What I have, is very simple - however complex if you're not familiar with programming and machine learning. I thought to share my code and see if there's any one here whom would like to contribute in this project and make it complete.

So far the following functions have been called;

One and only one input training sample for X (Multiple batches are needed to predict better), likewise, only one sample for y.

There are 5 inputs, 5 outputs and 4 hidden layers.

5 random weights per neuron connection w^{l}_{jk}.

The sigmoid function is assigned to each activation layer.

And sigmoid prime which depicts the amount of error for the output y-hat.

import numpy as np #Sample training input X = np.array(([3,5,20,23,26]), dtype=float) y = np.array(([3,20,25,28,30]), dtype=float)

X = X/np.amax(X, axis=0) y = y/36 #Max number size is 36

Computing the cost function with respect to each derivatives weight,

Numerical gradient checking,

training the network,

Testing and overfitting.

Any one interested in adding information is welcome. This is a software to get a visual sense in how Neural Networks can perform predictions in the background.

Adding backprop and the cost function to the above code;

def costFunction(self, X, y): #compute cost for given x,y, use weights already stored in class self.yHat = self.forward(X) J = 0.5*sum((y-self.yHat)**2) return J

def costFunctionPrime(self, X, y): #compute derivative with respect to W's for a given x and y self.yHat = self.forward(X)

No. Random is simply used to initialize the value of "weights" in order to run gradient descent. Without random values, it is very complex to choose your own weight values - mathematically speaking, it could take more than the universe has existed to find all possible values for a 3 dimensional vector, for example.

Quote: Originally posted by osmannica2001 on March 12, 2016

No. Random is simply used to initialize the value of "weights" in order to run gradient descent. Without random values, it is very complex to choose your own weight values - mathematically speaking, it could take more than the universe has existed to find all possible values for a 3 dimensional vector, for example.

Quote: Originally posted by osmannica2001 on March 10, 2016

Hi,

As of late I have been learning much about machine learning, basically trying to rehearse how computers learn and possibly use this method to gain an "achievement" with the lottery!!? lol - Thus far I wanted to present what I currently have figured out in terms of coding using python to predict a vector of 5 dimensions or a pick 5 game. What I have, is very simple - however complex if you're not familiar with programming and machine learning. I thought to share my code and see if there's any one here whom would like to contribute in this project and make it complete.

So far the following functions have been called;

One and only one input training sample for X (Multiple batches are needed to predict better), likewise, only one sample for y.

There are 5 inputs, 5 outputs and 4 hidden layers.

5 random weights per neuron connection w^{l}_{jk}.

The sigmoid function is assigned to each activation layer.

And sigmoid prime which depicts the amount of error for the output y-hat.

import numpy as np #Sample training input X = np.array(([3,5,20,23,26]), dtype=float) y = np.array(([3,20,25,28,30]), dtype=float)

X = X/np.amax(X, axis=0) y = y/36 #Max number size is 36

Computing the cost function with respect to each derivatives weight,

Numerical gradient checking,

training the network,

Testing and overfitting.

Any one interested in adding information is welcome. This is a software to get a visual sense in how Neural Networks can perform predictions in the background.

You appear to be a mathematically gifted person, but now how does all of this genius relate to the Lottery ??? How do you choose which lottery numbers to play, based on all of your calculations ??

The main reason of this post, is to hopefully find help (from someone) in finishing the algorithm to find patterns in previous lottery draws in order to predict future numbers.

This algorithm is still not complete. But to answer your question, the outlook of the algorithm is to find hidden variables in order to compute predictions with zero error, such using Artificial Intelligence.

In choosing the numbers, I have found that prior numbers drawn prior to the day of game play, provide higher chances of giving a true prediction of today's winning numbers.

Reality is, the idea is for machine learning or a computer to predict next winning numbers on a given game.

Quote: Originally posted by osmannica2001 on April 8, 2016

Hi,

The main reason of this post, is to hopefully find help (from someone) in finishing the algorithm to find patterns in previous lottery draws in order to predict future numbers.

This algorithm is still not complete. But to answer your question, the outlook of the algorithm is to find hidden variables in order to compute predictions with zero error, such using Artificial Intelligence.

In choosing the numbers, I have found that prior numbers drawn prior to the day of game play, provide higher chances of giving a true prediction of today's winning numbers.

Reality is, the idea is for machine learning or a computer to predict next winning numbers on a given game.

This is a great topic.. I do believe it may be possible to make accurate predictions on such a game like the pick 3 win 4 (ideally) and take 5 any Mega and powrball is a different beast but it may be possible to conquer.. From my experiences I have come to the conclusion that the lottery results stem from the first day it was ever played on any game.. Now this is something almost out of the universe the correlations from then and now but is possible to create an advantage without even going to day 1.. Its is something to keep in mind as we all play these games and stop looking for answers that mostly mean nothing.. the game is based og calculated risks and some people seem not to believe in an educated guess (hypothesis) yes u may get lucky here and there but an educated guess(s) every draw is by far more powerful to succeeding in the game.. The lottery ball catcher shown on tv and our qp generator are 2 different entitys so it kills me when people say more people win on qp's than any other way into he game.. that is pure luck that the two come together.. Brother honestly to cracking the code of a game like win 4 may be easier than math we can talk more about this ...tell me your take

Quote: Originally posted by osmannica2001 on March 10, 2016

Hi,

As of late I have been learning much about machine learning, basically trying to rehearse how computers learn and possibly use this method to gain an "achievement" with the lottery!!? lol - Thus far I wanted to present what I currently have figured out in terms of coding using python to predict a vector of 5 dimensions or a pick 5 game. What I have, is very simple - however complex if you're not familiar with programming and machine learning. I thought to share my code and see if there's any one here whom would like to contribute in this project and make it complete.

So far the following functions have been called;

One and only one input training sample for X (Multiple batches are needed to predict better), likewise, only one sample for y.

There are 5 inputs, 5 outputs and 4 hidden layers.

5 random weights per neuron connection w^{l}_{jk}.

The sigmoid function is assigned to each activation layer.

And sigmoid prime which depicts the amount of error for the output y-hat.

import numpy as np #Sample training input X = np.array(([3,5,20,23,26]), dtype=float) y = np.array(([3,20,25,28,30]), dtype=float)

X = X/np.amax(X, axis=0) y = y/36 #Max number size is 36

Computing the cost function with respect to each derivatives weight,

Numerical gradient checking,

training the network,

Testing and overfitting.

Any one interested in adding information is welcome. This is a software to get a visual sense in how Neural Networks can perform predictions in the background.

I suggest you work on stocks or sports betting as NN don't work on random. I have built many and tried

just about every prediction method. Sure you can build something that will give you the best numbers to

play based on the history of the game, just don't expect the best numbers to show in the next game or

the one after that or even the game after that. Using a NN to come to a solution looks attractive until the

drawing. At best it might get a couple numbers, just enough to keep you chasing you tail so to say. Check

the math forum as there is a ongoing NN topic with download.