SlideShare a Scribd company logo
Chapter 1 – Inferential Statistics
Section 8 - Statistics for Technicians
Presented By :
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
Agenda
 Define hypothesis testing
 Describe the steps in hypothesis testing
 Compare the possible errors in hypothesis
testing
 Demonstrate the use of hypothesis testing
to frame statistical tests
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
📊 Hypothesis Testing in Trading & Market Analysis
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
 Hypothesis testing is a mathematical tool for confirming a financial or business claim
or idea.
 Hypothesis testing is useful for investors trying to decide what to invest in and
whether the instrument is likely to provide a satisfactory return.
 Despite the existence of different methodologies of hypothesis testing, the same four
steps are used: define the hypothesis, set the criteria, calculate the statistic, and reach
a conclusion.
 This mathematical model, like most statistical tools and models, has limitations and is
prone to certain errors, necessitating investors also considering other models in
conjunction with this one
📊 Hypothesis Testing in Trading & Market Analysis
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
✅ Objective Decision-Making: Helps traders validate strategies using data instead of
intuition.
✅ Risk Management: Determines if a market pattern is statistically significant or
random noise.
✅ Backtesting Validation: Used to test the profitability of trading signals before live
execution.
✅ Market Efficiency: Helps detect mispricing opportunities in stocks, options, and
forex markets.
✅ Application in Quantitative Finance: Used for factor-based investing, arbitrage,
and risk models.
📊 Hypothesis Testing in Trading & Market Analysis
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
Concept Definition Trading Application
Null Hypothesis (H )
₀ No significant relationship exists
"A Moving Average Crossover does NOT
impact returns"
Alternative Hypothesis (H )
₁ A significant relationship exists
"A Moving Average Crossover DOES impact
returns"
P-Value
Probability of observing results under
H₀
p < 0.05 → Reject H (Statistically significant)
₀
Confidence Level Degree of certainty in results 95% or 99% is common in trading tests
Type I Error (False Positive) Incorrectly rejecting a true H₀ Believing a strategy works when it doesn’t
Type II Error (False Negative) Failing to reject a false H₀ Ignoring a profitable strategy
T-Test / Z-Test Compares means of datasets
Tests if a strategy's returns are different from
zero
Chi-Square Test
Measures categorical variable
relationships
Tests correlation between news events &
price jumps
Regression Analysis
Identifies relationships between
variables
Measures impact of interest rates on stock
returns
📊 Trading Strategy Using Hypothesis Testing
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
📌 Step 1: Define the Hypothesis
🔹 H₀ (Null Hypothesis): "The Moving Average Crossover strategy does not generate excess
returns."
🔹 H₁ (Alternative Hypothesis): "The Moving Average Crossover strategy generates excess
returns."
📌 Step 2: Collect Data
🔹 Historical stock prices for S&P 500 stocks over 10 years
🔹 Apply 50-day & 200-day Moving Average Crossover strategy
🔹 Record daily returns after crossover signals
📊 Trading Strategy Using Hypothesis Testing
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
📌 Step 3: Perform Hypothesis Testing
Use a T-Test to compare crossover returns vs. normal market returns.
Compute P-Value:
p < 0.05 → Reject H (Strategy is significant).
₀
p > 0.05 → Fail to reject H (No significant effect).
₀
📌 Step 4: Implement Trading Strategy Based on Results
If H is rejected
₀ → Use the crossover strategy in trading.
If H is not rejected
₀ → The strategy lacks edge, refine parameters or discard it.
📊 Conclusion: Why Hypothesis Testing Matters in Trading
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
📌 Conclusion: Why Hypothesis Testing Matters in Trading
✅ Eliminates Bias: Prevents traders from relying on intuition alone.
✅ Improves Strategy Development: Helps refine and optimize trading models.
✅ Reduces Risk: Avoids using strategies based on random patterns.
✅ Enhances Portfolio Performance: Ensures strategies have statistical
significance before deployment.
📊 Significance & Interpretation in Market Analysis
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
Significance & Interpretation in Market Analysis
📌 Fundamental Analysis: Test if earnings growth impacts stock prices significantly.
📌 Technical Analysis: Verify if chart patterns lead to consistent profits.
📌 Options Trading: Check if implied volatility changes predict price swings.
📌 Algo Trading: Validate algorithmic signals using statistical tests.
📌
📊 Case Study: Hypothesis Testing on a Trading Strategy
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
🔹 Hypothesis Setup
• H₀ (Null Hypothesis): The Moving Average Crossover strategy does not generate excess returns
(mean return = 0).
• H₁ (Alternative Hypothesis): The Moving Average Crossover strategy generates excess returns
(mean return ≠ 0).
🔹 Strategy:
• Buy Signal: When the 50-day Moving Average crosses above the 200-day Moving Average.
• Sell Signal: When the 50-day MA crosses below the 200-day MA.
• Holding Period: 10 trading days after the crossover signal.
• Dataset: Historical daily price data of S&P 500 or a specific stock (e.g., AAPL).
📌
📊 Case Study: Hypothesis Testing on a Trading Strategy
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
🔹 Steps for Hypothesis Testing
1. Collect Historical Data (Stock prices over several years).
2. Calculate Moving Averages (50-day & 200-day).
3. Identify Trade Signals (Buy/Sell based on crossovers).
4. Compute Returns (10-day returns after signals).
5. Conduct a T-Test (Compare returns vs. market returns).
6. Interpret Results (Check statistical significance).
📊 Errors in Hypothesis Testing (Type I vs. Type II Errors in Trading)
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
Type I Error (False Positive)
🔹 Definition: Rejecting a true null hypothesis (H₀), meaning we incorrectly
conclude that a strategy works when it does not.
🔹 Impact in Trading: A trader thinks a strategy is profitable based on
sample data, but in reality, it's just random noise.
🔹 Example:
• A trader tests a Moving Average Crossover strategy.
• Reality: The strategy does not consistently generate excess returns.
📊 Errors in Hypothesis Testing (Type I vs. Type II Errors in Trading)
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
• Mistake: The test incorrectly shows significance (p-value < 0.05), and the
trader starts using a bad strategy.
• Consequence: Leads to financial losses due to trading based on false signals.
🔹 How to Reduce It?
✅ Set a lower significance level (α = 0.01 instead of 0.05) for stricter testing.
✅ Use out-of-sample data to verify results.
✅ Perform multiple tests on different stocks and timeframes.
📊 Type II Error (False Negative)
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
🔹 Definition: Failing to reject a false null hypothesis (H₀), meaning we incorrectly
conclude that a strategy does not work when it actually does.
🔹 Impact in Trading: A trader ignores a profitable strategy because the test fails
to detect its significance.
🔹 Example:
• A trader tests a seasonal trading strategy (e.g., "Sell in May and Go Away").
• Reality: The strategy actually has an edge over the long term.
📊 Type II Error (False Negative)
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
• Mistake: The test fails to detect significance (p-value > 0.05) due to insufficient
sample size.
• Consequence: The trader misses a profitable opportunity.
🔹 How to Reduce It?
✅ Increase sample size (Use more historical data).
✅ Choose a higher confidence level (90% instead of 95%) to avoid missing
potential opportunities.
✅ Use Bayesian analysis to refine probability-based trading decisions.
📊 Comparison Table: Type I vs. Type II Errors in Trading
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
Error Type Definition Trading Impact Example How to Reduce It?
Type I Error (False
Positive)
Rejecting a true H₀
Believing a bad
strategy works
Using a random
price pattern as a
valid strategy
Lower α (e.g., 0.01),
Out-of-sample
testing
Type II Error (False
Negative)
Failing to reject a
false H₀
Ignoring a working
strategy
Dismissing a
profitable breakout
strategy
Increase sample
size, Bayesian
analysis
📌
📊 Case Study: Type I vs. Type II Errors in Trading
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
We will test a Breakout Trading Strategy on a stock (e.g., AAPL) and analyze the impact of
Type I and Type II errors in hypothesis testing.
Hypothesis Setup
• H₀ (Null Hypothesis): The breakout strategy does NOT generate excess returns.
• H₁ (Alternative Hypothesis): The breakout strategy generates excess returns.
Strategy Details
• Entry Condition: Buy when the stock price closes above its 20-day high.
• Exit Condition: Sell after 10 days.
• Dataset: Historical stock price data (AAPL).
📊 Expected Errors in Hypothesis Testing
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
D.webp
🔴 Type I Error (False Positive) - Trading a Bad Strategy
📌 Scenario: The test wrongly shows that breakouts generate profits when they actually don’t.
📌 Reason: Small sample size, random market movements, or data overfitting.
📌 Consequence: A trader wastes capital on an ineffective breakout system.
🔵 Type II Error (False Negative) - Ignoring a Good Strategy
📌 Scenario: The test fails to show statistical significance, so the trader ignores the strategy.
📌 Reason: The sample size is too small, or the chosen confidence level (p-value) is too strict.
📌 Consequence: A trader misses out on a profitable strategy.
Next Chapter 1 - Momentum And Indicator
Interpretation Part 1
Next Section 9 – Technical Indicators
Presented By :
This Content is Copyright Reserved Rights Copyright 2025@PTAIndia

