Skip to content

Instantly share code, notes, and snippets.

View caspercasanova's full-sized avatar

Nicholas Lopez caspercasanova

View GitHub Profile
@caspercasanova
caspercasanova / VIX Stretch Strategy (AKA FREE MONEY).md
Last active March 24, 2025 23:35
VIX Stretch Strategy (AKA FREE MONEY)
We couldn’t find that file to show.
@caspercasanova
caspercasanova / Nautilus_Install.md
Created March 7, 2025 01:32 — forked from faysou/Nautilus_Install.md
Install nautilus_trader dev env from scratch using uv only
add_to_zshrc() {
  local line_to_add="$1"
  if ! grep -q "$line_to_add" ~/.zshrc; then
    echo -e "\n$line_to_add" >> ~/.zshrc
  fi
}

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
def get_century_scale(current_number: float):
"""
Logic:
- For numbers with 1-digit: scale = 1 (e.g. 5)
- For numbers with 2-digits: scale = 10 (e.g. 50)
- For numbers with 3-digits: scale = 100 (e.g. 500)
- For numbers with 4-digits: scale = 100 (e.g. 5000)
- For numbers with 5-digits: scale = 1000 (e.g. 50,000)
- For numbers with 6-digits: scale = 10,000, and so forth.
@caspercasanova
caspercasanova / AI_NavigationAgent.gd
Last active November 27, 2024 19:41
Random Wander with Limbo AI
extends NavigationAgent3D
signal destination_reached
signal destination_unreachable
# Whether the navigation is active or not
var is_active: bool = false
func _ready() -> void:

The script essentially:

  • generates random towers in bounding box
  • sorts towers by centroid difference
  • connects towers with a curve
  • increases points on curve
  • instances sandbag meshes on curve
  • rotates sandbags to face outwards

Heres an image of my scenes and result

image image

1.

The explanatory variable is "Spaces from GO", and the response variable is "Cost".


Two Sample Inference and Interval

Commonly-White Names Commonly-Black Names Total
Called back 246 164 410
Not called back 2199 2281 4480
Total 2445 2445 4890

Questions:

  1. What is the general trend shown in the chart shown from the weather station at Punta Arenas? How does this support Crichton’s skepticism of global warming?

It shows that the mean tempurature has fallen since 1888 to 2004 which shows a data point validating his hypothesis.

  1. Fill in the chart and complete the blank below
Station 1951-2000 Temp (°C) 1901-1950 Temp (°C) Difference (°C) Cool Down or Heat Up

Topic: Flint Water Crisis

(Confidence Interval from One-sample Proportion)

  1. List at least 5 ways that you used your home’s water this week.
    • Laundry
    • Dishwater
    • Coffee
    • Sink
    • Sprinklers
  2. An important EPA regulation is the Lead and Copper Rule: No more than 10% of households can have prominent lead levels (defined as >15 parts per billion) in their water. Lead contamination can cause many health issues. Imagine your water failed this rule, and the issue wouldn’t be fixed for several years. Discuss how would your life change in some ways and the health risks that will impact you/your family?

1. Go through the data sets and organize them in a frequency/relative frequency table. Check that your table satisfies the conditions of a probability distribution. (Round to 3 decimals 0.xxx)

Data Set 1
Leading Digit Frequency Proportion Percent (%) Cumulative Freq
1 28 0.28 28 28
2 23 0.23 23 51
3 10 0.10 10 61