Comparing the Stock Performance of Apple and Microsoft You will compare the stock price performance of Apple (AAPL) and Microsoft (MSFT) over the year from January 1, 2023, to December 31, 2023, to determine if there's a statistically significant difference in their average daily stock prices and return. This allows us to test if there’s a significant difference in their stock prices and return over the entire year. Hypothesis: Null Hypothesis (H₀): There is no significant difference between the average daily stock returns of Apple and Microsoft over the year. Alternative Hypothesis (): There is a significant difference between the average daily stock returns of Apple and Microsoft over the year. Set the Null and Alternative Hypothesis mathematically   Collect Stock Data using “STOCKHISTORY” function: Apple’s stock prices (AAPL): =STOCKHISTORY("AAPL", "2023/01/01", "2023/12/31",0,2,0,1) This will give you Apple’s daily closing stock prices from January 1, 2023, to December 31, 2023. Microsoft’s stock prices (MSFT): =STOCKHISTORY("MSFT", "2023/01/01", "2023/12/31",0,2,0,1) This will give you Microsoft’s daily closing stock prices for the same period.   Calculate the Average Stock Prices and Average Daily Return: You can now calculate the average stock prices and daily return for both companies over the selected 12-month period. Calculate the average stock price of Apple:  Calculate the average stock price of Microsoft:  Calculate the average daily return of Apple:  Calculate the average daily return of Microsoft:    Set the Significance Level: Choose a significance level (α = 0.05), meaning you accept a 5% chance of making a Type I error (rejecting the null hypothesis when it is true). Run a t-Test to Compare the Stock Prices: Now, perform a t-Test in Excel to compare the average stock return prices of the two companies.  Interpret the Results: The T.TEST function will return a p-value: If the p-value ≤ 0.05, you reject the null hypothesis and conclude that there is a significant difference between the average stock prices of Apple and Microsoft. If the p-value > 0.05, you fail to reject the null hypothesis, meaning there is no statistically significant difference between their stock prices. Analyzing the Results: p-value from T.TEST:  Decision based on hypothesis testing:  Would you reject or fail to reject the null hypothesis?  Interpretation:   Is there a significant difference in the average stock prices and returns of Apple and Microsoft over the last year?   Attach the Excel Output Here:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Comparing the Stock Performance of Apple and Microsoft

You will compare the stock price performance of Apple (AAPL) and Microsoft (MSFT) over the year from January 1, 2023, to December 31, 2023, to determine if there's a statistically significant difference in their average daily stock prices and return. This allows us to test if there’s a significant difference in their stock prices and return over the entire year.

  1. Hypothesis:

Null Hypothesis (H): There is no significant difference between the average daily stock returns of Apple and Microsoft over the year.

Alternative Hypothesis (): There is a significant difference between the average daily stock returns of Apple and Microsoft over the year.

  • Set the Null and Alternative Hypothesis mathematically

 

  1. Collect Stock Data using “STOCKHISTORY” function:

Apple’s stock prices (AAPL):

=STOCKHISTORY("AAPL", "2023/01/01", "2023/12/31",0,2,0,1)

This will give you Apple’s daily closing stock prices from January 1, 2023, to December 31, 2023.

Microsoft’s stock prices (MSFT):

=STOCKHISTORY("MSFT", "2023/01/01", "2023/12/31",0,2,0,1)

This will give you Microsoft’s daily closing stock prices for the same period.

 

  1. Calculate the Average Stock Prices and Average Daily Return: You can now calculate the average stock prices and daily return for both companies over the selected 12-month period.
  • Calculate the average stock price of Apple: 
  • Calculate the average stock price of Microsoft: 
  • Calculate the average daily return of Apple: 
  • Calculate the average daily return of Microsoft: 

 

Set the Significance Level: Choose a significance level (α = 0.05), meaning you accept a 5% chance of making a Type I error (rejecting the null hypothesis when it is true).

Run a t-Test to Compare the Stock Prices: Now, perform a t-Test in Excel to compare the average stock return prices of the two companies. 

Interpret the Results: The T.TEST function will return a p-value:

  • If the p-value ≤ 0.05, you reject the null hypothesis and conclude that there is a significant difference between the average stock prices of Apple and Microsoft.
  • If the p-value > 0.05, you fail to reject the null hypothesis, meaning there is no statistically significant difference between their stock prices.

Analyzing the Results:

  • p-value from T.TEST: 

Decision based on hypothesis testing: 

  • Would you reject or fail to reject the null hypothesis? 

Interpretation:  

  • Is there a significant difference in the average stock prices and returns of Apple and Microsoft over the last year?

 

Attach the Excel Output Here:

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Intangible cost
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education