Stock Market Analysis

Introduction to Stock Market Analysis
Through Least Squares Fitting


  1. Click on Digitize.html and save it to a local directory (for example in C:\Java\StockMarket\ or /user/me/java/stocks/) on your hard disk (use the File->Save As Netscape menu option),
  2. Also download Digitize.class and BlankCanvas.class and place them on your local machine If your computer wants to save them as Digitize.exe and BlankCanvas.exe, rename them to Digitize.class and BlankCanvas.class!
  3. Next, get a 12 month stock performance graph from here
  4. Then save it as a gif file in your local sub-directory.
    Note: you must save it into the same directory, or the applet will not be able to read it.
    Also, make sure it is readable, ie "chmod 644" it...
  5. Analyze the image by opening Digitize.html on your local directory
  6. for the URL: field, use the same URL as in the Location: field, but replace Digitize.html with the name of your saved .gif file
  7. Now, "Cut and Paste" data ... (select all data or drag left mouse over data).
  8. And run least squares analysis on it here
  9. Now that you have your "best-fit" function, you can project future performance (and consequently earnings, etc.)
  10. If you are using X-Windows, You can grab the picture using the program "xv", with grab button. If you are running on a PC, you must use another screen capture utility.
  11. the Popup button will not work if you are running a local digitizing applet