Re: Use of G Statistics equation for comparing sample distribution.



On Jun 18, 1:29 pm, crd...@xxxxxxxxx wrote:
I am working on a project which involves comparing two regions of an
image by means of a "G statistic"  The equation I am to use is as
follows:

E_(variable) denotes a Sigma (Summation) with variable as its
condition

ie:
-------
\
/
-------
variable

s,m are two histograms (256x8 2D histograms)
i is a bin number
f_i is the frequency at bin i

The equation, as defined in the paper I'm using, is:

G = 2*( [E_s,m E_i f_i log f_i] -[E_s,m (E_i f_i) log (E_i f_i)] -
[E_i (E_s,m f_i) log (E_s,m f_i) ] +
[(E_s,m E_i f_i) log (E_s,m E_i f_i) ]

I am trying to perform this comparison within a computer program but I
am unsure of the logical flow of it, mostly since there are 3
variables (s,m,i) but only one is explicitly shown to be used.  I am
not familiar with this complex of a problem so if anyone could help my
try and decipher this equation, I would be grateful.

Chris

Chris,
You are not getting answers because we can't understand what's going
on. I think you'll need to clarify the setup and the notations (and
perhaps answer your question along the way). It is not clear what the
indices s and m represent. What is a 2D histogram? Does it mean that
you have two binned variables, and you have a count for each pair of
bins? Does s run along one dimension and m along the other, or perhaps
i runs along the entire 2D space? And you have two of those?

Aniko
.



Relevant Pages

  • Re: Histogram Question
    ... "you can use a combination of HIST and BAR3 to first ... get bin counts and then plot side-by-side histograms" ...
    (comp.soft-sys.matlab)
  • Re: Excel 2008: Analysis Add-in?
    ... reboot to Windows and use Excel 2007 to create histograms all the time. ... The program displays a nice histogram and a bunch of related data like ... The program does save the binned data as CSV with bin ...
    (microsoft.public.mac.office.excel)
  • Re: Histogram Question
    ... "you can use a combination of HIST and BAR3 to first ... get bin counts and then plot side-by-side histograms" ... But you will find that while side-by-side histograms allow comparison of more than two series, they are typically very hard to read without interactively rotating them. ... If you want pairwise comparisons, use the back-to-back code in my previous post. ...
    (comp.soft-sys.matlab)
  • Can I change BIN values for a histogram from 0.05 incr to .01?
    ... I have completed a lot of histograms but ... know have to change the bin value increments from 0.05 to 0.01 is this ... Prev by Date: ...
    (microsoft.public.excel.charting)

Loading