Jump to content

Talk:Gibbs' inequality

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

The proof on this page seems to state that . However, I was defined so that whenever , so making this change in the indices for the sum introduces indeterminate terms of the form .

Changing the indices for the sum may introduce similar indeterminate forms on the left hand side of that inequality, as well.

How can this proof be corrected?

The notation used on this page is lazy. The implicit understanding is that a new function is defined as:
but the author (me - reetep) didn't bother to specify this explicitly. My apologies - it's the sort of thing you do without thinking after having completed a mathematics degree; you become accustomed to writing mathematics for people with a similar background in maths and more often than not you find yourself demonstrating how something might be proved without actually doing it (because you have neglected to complete all of the technical details).

If you refer to the definition of mathematical entropy you should find there that a similar definition has been made for the log function. This is essentially what Gibbs' inequality is about and we are talking about the same function in this article.

Special case

[edit]

Consider a two-state distribution with probabilities and alternative probabilities . This is allowed.

The inequality will then look like this . This results in , which is wrong.

What constrains did I not obey?

134.100.209.149 (talk) 16:01, 3 January 2008 (UTC)[reply]

The page currently states that the pi and qi are positive numbers, so that constraint was violated (may not have been there when you wrote the comment). I think since log 0 is not defined but approaches (while log 1 = 0), you end up with . RVS (talk) 02:56, 23 December 2008 (UTC)[reply]

Question about format

[edit]

I'm familiar with the traditional way to write entropies in Shannon-Jaynes format, which may a good reason to not fiddle, but a minus sign multiplying the side of an inequality sets off flags in my brain about the danger of reversals if anything gets multiplied by anything. Of course this danger doesn't exist if everything is positive, which at least in the first statement of the inequality could be the case. I've added a comment to that effect which I think solves the problem, but am wondering this: Are there any objections to also writing for example -Σpiln[qi] as Σpiln[1/qi] where it might keep the question from coming up? Thermochap (talk) 19:27, 21 February 2008 (UTC)[reply]

, so pi, qi are positive numbers, and log pi, log qi are negative numbers, so the full negated expressions are positive numbers. I think you're right that it's best to leave them in what you call the Shannon-Jaynes format, . RVS (talk) 05:41, 23 December 2008 (UTC)[reply]

Notation error?

[edit]

I believe the line should read (interchanging P and Q) to be correct and consistent with the Kullback–Leibler divergence page as well as other reference works. I also think it would be better to rewrite the equation as to be simpler and more consistent with that page. I will make these changes unless someone disagrees. RVS (talk) 02:21, 23 December 2008 (UTC)[reply]

Changed. RVS (talk) 17:39, 23 December 2008 (UTC)[reply]

Proof of separation

[edit]

The paragraph that starts with "For equality to hold, we require:" does not seem to prove anything, because if point 1 is true, then . — Preceding unsigned comment added by Mdouze (talkcontribs) 21:52, 28 September 2011 (UTC)[reply]

s's

[edit]

I note that the article has been moved from the usual spelling Gibbs' inequality. I agree that usage varies, but the spelling with s's seems to be the least common. I recommend that the move (and the spelling) be reversed, or, if, it would avoid an edit war, moved to a spelling without an apostrophe. What does anyone else think? Dbfirs 11:21, 21 December 2017 (UTC)[reply]

@Dbfirs: I have moved the article back to Gibbs' inequality. Both of the sources in the article write this without an extra "s" after the apostrophe. GeoffreyT2000 (talk) 01:22, 22 December 2017 (UTC)[reply]
Thank you. I didn't want to revert without consensus. I think cherkash probably pronounces it "Gibbsez", hence the preference for s's, but following the references seems to be good Wikipedia policy per WP:Common name. Dbfirs 08:25, 22 December 2017 (UTC)[reply]

Dbfirs, GeoffreyT2000: In this case it boils down to the grammatical function of the noun "Gibbs": if it's an attributive-noun use then it's "Gibbs inequality", but if it's possessive then it's "Gibbs's inequality". Compare for example with "This house is Gibbs's" (whether you spell Gibbs' or Gibbs's is no matter for now – just consider the grammatical function): would you pronounce as "Gibbs" or "Gibbsez" in this case? The answer should tell you something about the grammatical form you implicitly use when you say either "Gibbs inequality" or "Gibbsez inequality". Once we establish the grammatical form used, we can debate the spelling. cherkash (talk) 01:39, 4 January 2018 (UTC)[reply]

I appreciate your point about grammatical function, except that you seem to reject a common third alternative ("s" apostrophe) for the possessive, but that doesn't come into the argument here because Wikipedia policy is to follow WP:Common name, so we just have to look at the best references. Dbfirs 09:53, 4 January 2018 (UTC)[reply]
"Common name" policy doesn't really deal with spelling (or misspelling), but rather with "let's call the thing what it's usually called" (notice, not "how it's usually written" – and that's an important distinction). Once the common name is established, we are dealing with the nuances of spelling, esp. when there are different styles that may be acceptable among various sources consulted – and these nuances of spelling are in this case governed by the Wiki's MOS. Which part of the MOS is relevant depends on the grammar's nuances of the name: if it's an attributive-noun use, there's nothing to debate, but if it's a possessive, then the rules/recommendations about singular possessives are relevant. To make my point even clearer: it doesn't matter if the majority of sources spells the possessive in a particular way – once we established it's indeed a possessive that we want to use, then the MOS kicks in and determines the spelling. cherkash (talk) 22:24, 4 January 2018 (UTC)[reply]
You are applying a "rule" that no-one else recognises. Dbfirs 22:29, 4 January 2018 (UTC)[reply]
Generalizations like this are rarely useful, and they don't lend you any credibility. cherkash (talk) 22:58, 4 January 2018 (UTC)[reply]
There is no misspelling according to the spelling rules that I was taught. It seems that you were taught differently. Dbfirs 23:21, 4 January 2018 (UTC)[reply]
That's correct: I was taught differently. And most respectable real-world MoS's (with exception being mostly some modern periodicals and news agencies) agree with the way I was taught. The comparative analysis among MoS's has been presented many times in different discussions here, I can look around and dig up the links if you are truly curious. cherkash (talk) 02:13, 5 January 2018 (UTC)[reply]
No need to dig up the links again; I can see that usage varies. We all tend to believe that what we were taught at primary school is the only truth, so we are never going to agree. In the absence of a world standard, should we not follow our own Wikipedia:Manual of Style#Possessives and WP:Common name? Dbfirs 09:51, 5 January 2018 (UTC)[reply]
Yes, following MOS:POSS is what I was advocating. It links the Wiki article that deals with these choices – which contains two sections that clearly state that the " s's " form is usually preferred to the " s' ". (See this section and this section.) cherkash (talk) 00:55, 13 January 2018 (UTC)[reply]

Proof using Lagrange multipliers

[edit]

Should we add this proof?

We will find the minimum of over all possible values for {q1, ..., qn} subject to the restriction using a Lagrange multiplier for the restriction. We will show that the minimum is at qi = pi for all i thus proving Gibb's inequality. That is, we want to minimize with respect to q1, ..., qn and λ. For any j, which tells us that qj = pj / λ. That the qj values sum to 1 then gives that λ = 1 and thus qj = pj. A quick check shows that the matrix of second derivatives is diagonal and all its diagonal entries are positive, so the extremum we have found is necessarily a minimum:

Quantling (talk | contribs) 14:34, 28 June 2024 (UTC)[reply]