I have an extremely large data set, but I'll simplify it down as, although I think I should use a chi squared test, I've run into difficulties applying it:
Let's say I have a list of 20 different 'foos'.The number of 'foos' that bind 'bars' has a normal frequency distribution. Some 'Foos' bind to various 'bars'. Let'say I have 500 'bars' Some 'foos' come from within 'bars', but some do not.
How would I go about to testing whether 'foos' preferentially bind to 'bars' that they reside in?
##### EDIT|---------------------------------| <= chromosome
|----------* ** **-----------------| <= miRNA (foo) within chromosome (no gene)
|------0000000000-------------| <= gene (bar) within chromosome (no miRNA within it)
|-----------0000** ***0000--------| <= miRNA within a gene within a chromosome
I'm looking at miRNA gene target bindings. When the miRNA's are translated, they usually target various genes (or more specifically their protein products). I have the gene targets of each miRNA, determined using an algorithm called 'miranda'. I want to see whether the miRNA that is synthesised from inside a gene preferentially binds that gene across all thousands of miRNA and their different gene targets (as some of them will bind to the gene from which they arise by chance).
Initially I thought about taking the observed probability that a 'foo' within a 'bar' binds that 'bar' and subtracting that from the probability that a 'foo' would bind a 'bar'. Is this correct? It seems that I'm not really using that much data...
Is this the right way to go?