Application: Modeling User Growth Pt. 2 -- Concavity

Nice! I've copied your model below. This type of model is known as a [b]Logistic Model[/b], and it is useful for modeling data sets that initially grow exponentially, but then later exhibit growth which "tapers off." Based on our data set, it looks like maybe the growth of user headcount is "tapering off" around day 750. [br][br]Usually logistic models are used by biologists to model the population growth of organisms such as bacteria or bunnies in finite resource environments. In our case though we're modeling Instagram users, and the competition for resources is likely the limited number of people willing to try new apps in their early years.[br][br]Our model might look complicated in the applet below, but the format for logistic functions is always the same: [math]\frac{N}{1+c\cdot e^{-k\cdot x}}[/math] where [code]N[/code], [code]c[/code] and [code]k[/code] are all numbers. The most important number in the logistic model is [code]N[/code], called the [b]Carrying Capacity[/b] of the model. We'll discuss [code]N[/code] in more detail below. For now though, let's see if the model has any critical points. Calculate the derivative of g with the snippet [code]derivative(g)[/code] (this might take a while since Geogebra has to do a bit more work than usual), and then find where [code]g'[/code] is equal to 0 by intersecting [code]g'[/code] with the x-axis with the snippet [code]intersect(g',y=0)[/code].
Uh oh! When you ran [code]intersect[/code], you probably got a point that was [code]undefined[/code]. That's fine! That just means that Geogebra couldn't find any critical points. [br][br]Even though you might be uncomfortable with this fact, this makes perfect sense. Take a look below, and move [code]A[/code] along [code]g[/code]. Notice that as you slide [code]A[/code] along [code]g[/code], the tangent line never gets perfectly flat. In other words the slope of the tangent line never becomes 0. It gets close as you move right (or left), but the slope of the tangent line never actually becomes 0, and so therefore the derivative never becomes 0. Thus this model has no critical points. This isn't a quirk about this particular logistic model: [i]all logistic models have no critical points[/i]. As a result this logistic model (and in fact every other logistic model) has no maximums or minimums.
Wild! Since this logistic function has no maximum, the model [i]only increases[/i] as time goes on. On the other hand however, it absolutely appears as though the model does seem to approach some value as x becomes large.[br][br]In the applet below I've switched A to show you it's numerical values. Move the point to the right and pay attention to the y-coordinate. Any guesses what the y-coordinate is approaching?
That's right, the y-coordinate is approaching the Carrying Capacity, [code]N[/code], of the logistic model, [code]g[/code]. We can actually write this pretty nicely using the concept of a limit from [url=https://www.geogebra.org/m/x39ys4d7#material/zuaq7sgb]earlier[/url]:[br][br][math]\lim_{x\longrightarrow\infty}g\left(x\right)=\text{91465629.86257}[/math][br][br]The interpretation of this number is that the model is predicting that, based on the 7 data points it was given, the number of users will grow towards but never quite achieve 91465629.86257. Of course this is only a model, and it's only as good as the data it was given, and only as good as the (possibly incorrect) assumption that the data is adhering to logistic behavior. [br][br]Regardless, this is a very interesting insight we were able to glean from our model! The model is predicting that the number of Instagram users will grow towards but never quite achieve 91.5 million. Interestingly, it turns out this prediction is flat-out wrong! As of late 2018, Instagram has almost 1 billion users; the slowdown observed about day 750 was just a blip, and growth has continued more or less exponentially. Thus, either the assumption of using a logistic regression model must have been incorrect, or additional data is needed. We'll discuss this sort of stuff later in the chapter on Miscellany.[br][br]Before we move on however, there's one last thing that's interesting to study about our logistic model. You might have noticed that the growth rate switches from growing more and more quickly to growing but growing less quickly somewhere around day 500. You can visually see this in the shape of the graph: before about day 500 the graph is curling upwards more steeply, but after about day 500 the graph is growing but getting less steep. [br][br]The point where the growth of a function changes from getting more steep to less steep is called an [b]inflection point[/b]. When the growth rate of a function is increasing, the function is said to be [b]concave up[/b] because if you look at its graph, it makes a concave curve pointed up. When the growth rate of a function is decreasing (as in the right half of our logistic model) the function is said to be [b]concave down[/b].[br][br]Concavity is determined by the sign of the second derivative (here the word "sign" means whether a function is positive or negative. Specifically:[br][br][list][*]If a function f is concave up, then the second derivative is positive[/*][*]If a function f is concave down, then the second derivative is negative[/*][/list][br]This also works in reverse:[br][br][list][*]If the second derivative of a function f is positive, then the function f is concave up[/*][*]If the second derivative of a function f is negative, then the function f is concave down[/*][/list][br]We can see this in the following applet which shows a function f, its derivative f' (light gray and dashed) and its second derivative f'' (darker gray). On the left the function is concave down, and so the second derivative is negative. On the right, the function is concave up, and so the second derivative is positive.
One last note. The spot marked with an "X" has a special name. It's called an inflection point of the function f, and it's a point where the function f switches concavity. To identify an inflection point you must ensure that both:[br][br][list][*]The second derivative is 0, and[/*][*]The second derivative changes sign, either from positive to negative, or vice versa.[/*][/list][br]Move onwards to begin studying the final topic of derivatives before we move on to the [b]the integral[/b] in the next chapter.

Information: Application: Modeling User Growth Pt. 2 -- Concavity