More Related Content

PPTX
Section 12 - Chapter 2 - Applying Quantitative Techniques
PPTX
Section 12 - Chapter 1 - Introduction to Quantitative Methods
PDF
Section 1 – Chapter 1 – Alpha & Beta – Outperforming the benchmarks
DOCX
ECO 520 Final Project Investment Opportunity Analysis Guidelines .docx
DOCX
Saltanat CuadraFarah Mohammad RasheedSabrina NaqviGloria the.docx
PPTX
Testing for Success: How to Infuse Consistent Testing Into Your Fundraising P...
PPT
Idea buyer identifying startup ideas for business
PPT
Idea buyer - identifying startup ideas for business
Section 12 - Chapter 2 - Applying Quantitative Techniques
Section 12 - Chapter 1 - Introduction to Quantitative Methods
Section 1 – Chapter 1 – Alpha & Beta – Outperforming the benchmarks
ECO 520 Final Project Investment Opportunity Analysis Guidelines .docx
Saltanat CuadraFarah Mohammad RasheedSabrina NaqviGloria the.docx
Testing for Success: How to Infuse Consistent Testing Into Your Fundraising P...
Idea buyer identifying startup ideas for business
Idea buyer - identifying startup ideas for business

Similar to Section 8 – Chapter 1 – Inferential Statistics (20)

