Why Does My Snapchat AI Have a Story? Has Snapchat AI Been Hacked?

Image
Explore the curious case of Snapchat AI’s sudden story appearance. Delve into the possibilities of hacking and the true story behind the phenomenon. Curious about why your Snapchat AI suddenly has a story? Uncover the truth behind the phenomenon and put to rest concerns about whether Snapchat AI has been hacked. Explore the evolution of AI-generated stories, debunking hacking myths, and gain insights into how technology is reshaping social media experiences. Decoding the Mystery of Snapchat AI’s Unusual Story The Enigma Unveiled: Why Does My Snapchat AI Have a Story? Snapchat AI’s Evolutionary Journey Personalization through Data Analysis Exploring the Hacker Hypothesis: Did Snapchat AI Get Hacked? The Hacking Panic Unveiling the Truth Behind the Scenes: The Reality of AI-Generated Stories Algorithmic Advancements User Empowerment and Control FAQs Why did My AI post a Story? Did Snapchat AI get hacked? What should I do if I’m concerned about My AI? What is My AI...

Applications of Derivatives


Last Updated on July 16, 2023

The by-product defines the velocity at which one variable modifications with respect to a unique. 

It is an important thought that’s out there in terribly useful in numerous features: in frequently life, the by-product can inform you at which tempo you may be driving, or help you to foretell fluctuations on the stock market; in machine finding out, derivatives are very important for function optimization. 

This tutorial will uncover completely totally different features of derivatives, starting with the additional acquainted ones sooner than shifting to machine finding out. We shall be taking a extra in-depth check out what the derivatives inform us regarding the completely totally different capabilities we’re discovering out. 

In this tutorial, you may uncover completely totally different features of derivatives. 

After ending this tutorial, you may know:

  • The use of derivatives could possibly be utilized to real-life points that we uncover spherical us. 
  • The use of derivatives is essential in machine finding out, for function optimization. 

Let’s get started. 

 

Applications of Derivatives
Photo by Devon Janse van Rensburg, some rights reserved.

 

Tutorial Overview

This tutorial is break up into two components; they’re:

  • Applications of Derivatives in Real-Life
  • Applications of Derivatives in Optimization Algorithms

Applications of Derivatives in Real-Life

We have seen that derivatives model prices of change. 

Derivatives reply questions like “How fast?” “How steep?” and “How sensitive?” These are all questions on prices of change in a single sort or one different. 

– Page 141, Infinite Powers, 2023.

This cost of change is denoted by, 𝛿y / 𝛿x, due to this fact defining a change inside the dependent variable, 𝛿y, with respect to a change inside the unbiased variable, 𝛿x.

Let’s start off with one of many acquainted features of derivatives that we are going to uncover spherical us. 

Every time you get in your automotive, you witness differentiation. 

– Page 178, Calculus for Dummies, 2023.

When we’re saying {{that a}} automotive is shifting at 100 kilometers an hour, we might have merely stated its cost of change. The frequent time interval that we continuously use is tempo or velocity, although it may be most interesting that we first distinguish between the two.

In frequently life, we continuously use tempo and velocity interchangeably if we’re describing the velocity of change of a shifting object. However, this in not mathematically acceptable because of tempo is on a regular basis constructive, whereas velocity introduces a notion of path and, due to this fact, can exhibit every constructive and adversarial values. Hence, inside the ensuing rationalization, we are going to keep in mind velocity as a result of the additional technical thought, outlined as:

velocity = 𝛿y / 𝛿t

This implies that velocity presents the change inside the automotive’s place, 𝛿y, inside an interval of time, 𝛿t. In totally different phrases, velocity is the first by-product of place with respect to time. 

The automotive’s velocity can keep fastened, equivalent to if the automotive retains on travelling at 100 kilometers an hour persistently, or it might presumably moreover change as a function of time. In case of the latter, which implies that the velocity function itself is altering as a function of time, or in simpler phrases, the automotive could possibly be acknowledged to be accelerating. Acceleration is printed as the first by-product of velocity, v, and the second by-product of place, y, with respect to time:

acceleration = 𝛿v / 𝛿t = 𝛿2y / 𝛿t2

We can graph the place, velocity and acceleration curves to visualise them larger. Suppose that the automotive’s place, as a function of time, is given by y(t) = t3 – 8t2 + 40t:

Line Plot of the Car’s Position Against Time

 

The graph signifies that the automotive’s place modifications slowly at first of the journey, slowing down barely until spherical t = 2.7s, at which stage its cost of change picks up and continues rising until the tip of the journey. This is depicted by the graph of the automotive’s velocity:

Line Plot of the Car’s Velocity Against Time

 

Notice that the automotive retains a constructive velocity all by way of the journey, and it is as a result of it not at all modifications path. Hence, if we would have liked to consider ourselves sitting on this shifting automotive, the speedometer could be exhibiting us the values that we have got merely plotted on the velocity graph (as a result of the speed stays constructive all by way of, in every other case we should uncover completely the price of the velocity to work out the tempo). If we would have liked to use the power rule to y(t) to hunt out its by-product, then we might uncover that the velocity is printed by the following function:

