<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Some stuff &#187; PDF</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=pdf" rel="self" type="application/rss+xml" />
	<link>https://blog.yhuang.org</link>
	<description>here.</description>
	<lastBuildDate>Wed, 27 Aug 2025 08:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>pkfix for those ugly postscript files</title>
		<link>https://blog.yhuang.org/?p=1020</link>
		<comments>https://blog.yhuang.org/?p=1020#comments</comments>
		<pubDate>Fri, 15 Feb 2013 06:16:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bitmap fonts]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[postscript]]></category>
		<category><![CDATA[PS]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=1020</guid>
		<description><![CDATA[This tool, pkfix, is so useful, I cannot even breathe right now. Some old PostScript files generated through the LaTeX/DVI process use bitmap fonts, and when converted to PDF, their texts look ugly or fuzzy, and are unsearchable. People put these up without the source, and it appeared we were out of luck. Not so! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=pkfix">This tool, <em>pkfix</em></a>, is so useful, I cannot even breathe right now. Some old PostScript files generated through the LaTeX/DVI process use bitmap fonts, and when converted to PDF, their texts look ugly or fuzzy, and are unsearchable. People put these up without the source, and it appeared we were out of luck.</p>
<p>Not so! Using <em>pkfix</em>, the bitmap fonts are replaced in the PS file by their equivalent vector font counterparts on the system. Once that&#8217;s done, and the PS converted to PDF, the text looks sharp with that freshly typeset look. Search also works.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=1020</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uniform by three</title>
		<link>https://blog.yhuang.org/?p=137</link>
		<comments>https://blog.yhuang.org/?p=137#comments</comments>
		<pubDate>Sat, 22 Nov 2008 08:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conventional solution]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[frac]]></category>
		<category><![CDATA[independent random variables]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[ln x]]></category>
		<category><![CDATA[math math]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=137</guid>
		<description><![CDATA[Here is a problem recently described to me. Apparently there is a more elegant solution (which may give more insight), but I don&#8217;t see it yet. The problem: are independent random variables uniformly distributed over [0,1]. What is the distribution of ? The conventional solution is to find the distribution of first, then of . [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a problem recently described to me. Apparently there is a more elegant solution (which may give more insight), but I don&#8217;t see it yet.</p>
<p>The problem: \(X, Y, Z\) are independent random variables uniformly distributed over [0,1]. What is the distribution of \((XY)^Z\)?<br />
<span id="more-137"></span><br />
The conventional solution is to find the distribution of \(XY\) first, then of \((XY)^Z\).</p>
<p><img src="wp-content/uploads/images/xy.png" align="left"/><br />
The distribution of \(XY\) can be derived from its CDF \(F_{XY}(xy \le k)\), which is the total shaded area shown. The red curve is the function \(y=\frac{k}{x}\). This area is thus given by:</p>
<p>\(\int_k^1 \frac{k}{x} dx + k = k \ln(x) \vert_k^1 + k = -k \ln(k) + k\), for \(k>0\).</p>
<p>The PDF is the derivative of the above:</p>
<p>\(f_{XY}(k) = -\ln(k)\), for \(k>0\). The density is not well defined at \(k=0\).</p>
<p><img src="wp-content/uploads/images/xyz.png" align="left"/><br />
The second part is to find the distribution in question. Here, the red curve is the function \(z=\frac{\ln(k)}{\ln(xy)}\). The CDF \(F_{(XY)^Z}((xy)^z \le k)\) is the total area to the left of the red curve. A column slice shaded in blue has probability per unit of \(z\) as labeled. Thus, the CDF is:</p>
<p>\(\int_0^k f_{XY}(v) dv (1-\frac{\ln(k)}{\ln(v)}) = \int_0^k -\ln(v) dv (1-\frac{\ln(k)}{\ln(v)})\)<br />
\( = \int_0^k -\ln(v) dv + \int_0^k \ln(k) dv\)<br />
\( = -v \ln(v) + v \vert_{\downarrow 0}^k + k \ln(k) = -k \ln(k) + k + k \ln(k) = k\), for \(k>0\).</p>
<p>For \(k=0\), we can fill in 0, because the minimum value of \((XY)^Z\) is 0, so it is the minimum of the support of its CDF.</p>
<p>So amazingly, \((XY)^Z\) has the CDF of (and is) a uniform distribution. How does that happen? What&#8217;s the intuition?</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=137</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Csiszar &amp; Korner</title>
		<link>https://blog.yhuang.org/?p=9</link>
		<comments>https://blog.yhuang.org/?p=9#comments</comments>
		<pubDate>Mon, 30 Oct 2006 18:37:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chip foundry]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[hungarian names]]></category>
		<category><![CDATA[janos korner]]></category>
		<category><![CDATA[kazoo books]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[nobody]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[press]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=9</guid>
		<description><![CDATA[Imre Csiszar and Janos Korner are two Hungarians with very Hungarian names. But more importantly, they wrote a thrilling page-turner called, Information Theory: Coding Theorems for Discrete Memoryless Systems. It is a book most difficult to obtain. It seems that the book has been out of print ever since the day it was in print. Academiai Kiado [...]]]></description>
			<content:encoded><![CDATA[<p>Imre Csiszar and Janos Korner are two Hungarians with very Hungarian names. But more importantly, they wrote a thrilling page-turner called, <strong>Information Theory: Coding Theorems for Discrete Memoryless Systems</strong>. It is a book most difficult to obtain. It seems that the book has been <em>out </em>of print ever since the day it was <em>in</em> print. Academiai Kiado of Budapest and Academic Press of New York (same thing?), I&#8217;m looking in your general direction(s). Hmm. I wonder if the cost structure of running a printing press is akin to that of running a chip foundry?</p>
<p><img src="wp-content/uploads/images/9630574403.01._AA240_SCLZZZZZZZ_.gif" alt="http://ec1.images-amazon.com/images/P/9630574403.01._AA240_SCLZZZZZZZ_.gif" align="right"/></p>
<p>Anyway, forget the publishers. There is one copy in the library, permanently checked out, on hold, or requested. Almost never seen in online stores, it sells for several times the list price when scalper123 occasionally trots it out on YahooMazonBay. Worst of all, nobody has bothered to make and distribute a pdf of it for the good of the masses. Er, wait, I mean, nobody has bothered to make a Fair Use copy for <em>personal</em> use.</p>
<p>And accidentally leave the pdf on an unprotected public server. (Please?)</p>
<p>Well, that was last week, and this is now. I am to this day amazed that <a href="http://www.kazoobooks.com/">Kazoo Books</a> still had one (1) old, used, but perfectly good copy <em>at list price</em>. I wrote &#8220;had.&#8221; Good service and fast delivery, too. No fraud committed against me despite there being a phone transaction with a credit card. Highly recommend. Wait, this isn&#8217;t eBay, why am I writing this?</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
