ADVICE NEEDED, JAVA SPORTS PREDICTION / FORECASTING ALGORITHM

Hi,
I am considering programming a Java Application which predicts sporting results (based on previous results),
Which forecasting algorithms should I use to predict/forecast results of future matches based on previous results? (or how should I go about this task)
Any feedback or ideas are very appreciated.

Any forcasting method whatsoever, is based on examining previous history, assigning relavance to previous event (like the team lost because it was away from home, or they don't play well in the rain) in order to make the prediction.
So you must create a model of what historical events you believe to be important, (this is essentially a free choice on your part) and then you collect that history, assign the relevance to each event, (using whatever relevance you want to attach to each chunk) and then you use what ever algorithm you like to combine the results and make your prediction.
Of course, you model has very litte to do with reality, and depending on how much work you do in designing your model, reality may or may not be related to your model.
So your question about what forcasting method to use is somewhat irrelevant. The real qestion is how much information do you have access to, how much work do you want to do etc.
Consider for example the following: Suppose you had asked the exact same question not about sports teams game outcomes, but rather about the outcomes of a coin flipping. You want to write a Java application that will tell me which way the coin will land, Heads or Tails. What is the right algorithm to use? baysian analysis, time series analysis, etc.
Hopefully, you can see that it just doesn't matter. Since the event is the classical example of an unbiased random event, your predictions will be right half of the time and wrong half of the time. You can use a random number generator to predict heads half of the time and tails half of the time, or you could write a much simpler program and just predict Heads every single time. Simple code and just as good as anything more complicated.
You like to believe that the outcome of a sporting event is NOT a classical random event and that you ought to be able to do a better job at predicting than just guessing. The only way you will know if you can do a better job consists of creating theories about what data might be relevant to improving your guesses, building models based on those theories and seeing if the model does better than random guessing. This is what statisticians do.
The poster that suggested that you use a random number generator is not far from wrong. That was simply proposing the theory that the process is random, not predictable and therfore not worthy of spending time writing extra code. That model completely ignores historical evidence and generates a result and that model is in fact a predictor and will be correct a certain percentage of the time. (of course, a simpler predictor that does nearly the same is to just predict a win every single time, shorter faster code)
In the weather business, where they look at weather patterns and satelite photos, and study the entrails of goats, there is a common simple model. It is good. It is better than random guessing. It is the gold standard of weather predicttion. All other prediction systems are measured against this model. The model is simply this. Predict for tomorrow the weather you see today. If it is raining today predict that it will rain tomorrow. If it is sunny predict sunny.
You are correct on any continuation of previous weather and you miss any change and guess what, continuation is more common than change. This model works so well, and furthermore is so trivial, that anyone that is trying to sell a more complicated model of the weather must first show that the new improved model predicts better than the trivial model, because if it is only that good, forget it.
So my advice to you is do exactly the same for you teams. Just predict that they will do the same as they did last time.
First of all, this is a simple model and easy to implement.
Second it forces you to think about how you get access to historical information and how you can incorporate it into a decision process.
Third it will probably do the same as the weather. Good teams that win will tend to win, loser will tend to lose.
You can get all the other components of this system working allowing this to be a place holder that you can always replace later when you discover the superior predictor, if there is one.
However I will make a prediction. You will have to work pretty hard to do better than this simple algorithm and given that you asked this question you have already indicated that you don't know much about prediction and forecasting algorithms and thus it is unlikely that you will make much headway on this difficult problem.
There is on the other hand a good chance that if you do everything else right, build an nice user interface, and make your code easy and fun to use, someone will come along with some suggestions about how you could improve your predictions and then the statistical model building fun can begin. Just make them first prove that their more complicated predictor works better than the gold standard, "What happened today will happen tomorrow"
Enjoy

Similar Messages

  • I Need Java code for following Algorithm

    * I Need Java code for following algorithm. Kindly any one help.
    1. Read the contents (ideas and its corresponding scores) from two files named as 'a' and 'b'.
    2. Stored the file 'a' contents in array a[].
    3. Stored the file 'b' contents in array b[].
    4. compare both files like
    if(a.equals(b[j])
    Writing the common idea and add the score from file 'a' and 'b'.
    else
    write the uncommon idea and its score..
    For example :
    Form Agents.txt
    action,65
    architecture,85
    eco-,15
    essay,30
    form,85
    form,85
    link,40
    tangent,25
    Form Agents1.txt
    Black holes,69
    essay,78
    Herewith i have above mentioned two files named as Form Agents and Form Agents1.
    Form Agents has eight fields
    Form Agents1 has two fields
    --> 'essay' is common in two files, so store the idea 'essay' and add the score from Form Agents score is '30' and Form Agents1 has 78 (essay 108).
    Finally it stores idea in another file with uncommon fields also.
    Please help us.

    We have tried with following code.
    But we cant add the scores.
    For Example:
    Form Agents.txt --> has "essay,30"
    Form Agents1.txt --> has "essay,78"
    Result is: essay,108
    Finally it stores idea in another file with uncommon fields also.
    So Any one pls correct the following code.
    try
    DataOutputStream o1=new DataOutputStream(new
    FileOutputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\CandidateResponses\\Form
    Agents.txt"));
    //Reading the contents of the files
    BufferedReader br= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Ideological\\Form
    Agents.txt")));
    BufferedReader br1= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Related\\Form
    Agents.txt")));
    while((s=br.readLine())!=null)
    s1+=s+"\n";
    while((s2=br1.readLine())!=null)
    s3+=s2+"\n";
    int numTokens = 0;
    StringTokenizer st = new StringTokenizer(s1);
    String[] a = new String[10000];
    String[] br_n=new String[10000];
    int i=0;
    while (st.hasMoreTokens())
    s2 = st.nextToken();
    a=s2.substring(0,s2.length()-3);
    s6=s2.substring(s2.length()-2);
    br_n[i]=s6;
    i++;
    numTokens++;
    int numTokens1 = 0;
    StringTokenizer st1 = new StringTokenizer (s3);
    String[] b = new String[10000];
    String[] br1_n=new String[1000];
    int j=0;
    while (st1.hasMoreTokens())
    s4 = st1.nextToken();
    b[j]=s4.substring(0,s4.length()-3);
    s7=s4.substring(s4.length()-2);
    br1_n[j]=s7;
    j++;
    numTokens1++;
    int x=0;
    for(int m=0;m<a.length;m++)
    for(int n=0;n<b.length;n++)
    if(a[m].equalsIgnoreCase(b[n])){
    int sc=Integer.parseInt(br_n[m]);
         int sc1=Integer.parseInt(br1_n[n]);
    int score=sc+sc1;
         o.writeBytes(a[m]+","+score+"\n");
    break;
    else
    o.writeBytes(a[m]+","+br_n[m]+"\n");
    break;
    }catch(Exception e){}

  • Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7

    Hi All
    I Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7.
    SQL developer behaves weirdly sometimes. It frequently drops connection, doesn;t show compile button when i open a procedure and certain other things.... I found ver 3.0 quiet stable.
    I think it may be because of my incorrect java version (1.6.0). Please tell me how can I get this Java version 1.6.0_4. I checked oracle.com, version 35 is available there....
    Can you please help me by providing this ?
    Thanks

    >
    I Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7.
    I think it may be because of my incorrect java version (1.6.0). Please tell me how can I get this Java version 1.6.0_4.
    Can you please help me by providing this ?
    >
    No - we can't provide it. You have to download it yourself. If you have trouble with the download you should report the problem to Oracle.
    >
    I checked oracle.com, version 35 is available there....
    >
    If you checked at the Java SE Downloads page
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Then you should have seen the 'Previous Releases' link jus above the download Icons near the top of the page.
    http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u1-oth-JPR
    All of the available prior versions are available at that link.
    But I strongly suggest you heed the advice given to use the latest 1.6 version of Java available unless you have a very good reason not to.

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • Need java script 6.26 to use banking software keep getting "the connection was reset" error Java appears on addon blocked list

    I am trying to use Team One Credit Unions CU@home to access my accounts. Their support team tells me I need Java script 6.26. I show that on my add on list but it also states Java is blocked on the blocked software list. How do I get Java script running so I can do my home banking or at least test it to be sure that is the issue. I have tried running this program with Java enabled and disabled with the same results.

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    See:
    * http://kb.mozillazine.org/Java
    * http://kb.mozillazine.org/JavaScript
    Java 6 U26 is about the Java plugin.
    You can see in "Tools > Add-ons > Plugins" if the Java plugin is installed and also on the about:plugins page via the location bar.
    * http://www.java.com/en/download/help/testvm.xml - How do I test whether Java is working on my computer? - 1.4.2_xx, 1.5.0, 6.0

  • Does "Bridge Web Gallery" need Java on hosting server to run?

    I have uploaded a web gallery made with Bridge CS6, but all I see is a white screen. the gallery works fine locally. I just spoke with my host servers tech support and all he can think of is that they doen't run Java on their servers because it causes them way too much trouble. All I see is Javascript in the resource folder and they have no issue with that.
    I'm on a Mac and as far as I know I'm running the lastest Java on my Mac as I updated it a few weeks ago. This is why I was wondering if I needed Java? Also I'm using Dreamweaver to upload the files to the server.

    workflow functions are also exposed via java api's. so you can have your web application in say iAS, weblogic, ibm websphere,... and display pages using the java api.
    the default workflow pages are generated using pl/sql api's. in this case you can get rid of pl/sql gateway.
    i myself have worked on implementations which developed the application using the java api's
    satish paul
    Thank you Fernando. I have been pointed out that there is a oracle plug-in for Microsoft IIS, enabling us to use it as the web server, Hence removing the need for Apache http server and the PL/SQL gateway.
    Many Thanks
    Nazeer Ahmad Syed.

  • Need java 8 for OS X for applications like PS5 to work

    need java 8 for OS X for applications like PS5 to work

    You need to go to Oracle's Java website.

  • Why we need Java Class in c++ pof Serialization

    Hi,
    I'm really confused why we need java class which implements PortableObject to support complex objects of c++. If we are not using any queries or entry processors in the application can't we keep the object as serialized byte format and can't we retrieve in from the c++ deserialization.
    Please share your thoughts if there's a way if we can skip any Java implementation.
    regards,
    Sura

    feel both are doing same work. Also can anyone tell me what is teh difference between Serilization and Exgternalization.If you need someone to tell you the difference, (a) how can you possibly 'feel both are doing the same work'? and (b) why don't you look it up in the Javadoc?
    It's not a secret.

  • Do I need Java 8 or should i disable it? What happens if i disable it? And what is the difference between Java and Java Runtime?

    Do I need Java 8 or should I disable it? What happens if i disable it? And what is the difference between Java and Java Runtime?

    There's no difference. They're both runtime plug-ins (they run when an app calls for Java functions).
    You only need Java if you either have Java apps on your Mac that won't run without having it installed, or you use trusted web sites that require Java to function (getting fewer and far between). Otherwise, you have no need for it at all.

  • HT5675 i need java 1.6 to get ,m,inecraft but it wont ever work please help?

    i need java 1.6 to get minecraft but it wont ever work someone please help me!

    Hello,
    What version of Mac OS X are you running on your iBook?
    Also check what version of java is currently installed by doing the following,
    Open Terminal, type in java -version then press Enter.  Then retrieve the current java version, in this example being 1.6.0_24

  • I need Java for my gradebook

    I just bought a MacBook Pro yesterday.  When I tried to open my gradebook it tells me that I need Java.  When I tried to download Java the site won't let me access the download.  Is there a way to activate Java so I can open my gradebook?

    When I tried to download Java the site won't let me ...
    This site?
    http://www.java.com/en/download/index.jsp

  • I need java for come into my bank?

    I need java for open my bank account, what i do to get it?

    Java is not supported on the iPad. Does your bank have its own app in the app store or a non-java version of its website ?

  • I need java firefox for my mobile samsung 7722

    i need java firefox for my mobile samsung 7722

    Sorry but Firefox is not available for your phone. Firefox mobile requires a phone that runs the Android operating system and a ARM CPU that supports the ARMv7 instruction set.

  • I need java code to flatten an image

    Hy! I need java code to flatten an image/sketch...someone can help me? Thanks to everybody!

    http://java.sun.com/developer/technicalArticles/Security/JCE/ ?

Maybe you are looking for

  • Teachers sharing one dot mac with iWeb need help- sites are being lost

    Sorry to be lengthy- Here's the question and issue first and then the background. Question/Issue: Anyone know a way we can have multiple people (eventually 20 or so) with their own computers creating sites in iWeb and publishing them to a common dot

  • Safari hangs and won't force quit

    I tried searching for this but the problem prevented that. After repairing my permissions yesterday, Safari won't let me do certain things like right-clicking an image or goto various sites or let my use tabbed browsing. I just get stuck with the spi

  • MultiProvider (How many objects can be attached?)

    OK - I believe in 3.0 - 3.5 you were only allowed only 13 Cubes/ODS/Info-Object to be attached to a multiprovier - Does the same hold true for 7.0??

  • VIP in Intermediate state after relocate

    11.2.0.2.0 windows 2008 2 node RAC Rolling patch. Brought down and relocated all services to node 2. All services start ok except for node 1 VIP which goes to intermediate and FAILED OVER state. C:\Windows\system32>crsctl status resource -t ora.rac01

  • EOF BOF error

    I am trying to edit DB records (Microsoft Access 2003) using a form created in Dreamweaver 8. I juse JavaScript since I use it a little on web pages, but don't know much - as opposed to VBscript where I really know nothing! I have a search page by ID