Reinforcement Learning
Reinforcement Learning
•Types of Data:
•Example Calculation: For the data [10, 20, 20, 30, 40], calculate the
mean (24), then find the standard deviation by applying the formula.
•Example:
•Standard deviation is commonly used in finance to measure the volatility
of stock prices
Variance
•Definition of Variance:
• Variance measures the average of the squared differences from
the mean.
•Relationship between Variance and Standard
Deviation:
• Variance is the square of the standard deviation.
•Use in Data Analysis:
• Example: Variance helps in understanding the spread of data
points in a dataset.
•Example Calculation:
• Formula:
• For the data [10, 20, 20, 30, 40], calculate the variance using
the mean and applying the formula.
Percentile
•Definition of Percentile:
•Example Calculation:
•Example: For the data [15, 20, 35, 40, 50], the 90th
percentile can be calculated to find the score below which
90% of the data lies.
Data Distribution
•Types of Data Distributions:
•Key Metrics:
•Support: Frequency of occurrence of an itemset.
•Example: The proportion of transactions that contain both bread and
butter.
•Confidence: The likelihood of finding the consequent in transactions that
contain the antecedent.
•Example: If a customer buys bread, how often do they also buy butter?
•Lift: How much more likely the consequent is to occur given the antecedent,
compared to it occurring independently.
•Apriori Algorithm:
•Used to generate association rules by identifying frequent itemsets.
Association Rule Example
Reinforcement Learning
Definition: Reinforcement Learning (RL) is a type of machine
learning where an agent learns to make decisions by interacting with
an environment and receiving rewards or penalties for its actions.Key
Concepts:
1. Agent: The decision-making entity that interacts with the
environment.
2. Environment: The external world that responds to the agent's
actions.
3. Reward: Feedback received by the agent for its actions, guiding
its learning process.