Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Stochastic Queries

Re: Stochastic Queries

From: -CELKO- <jcelko212_at_earthlink.net>
Date: Mon, 10 Sep 2007 09:45:25 -0700
Message-ID: <1189442725.366310.268150@g4g2000hsf.googlegroups.com>


>> As a part of some experimental work I've been doing, I need to write what I think is best described as a stochastic quota query. <<

You can write some proprietary kludges, but frankly they have problems with skewed distributions. Better to stick to a stats package to draw your samples (with or without replacements? Tiered? etc.?) There was a good book years ago with a title somethign like a SAMPLER OF SAMPLING that went into the details.

One trick I have used is to build a table:

CREATE TABLE Samples
(seq_nbr INTEGER NOT NULL PRIMARY KEY,
 random_nbr INTEGER NOT NULL); -- or whatever data type you need

then load it with the particular random numbers I wanrted from a stat package. More work, but MUCH better results. Received on Mon Sep 10 2007 - 11:45:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US