The entry claims that Jurafsky and Martin use the term "additive smoothing", but they actually use the term "add-one smoothing" (as do Russell/Norvig). It would
| This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
| The content of Pseudocount was merged into Additive smoothing on 5 April 2017. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. For the discussion at that location, see its talk page. |
The entry claims that Jurafsky and Martin use the term "additive smoothing", but they actually use the term "add-one smoothing" (as do Russell/Norvig). It would be worth seeing which term Manning/Schütze actually use, but I would have to get the book out of the library to find out. -AlanUS (talk) 18:22, 9 October 2011 (UTC)
Same concept. QVVERTYVS (hm?) 15:31, 8 May 2014 (UTC)
We should merge Bayesian_average with this page. The methods are the same, and only the interpretations differ. Bscan (talk) 16:26, 20 July 2018 (UTC)
The issues with this method, as outlined in Ken Church's paper "What's wrong with adding one" should be discussed here: https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.134.2237 - Francis Tyers · 04:47, 14 February 2020 (UTC)
This article is all jargon and insider baseball, without one explicit statement of the obvious and important point that 0/5 is different strength of evidence than 0/500, which add one smoothing is supposed to help address. 2601:647:CD02:88A0:5560:1900:364C:CFB2 (talk) 03:01, 9 October 2023 (UTC)
Conventional additive smoothing adds (Laplace) or (Jeffreys). Both are "non-informative" priors. We can improve on these by applying rudimentary empirical-Bayes to estimate a symmetric Dirichlet prior by applying the Good-Turing insight that the singleton count () and empty bin count () are the most valuable pieces of information for estimating the unseen mass in empty bins, as demonstrated by Gale & Sampson (1995). We can use this insight about singletons to empirically determine the best parameter for the prior, as shown below.
where:
= tunable pseudocount. Jeffreys assumed 0.5
= number of bins containing count , e.g. is number of empty bins; number of singleton bins.
= total number of bins
= count in bin
= sum of all observed counts in all bins
We want to tune the value of such that the two equations above, are equal for empty bins:
, where in empty bins
, because
Edge cases:
Pseudocode showing how to implement this:
Const B_t = 1000 as Long '1000 bins
Dim N as Long, B_0 as Long, B_1 as Long 'long integers
Dim a as Double 'double precision pseudocount
Dim denom as Double 'denominator
Dim c(1 to B_t) as Long 'input discrete count histogram from Monte Carlo simulation.
Dim p(1 to B_t) as Double 'output smoothed probability
'... insert code here to to precalculate c() with values from MC-simulation, then count N, B_0 and B_1 ...
If B_0 = 0 Then
a = 0 'Edge case: no unseen mass, so no need to add pseudocount
Elseif B_1 = 0 Then
a = 1E-15 'Edge case: Should strictly use SGT or Minka's estimation instead!
Else
denom = B_0 * N - B_1 * B_t
If denom <= 0 then
a = 1 'Edge case: Distribution close to uniform.
Else
a = B_1 * N / denom 'additive pseudocount (empirical prior value)
If 1 < a Then a = 1 'Edge case: Limit to max 1, to prevent overzealous smoothing (without more information).
Endif
Endif
For i = 1 To B_t 'loop though all bins
p(i) = (c(i) + a) / (N + B_t * a) 'Pseudocount smoothing, ensures all empty bins have non-zero probability
Next i
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.