Workshop 2, Stats for AI
1 General Directions for each workshop
You have to work on Google Colab for all your workshops. In Google Colab, you MUST LOGIN with your @tec.mx account and then create a google colab document for each workshop.
You must share each Colab document (workshop) with the following account:
- cdorante@tec.mx
You must give Edit privileges to these accounts.
Name your Notebook as “W2-StatsAI-YourFirstName-YourLastname”.
In your Workshop Notebook you have to respond to challenges/excercise. For each challenge, write down the directions before your solution.
- It is STRONGLY RECOMMENDED that you write your OWN NOTES as if this were your personal notebook to study for the EXAM. Your own workshop/notebook will be very helpful for your further study.
Once you finish your workshop, make sure that you RUN ALL CHUNKS.
You have to submit to Canvas the web link of your Google Colab workshop.
The material related to this workshop is covered in Chapters 4 and 5 of my ebook. You can find my ebook at:
2 CHALLENGE 1
Go to Chapter 4 and do the simulations starting in section 5.3.2. Follow what you get and try to understand the Central Limit Theorem with these simulations.
With your words, in 1-3 sentences, write what you learned from this excercise.
3 CHALLENGE 2
Collect real monthly data for Microsoft (MSFT) stock from Jan 2021 to July 2025.
You have to do the following:
Run a t-test to compare whether the mean return of MSFT is greater than zero.
To do a hypothesis test, we usually do the following steps:
DEFINE THE VARIABLE OF STUDY.
WRITE THE NULL AND THE ALTERNATIVE HYPOTHESIS.
CALCULATE THE STANDARD ERROR, WHICH IS THE STANDARD DEVIATION OF THE VARIABLE OF STUDY.
CALCULATE THE t-statistic (t-value). EXPLAIN/INTERPRET THE t-statistic.
CALCULATE THE 95% CONFIDENCE INTERVAL OF THE SAMPLE MEAN
WRITE YOUR CONCLUSION OF THE t-TEST