PPTX
Financial Modeling
PPT
The Competitive Intelligence Continuum - Taking Wisconsin to the World
PDF
The Age of Alignment Part II: Getting Strategy-Driven Performance Measurement...
PDF
Bulletproof Your Proposal Win Strategy
PPT
2008 Investment Symposium Zhang 3 24 08
PDF
Gitacloud SAP IBP for Demand Webinar April 5th 2018
PDF
From-Idea-to-Business-Plan-A-Practical-Guide.pdf
PPTX
Development and Economic Analysis for Projects
PPTX
Marketing Operations ROI: It`s Simpler and Way Harder Than You Think
PPTX
FINANCIAL FORECASTING.pptx
PDF
Machine learning for factor investing
PDF
1001205101
PPTX
Equity valuation application and process chapter1.pptx
PDF
Smart Beta 101
PPTX
Value versus momentum
PPTX
Channel analytics 20150318
PDF
Statistical Arbitrage
PDF
SPAIN: Essentials Madrid 2015. Success Room. ¿Cómo Salesforce usa Salesforce?
PPT
Types of risk
Financial Modeling
The Competitive Intelligence Continuum - Taking Wisconsin to the World
The Age of Alignment Part II: Getting Strategy-Driven Performance Measurement...
Bulletproof Your Proposal Win Strategy
2008 Investment Symposium Zhang 3 24 08
Gitacloud SAP IBP for Demand Webinar April 5th 2018
From-Idea-to-Business-Plan-A-Practical-Guide.pdf
Development and Economic Analysis for Projects
Marketing Operations ROI: It`s Simpler and Way Harder Than You Think
FINANCIAL FORECASTING.pptx
Machine learning for factor investing
1001205101
Equity valuation application and process chapter1.pptx
Smart Beta 101
Value versus momentum
Channel analytics 20150318
Statistical Arbitrage
SPAIN: Essentials Madrid 2015. Success Room. ¿Cómo Salesforce usa Salesforce?
Types of risk
Ad

More from Professional Traning Academy PTAIndia (20)