v(t) = y’(t) = 3t2 – 16t + 40

We could plot the acceleration graph:

Line Plot of the Car’s Acceleration Against Time

 

We uncover that the graph is now characterised by adversarial acceleration inside the time interval, t = [0, 2.7) seconds. This is because acceleration is the derivative of velocity, and within this time interval the car’s velocity is decreasing. If we had to, again, apply the power rule to v(t) to find its derivative, then we would find that the acceleration is defined by the following function:

a(t) = v’(t) = 6t – 16

Putting all functions together, we have the following:

y(t) = t3 – 8t2 + 40t

v(t) = y’(t) = 3t2 – 16t + 40

a(t) = v’(t) = 6t – 16

If we substitute for t = 10s, we can use these three functions to find that by the end of the journey, the car has travelled 600m, its velocity is 180 m/s, and it is accelerating at 44 m/s2. We can verify that all of these values tally with the graphs that we have just plotted. 

We have framed this particular example within the context of finding a car’s velocity and acceleration. But there is a plethora of real-life phenomena that change with time (or variables other than time), which can be studied by applying the concept of derivatives as we have just done for this particular example. To name a few:

  • Growth rate of a population (be it a collection of humans, or a colony of bacteria) over time, which can be used to predict changes in population size in the near future. 
  • Changes in temperature as a function of location, which can be used for weather forecasting. 
  • Fluctuations of the stock market over time, which can be used to predict future stock market behaviour. 

Derivatives also provide salient information in solving optimization problems, as we shall be seeing next. 

Applications of Derivatives in Optimization Algorithms

We had already seen that an optimization algorithm, such as gradient descent, seeks to reach the global minimum of an error (or cost) function by applying the use of derivatives. 

Let’s take a closer look at what the derivatives tell us about the error function, by going through the same exercise as we have done for the car example. 

For this purpose, let’s consider the following one-dimensional test function for function optimization:

f(x) = –x sin(x)

We can apply the product rule to f(x) to find its first derivative, denoted by f’(x), and then again apply the product rule to f’(x) to find the second derivative, denoted by f’’(x):

f’(x) = -sin(x) – x cos(x)

f’’(x) = x sin(x) – 2 cos(x)

We can plot these three functions for different values of x to visualize them:

Line Plot of Function, f(x), its first derivative, f‘(x), and its second derivative, f”(x)

 

Similar to what we have observed earlier for the car example, the graph of the first derivative indicates how f(x) is changing and by how much. For example, a positive derivative indicates that f(x) is an increasing function, whereas a negative derivative tells us that f(x) is now decreasing. Hence, if in its search for a function minimum, the optimization algorithm performs small changes to the input based on its learning rate, ε:

x_new = x – ε  f’(x)

Then the algorithm can reduce f(x) by moving to the opposite direction (by inverting the sign) of the derivative. 

We might also be interested in finding the second derivative of a function.

We can think of the second derivative as measuring curvature. 

– Page 86, Deep Learning, 2023.

For example, if the algorithm arrives at a critical point at which the first derivative is zero, it cannot distinguish between this point being a local maximum, a local minimum, a saddle point or a flat region based on f’(x) alone. However, when the second derivative intervenes, the algorithm can tell that the critical point in question is a local minimum if the second derivative is greater than zero. For a local maximum, the second derivative is smaller than zero. Hence, the second derivative can inform the optimization algorithm on which direction to move. Unfortunately, this test remains inconclusive for saddle points and flat regions, for which the second derivative is zero in both cases. 

Optimization algorithms based on gradient descent do not make use of second order derivatives and are, therefore, known as first-order optimization algorithms. Optimization algorithms, such as Newton’s method, that exploit the use of second derivatives, are otherwise called second-order optimization algorithms. 

Further Reading

This section provides more resources on the topic if you are looking to go deeper.

Books

Summary

In this tutorial, you discovered different applications of derivatives. 

Specifically, you learned:

  • The use of derivatives can be applied to real-life problems that we find around us. 
  • The use of derivatives is essential in machine learning, for function optimization. 

Do you have any questions?
Ask your questions in the comments below and I will do my best to answer.

Get a Handle on Calculus for Machine Learning!

Calculus For Machine Learning

Feel Smarter with Calculus Concepts

…by getting a better sense on the calculus symbols and terms

Discover how in my new Ebook:
Calculus for Machine Learning

It provides self-study tutorials with full working code on:
differntiation, gradient, Lagrangian mutiplier approach, Jacobian matrix,
and much more…

Bring Just Enough Calculus Knowledge to
Your Machine Learning Projects

See What’s Inside





Comments

Popular posts from this blog

7 Things to Consider Before Buying Auto Insurance

TransformX by Scale AI is Oct 19-21: Register with out spending a dime!

Why Does My Snapchat AI Have a Story? Has Snapchat AI Been Hacked?