Skip to content

Instantly share code, notes, and snippets.

View caspercasanova's full-sized avatar

Nicholas Lopez caspercasanova

View GitHub Profile

Prompt 1

  1. Describe the distribution of San Antonio’s income data, as depicted in the histogram.
    Be sure to attach the histogram image here. The following questions should guide your description (Shape, Center, Spread, Outliers): image

    The histogram is skewed to the right.

    • Peaks: How many peaks does the histogram have, and where are they located?

There are 4 peaks.

Prompt 1: The Monty Hall Problem

Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say door 1, and the host, who knows what’s behind the doors, opens another door, say door 3, which has a goat. He then says, "Do you want to pick door number 2 or stick with door number 1?"

1. What is your immediate instinct?

Is it to your advantage to switch your choice or stick with it? Discuss/explain why.

I saw in a movie that you should always change your choice. The reasoning is that you start with a $\frac{1}{3}$ chance of picking the right door, but when the host selects a door and gives you an answer, the other door's chance of being the car increases to $\frac{2}{3}$ . My immediate instinct would say that when the door is opened that the chances of being correct are 50%-50%, but in reality its 33.3%-66.6%.

2. Simulation

Assume you’re on t

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

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?

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

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

image image

1.

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


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

@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:
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.