Saturday, November 20, 2021

Differentiate Between Linear and Nonlinear Equations


Linear Equations

Non-Linear Equations

A Linear equation can be defined as the equation having the maximum only one degree.

A Nonlinear equation can be defined as the equation having the maximum degree 2 or more than 2.

A linear equation forms a straight line on the graph.

A nonlinear equation forms a curve on the graph.

The general form of linear equation is,

y = mx +c

Where x and y are the variables, m is the slope of the line and c is a constant value.

The general form of nonlinear equations is,

ax2 + by2 = c

Where x and y are the variables and a,b and c are the constant values

Examples:


  • 3x + 2 = 5

  • 4x + 5 = 1

Examples:


  • 2x2+ 3y2 = 7

  • a2 + 2ab + b2 = 0

Convolutional Neural Networks (CNNs)

Convolutional Neural Networks (CNNs) are neural networks that automatically extract useful features (without manual hand-tuning) from data-points like images to solve some given task like image classification or object detection. 




Friday, November 19, 2021

Change in Entropy

Here the entropy of the system has reached its maximum value, so that there is no more change in entropy.



Monday, November 15, 2021

The Central Limit Theorem


 

Binomial Distribution

 The binomial distribution is a discrete probability distribution. It describes the outcome of independent trials in an experiment. Each trial is assumed to have only two outcomes, either success or failure. If the probability of a successful trial is p, then the probability of having successful outcomes in an experiment of n independent trials is as follows.

      (    )
        n    x      (nāˆ’ x)
f(x) =  x   p (1āˆ’ p)      where x = 0,1,2,...,n

Problem

Suppose there are twelve multiple choice questions in an English class quiz. Each question has five possible answers, and only one of them is correct. Find the probability of having four or less correct answers if a student attempts to answer every question at random.

Solution

Since only one out of five possible answers is correct, the probability of answering a question correctly by random is 1/5=0.2. We can find the probability of having exactly 4 correct answers by random attempts as follows.

> dbinom(4, size=12, prob=0.2) 
[1] 0.1329

To find the probability of having four or less correct answers by random attempts, we apply the function dbinom with = 0,,4.

> dbinom(0, size=12, prob=0.2) + 
+ dbinom(1, size=12, prob=0.2) + 
+ dbinom(2, size=12, prob=0.2) + 
+ dbinom(3, size=12, prob=0.2) + 
+ dbinom(4, size=12, prob=0.2) 
[1] 0.9274

Alternatively, we can use the cumulative probability function for binomial distribution pbinom.

> pbinom(4, size=12, prob=0.2) 
[1] 0.92744

Answer

The probability of four or less questions answered correctly by random in a twelve question multiple choice quiz is 92.7%.

Sunday, October 31, 2021

The Singular Value Decomposition without Algebra

 It is an unfortunate reality that many people try to learn linear algebra with algebra when what’s going on is essentially a geometric matter (that means you can understand it with pictures). I previously described this point of view in Understanding Regression with Geometry and here I’m going to attempt something similar with the Singular Value Decomposition.

A Vector is not a List of Numbers

A Vector is a Vector is a Vector

A Vector Lives in a Vector Space

A Matrix is not an Array of Numbers

A Matrix is a (Linear) Map between Vector Spaces

A Linear Map Satisfies Three Properties

What Linear Maps Do

Things a Linear Map Can Do.

The Singular Value Decomposition

Viewed Correctly, “Smushing” is a scaling of a single vector

Official Statement

A non-square diagonal matrix with 1, 2.3, -7, and 0 on the diagonal

Partial Proof Sketch

The Spectral Theorem

The Matrix Transpose

The Transpose Flips a Matrix and Puts it on its side

Getting the Singular Values

Following a map by its transpose results in a map from the source back to itself

Conclusion

References / Further Reading

DIKW Pyramid (updated)


 

DIKW Pyramid


 

Friday, October 29, 2021

Data Science Overview

Data is undoubtedly the most valuable asset of our society. It captures our entire understanding of mankind, space, nature, and learnings from all our existence. In modern days, we have developed tools and methods to understand that data for path-breaking discoveries in medicine, space, machine, and so on. Now, in the 21st century, we are ready to use the technology and data to catapult mankind into the data age. It is not an exaggeration in any sense, just compare how our life is different from our grandparents’ life, and you would see how technology and data have changed the way we live and work.

"In ancient times land was the most important asset in the world. In the modern era, machines and factories became more important than land. In the twenty-first century, however, data will eclipse both land and machinery as the most important asset."

- Yuval Noah Harari