DA Unit 3
DA Unit 3
A stock market is a public market where you can buy and sell shares for publicly listed
companies. The stocks, also known as equities, represent ownership in the company. The
stock exchange is the mediator that allows the buying and selling of shares.
It is a widely used source for people to invest money in companies with high
growth potential.
Stock Price Prediction using machine learning helps you discover the future value of
company stock and other financial assets traded on an exchange. The entire idea of predicting
stock prices is to gain significant profits. Predicting how the stock market will perform is a
hard task to do. There are other factors involved in the prediction, such as physical and
psychological factors, rational and irrational behaviour, and so on. All these factors combine
to make share prices dynamic and volatile. This makes it very difficult to predict stock prices
with high accuracy.
FLAJOLET-MARTIN
ALGORITHM(counting distinct
elements in a stram):
The Flajolet-Martin algorithm is also known as
probabilistic algorithm which is manly used to count the
number of unique elements in a stream or database.
Example:
S= 1, 3, 2, 1, 2, 3, 4, 3, 1, 2, 3, 1
H(x)= (6x+1)mod 5
Assume b=5
R = max( r(a) ) = 2
So no. of distinct elements = N=2^2=4
ESTIMATING MOMENTS:
Estimating moments is a generalization of the problem of
counting distinct elements in a stream. The problem, called
computing "moments," involves the distribution of
frequencies of different elements in the stream.