<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://machinelearning.subwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AIssaRice%2FConvex_function</id>
	<title>User:IssaRice/Convex function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://machinelearning.subwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AIssaRice%2FConvex_function"/>
	<link rel="alternate" type="text/html" href="https://machinelearning.subwiki.org/w/index.php?title=User:IssaRice/Convex_function&amp;action=history"/>
	<updated>2026-09-15T12:39:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.2</generator>
	<entry>
		<id>https://machinelearning.subwiki.org/w/index.php?title=User:IssaRice/Convex_function&amp;diff=2687&amp;oldid=prev</id>
		<title>IssaRice: Created page with &quot;a function &lt;math&gt;f : \mathbf R \to \mathbf R&lt;/math&gt; is often defined to be convex if &lt;math&gt;f(tx + (1-t)y) \leq tf(x) + (1-t)f(y)&lt;/math&gt; for all &lt;math&gt;x,y \in \mathbf R&lt;/math&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://machinelearning.subwiki.org/w/index.php?title=User:IssaRice/Convex_function&amp;diff=2687&amp;oldid=prev"/>
		<updated>2020-01-14T00:05:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;a function &amp;lt;math&amp;gt;f : \mathbf R \to \mathbf R&amp;lt;/math&amp;gt; is often defined to be convex if &amp;lt;math&amp;gt;f(tx + (1-t)y) \leq tf(x) + (1-t)f(y)&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x,y \in \mathbf R&amp;lt;/math&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;a function &amp;lt;math&amp;gt;f : \mathbf R \to \mathbf R&amp;lt;/math&amp;gt; is often defined to be convex if &amp;lt;math&amp;gt;f(tx + (1-t)y) \leq tf(x) + (1-t)f(y)&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x,y \in \mathbf R&amp;lt;/math&amp;gt; and all &amp;lt;math&amp;gt;t \in [0,1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
two ways to think about this:&lt;br /&gt;
&lt;br /&gt;
* if you want to use the idea that the set of [[wikipedia:convex combination]]s of two points is the line segment between them: take the points (x, f(x)) and (y, f(y)). then each convex combination has the form &amp;lt;math&amp;gt;(tx + (1-t)y, tf(x) + (1-t)f(y))&amp;lt;/math&amp;gt; where t is between 0 and 1. so now we are saying that if we fix some x value tx + (1-t)y along this line segment, then the y value of the y segment, tf(x) + (1-t)f(y), is at least the y value of the function, f(tx + (1-t)y). in other words, the line segment between any two points lies above the function.&lt;br /&gt;
* if you want to reason just from middle-school algebra: the line between (x, f(x)) and (y, f(y)) is given by &amp;lt;math&amp;gt;l(z) = f(x) + \frac{f(y)-f(x)}{y-x}(z-x)&amp;lt;/math&amp;gt;. rewrite this as &amp;lt;math&amp;gt;l(z) = f(x) + (f(y)-f(x))\frac{z-x}{y-x}&amp;lt;/math&amp;gt;. if we consider just the line segment between the points, then &amp;lt;math&amp;gt;z \in [x,y]&amp;lt;/math&amp;gt;. thus &amp;lt;math&amp;gt;\frac{z-x}{y-x} \in [0, 1]&amp;lt;/math&amp;gt;. so if we make the substitution &amp;lt;math&amp;gt;t = \frac{z-x}{y-x}&amp;lt;/math&amp;gt; we get &amp;lt;math&amp;gt;f(x) + (f(y)-f(x))t = (1-t)f(x) + tf(y)&amp;lt;/math&amp;gt;. now you could say x and y are symmetric here, we could swap them around to get the thing in the definition of convex function, or you could substitute again, say s=1-t, to get it in the right form.&lt;br /&gt;
:t measures what fraction of the distance from x to y we have traversed (just inspect its definition). the x-value for a given value of t is (just solve for z): &amp;lt;math&amp;gt;z = x + (y-x)t = (1-t)x + ty&amp;lt;/math&amp;gt;. the y-value of the line segment at this point is (1-t)f(x) + tf(y) as we saw above. thus we are saying that the function value at this x-value, f((1-t)x + ty), is below the line segment&amp;#039;s y-value, (1-t)f(x) + tf(y).&lt;/div&gt;</summary>
		<author><name>IssaRice</name></author>
	</entry>
</feed>