PPTX
Section 12 – Chapter 1 - Trading Systems
PPTX
Section 11 - Chapter 6 - Cycle Driven Market Approaches
PPTX
Section 11 - Chapter 5 - The Elliott Wave Principle - Part 2
PPTX
Section 11 - Chapter 4 - The Elliott Wave Principle - Part 1
PPTX
Section 11 - Chapter 3 - Analysis of Seasonal Cycles
PPTX
Section 11 - Chapter 2 - Applied Cycle Analysis
PPTX
Section 11 – Chapter 1 - Concepts in Cycle Theory
PPTX
Section 10 – Chapter 1 - Advanced Applications of Relative Strength
PPTX
Section 9 - Chapter 4 - Practical Applications of Bollinger Bands
PPTX
Section 9 - Chapter 3 - Volume Weighted Average Price
PPTX
Section 9 - Chapter 2 - Momentum and Indicator Interpretation - Part 2
PPTX
Section 9 – Chapter 1 - Momentum And Indicator Interpretation - Part 1
PPTX
Section 7 - Chapter 2 - Analyzing Sentiment in Derivatives Markets
PPTX
Section 7 – Chapter 1 - Analyzing Sentiment in the Stock Market
PPTX
Section 6 - Chapter 3 - Volatility Indexes and VIX Complex.pptx
PPTX
Section 6 - Chapter 2 - Volatility Risk Premium
PPTX
Section 6 – Chapter 1 - Extrapolating Price from Volatility
PPTX
Section 5 - Chapter 2 - Market Internals
PPTX
Section 5 - Chapter 1 - Price Trend & Volume Analysis
PPTX
Section 4 - Chapter 4 - Point-and-Figure Patterns and Analysis - Part II
Section 12 – Chapter 1 - Trading Systems
Section 11 - Chapter 6 - Cycle Driven Market Approaches
Section 11 - Chapter 5 - The Elliott Wave Principle - Part 2
Section 11 - Chapter 4 - The Elliott Wave Principle - Part 1
Section 11 - Chapter 3 - Analysis of Seasonal Cycles
Section 11 - Chapter 2 - Applied Cycle Analysis
Section 11 – Chapter 1 - Concepts in Cycle Theory
Section 10 – Chapter 1 - Advanced Applications of Relative Strength
Section 9 - Chapter 4 - Practical Applications of Bollinger Bands
Section 9 - Chapter 3 - Volume Weighted Average Price
Section 9 - Chapter 2 - Momentum and Indicator Interpretation - Part 2
Section 9 – Chapter 1 - Momentum And Indicator Interpretation - Part 1
Section 7 - Chapter 2 - Analyzing Sentiment in Derivatives Markets
Section 7 – Chapter 1 - Analyzing Sentiment in the Stock Market
Section 6 - Chapter 3 - Volatility Indexes and VIX Complex.pptx
Section 6 - Chapter 2 - Volatility Risk Premium
Section 6 – Chapter 1 - Extrapolating Price from Volatility
Section 5 - Chapter 2 - Market Internals
Section 5 - Chapter 1 - Price Trend & Volume Analysis
Section 4 - Chapter 4 - Point-and-Figure Patterns and Analysis - Part II
Ad

Recently uploaded (20)

PPTX
20th Century Theater, Methods, History.pptx
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
1_English_Language_Set_2.pdf probationary
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
IGGE1 Understanding the Self1234567891011
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Introduction to Building Materials
PDF
advance database management system book.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
20th Century Theater, Methods, History.pptx
Introduction to pro and eukaryotes and differences.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
My India Quiz Book_20210205121199924.pdf
1_English_Language_Set_2.pdf probationary
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
What if we spent less time fighting change, and more time building what’s rig...
IGGE1 Understanding the Self1234567891011
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
TNA_Presentation-1-Final(SAVE)) (1).pptx
Introduction to Building Materials
advance database management system book.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
LDMMIA Reiki Yoga Finals Review Spring Summer
202450812 BayCHI UCSC-SV 20250812 v17.pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx

Section 8 – Chapter 1 – Inferential Statistics

  • 1. Chapter 1 – Inferential Statistics Section 8 - Statistics for Technicians Presented By : This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
  • 2. Agenda  Define hypothesis testing  Describe the steps in hypothesis testing  Compare the possible errors in hypothesis testing  Demonstrate the use of hypothesis testing to frame statistical tests This Content is Copyright Reserved Rights Copyright 2025@PTAIndia
  • 3. 📊 Hypothesis Testing in Trading & Market Analysis This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp  Hypothesis testing is a mathematical tool for confirming a financial or business claim or idea.  Hypothesis testing is useful for investors trying to decide what to invest in and whether the instrument is likely to provide a satisfactory return.  Despite the existence of different methodologies of hypothesis testing, the same four steps are used: define the hypothesis, set the criteria, calculate the statistic, and reach a conclusion.  This mathematical model, like most statistical tools and models, has limitations and is prone to certain errors, necessitating investors also considering other models in conjunction with this one
  • 4. 📊 Hypothesis Testing in Trading & Market Analysis This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp ✅ Objective Decision-Making: Helps traders validate strategies using data instead of intuition. ✅ Risk Management: Determines if a market pattern is statistically significant or random noise. ✅ Backtesting Validation: Used to test the profitability of trading signals before live execution. ✅ Market Efficiency: Helps detect mispricing opportunities in stocks, options, and forex markets. ✅ Application in Quantitative Finance: Used for factor-based investing, arbitrage, and risk models.
  • 5. 📊 Hypothesis Testing in Trading & Market Analysis This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp Concept Definition Trading Application Null Hypothesis (H ) ₀ No significant relationship exists "A Moving Average Crossover does NOT impact returns" Alternative Hypothesis (H ) ₁ A significant relationship exists "A Moving Average Crossover DOES impact returns" P-Value Probability of observing results under H₀ p < 0.05 → Reject H (Statistically significant) ₀ Confidence Level Degree of certainty in results 95% or 99% is common in trading tests Type I Error (False Positive) Incorrectly rejecting a true H₀ Believing a strategy works when it doesn’t Type II Error (False Negative) Failing to reject a false H₀ Ignoring a profitable strategy T-Test / Z-Test Compares means of datasets Tests if a strategy's returns are different from zero Chi-Square Test Measures categorical variable relationships Tests correlation between news events & price jumps Regression Analysis Identifies relationships between variables Measures impact of interest rates on stock returns
  • 6. 📊 Trading Strategy Using Hypothesis Testing This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 📌 Step 1: Define the Hypothesis 🔹 H₀ (Null Hypothesis): "The Moving Average Crossover strategy does not generate excess returns." 🔹 H₁ (Alternative Hypothesis): "The Moving Average Crossover strategy generates excess returns." 📌 Step 2: Collect Data 🔹 Historical stock prices for S&P 500 stocks over 10 years 🔹 Apply 50-day & 200-day Moving Average Crossover strategy 🔹 Record daily returns after crossover signals
  • 7. 📊 Trading Strategy Using Hypothesis Testing This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 📌 Step 3: Perform Hypothesis Testing Use a T-Test to compare crossover returns vs. normal market returns. Compute P-Value: p < 0.05 → Reject H (Strategy is significant). ₀ p > 0.05 → Fail to reject H (No significant effect). ₀ 📌 Step 4: Implement Trading Strategy Based on Results If H is rejected ₀ → Use the crossover strategy in trading. If H is not rejected ₀ → The strategy lacks edge, refine parameters or discard it.
  • 8. 📊 Conclusion: Why Hypothesis Testing Matters in Trading This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 📌 Conclusion: Why Hypothesis Testing Matters in Trading ✅ Eliminates Bias: Prevents traders from relying on intuition alone. ✅ Improves Strategy Development: Helps refine and optimize trading models. ✅ Reduces Risk: Avoids using strategies based on random patterns. ✅ Enhances Portfolio Performance: Ensures strategies have statistical significance before deployment.
  • 9. 📊 Significance & Interpretation in Market Analysis This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp Significance & Interpretation in Market Analysis 📌 Fundamental Analysis: Test if earnings growth impacts stock prices significantly. 📌 Technical Analysis: Verify if chart patterns lead to consistent profits. 📌 Options Trading: Check if implied volatility changes predict price swings. 📌 Algo Trading: Validate algorithmic signals using statistical tests.
  • 10. 📌 📊 Case Study: Hypothesis Testing on a Trading Strategy This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 🔹 Hypothesis Setup • H₀ (Null Hypothesis): The Moving Average Crossover strategy does not generate excess returns (mean return = 0). • H₁ (Alternative Hypothesis): The Moving Average Crossover strategy generates excess returns (mean return ≠ 0). 🔹 Strategy: • Buy Signal: When the 50-day Moving Average crosses above the 200-day Moving Average. • Sell Signal: When the 50-day MA crosses below the 200-day MA. • Holding Period: 10 trading days after the crossover signal. • Dataset: Historical daily price data of S&P 500 or a specific stock (e.g., AAPL).
  • 11. 📌 📊 Case Study: Hypothesis Testing on a Trading Strategy This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 🔹 Steps for Hypothesis Testing 1. Collect Historical Data (Stock prices over several years). 2. Calculate Moving Averages (50-day & 200-day). 3. Identify Trade Signals (Buy/Sell based on crossovers). 4. Compute Returns (10-day returns after signals). 5. Conduct a T-Test (Compare returns vs. market returns). 6. Interpret Results (Check statistical significance).
  • 12. 📊 Errors in Hypothesis Testing (Type I vs. Type II Errors in Trading) This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp Type I Error (False Positive) 🔹 Definition: Rejecting a true null hypothesis (H₀), meaning we incorrectly conclude that a strategy works when it does not. 🔹 Impact in Trading: A trader thinks a strategy is profitable based on sample data, but in reality, it's just random noise. 🔹 Example: • A trader tests a Moving Average Crossover strategy. • Reality: The strategy does not consistently generate excess returns.
  • 13. 📊 Errors in Hypothesis Testing (Type I vs. Type II Errors in Trading) This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp • Mistake: The test incorrectly shows significance (p-value < 0.05), and the trader starts using a bad strategy. • Consequence: Leads to financial losses due to trading based on false signals. 🔹 How to Reduce It? ✅ Set a lower significance level (α = 0.01 instead of 0.05) for stricter testing. ✅ Use out-of-sample data to verify results. ✅ Perform multiple tests on different stocks and timeframes.
  • 14. 📊 Type II Error (False Negative) This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 🔹 Definition: Failing to reject a false null hypothesis (H₀), meaning we incorrectly conclude that a strategy does not work when it actually does. 🔹 Impact in Trading: A trader ignores a profitable strategy because the test fails to detect its significance. 🔹 Example: • A trader tests a seasonal trading strategy (e.g., "Sell in May and Go Away"). • Reality: The strategy actually has an edge over the long term.
  • 15. 📊 Type II Error (False Negative) This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp • Mistake: The test fails to detect significance (p-value > 0.05) due to insufficient sample size. • Consequence: The trader misses a profitable opportunity. 🔹 How to Reduce It? ✅ Increase sample size (Use more historical data). ✅ Choose a higher confidence level (90% instead of 95%) to avoid missing potential opportunities. ✅ Use Bayesian analysis to refine probability-based trading decisions.
  • 16. 📊 Comparison Table: Type I vs. Type II Errors in Trading This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp Error Type Definition Trading Impact Example How to Reduce It? Type I Error (False Positive) Rejecting a true H₀ Believing a bad strategy works Using a random price pattern as a valid strategy Lower α (e.g., 0.01), Out-of-sample testing Type II Error (False Negative) Failing to reject a false H₀ Ignoring a working strategy Dismissing a profitable breakout strategy Increase sample size, Bayesian analysis
  • 17. 📌 📊 Case Study: Type I vs. Type II Errors in Trading This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp We will test a Breakout Trading Strategy on a stock (e.g., AAPL) and analyze the impact of Type I and Type II errors in hypothesis testing. Hypothesis Setup • H₀ (Null Hypothesis): The breakout strategy does NOT generate excess returns. • H₁ (Alternative Hypothesis): The breakout strategy generates excess returns. Strategy Details • Entry Condition: Buy when the stock price closes above its 20-day high. • Exit Condition: Sell after 10 days. • Dataset: Historical stock price data (AAPL).
  • 18. 📊 Expected Errors in Hypothesis Testing This Content is Copyright Reserved Rights Copyright 2025@PTAIndia D.webp 🔴 Type I Error (False Positive) - Trading a Bad Strategy 📌 Scenario: The test wrongly shows that breakouts generate profits when they actually don’t. 📌 Reason: Small sample size, random market movements, or data overfitting. 📌 Consequence: A trader wastes capital on an ineffective breakout system. 🔵 Type II Error (False Negative) - Ignoring a Good Strategy 📌 Scenario: The test fails to show statistical significance, so the trader ignores the strategy. 📌 Reason: The sample size is too small, or the chosen confidence level (p-value) is too strict. 📌 Consequence: A trader misses out on a profitable strategy.
  • 19. Next Chapter 1 - Momentum And Indicator Interpretation Part 1 Next Section 9 – Technical Indicators Presented By : This Content is Copyright Reserved Rights Copyright 2025@PTAIndia