Squiggle Hub

quinn

Updated
import "hub:berekuk/recursion" as recursion
/*
Describe your code here
*/
// Configuration
roadLength = 20
lightCoord = 10
maxCars = 50

// Probability of a car spawning at each time step for each light
Updated
import "hub:ozziegooen/helpers" as h

@name("Monthly Visits Data")
@doc("Number of visits, change over previous month, and change percentage for each month from November 2022 to May 2024")
monthlyVisitsData = {
  months: [
    "November 2022", "December 2022", "January 2023", "February 2023", "March 2023",
    "April 2023", "May 2023", "June 2023", "July 2023", "August 2023", "September 2023",
    "October 2023", "November 2023", "December 2023", "January 2024", "February 2024",
    "March 2024", "April 2024"
Updated
import "hub:ozziegooen/helpers" as h

@name("Monthly Visits Data")
@doc("Number of visits, change over previous month, and change percentage for each month from November 2022 to May 2024")
monthlyVisitsData = {
  months: [
    "November 2022", "December 2022", "January 2023", "February 2023", "March 2023",
    "April 2023", "May 2023", "June 2023", "July 2023", "August 2023", "September 2023",
    "October 2023", "November 2023", "December 2023", "January 2024", "February 2024",
    "March 2024", "April 2024", "May 2024"
Updated
/*
How many people will show up to taco wednesday zero? (01-31-2024) 
*/
attendanceForecast = { 
  going = 8
  maybe = 10

  goingAttrition = 0.6 to 0.77
  maybeAttrition = 0.12 to 0.53
Updated
/*
How many people will show up to taco wednesday zero? (01-31-2024) 
*/
attendanceForecast = { 
  going = 16
  maybe = 27

  goingAttrition = 0.7 to 0.85
  maybeAttrition = 0.17 to 0.55
Updated
/*
Describe your code here
*/

a = normal(2, 5)
2 variables
ยท
Updated
export some_record = { y: 1 to 4, z: 5 to 10 }

export some_dist = Dist.normal(5, some_record.y ^ 3)
Updated
/*
Describe your code here
*/
import "hub:quinn/import-test" as import_test

// make a function of sig Dict.keys(import_test) -> Dist (or whatever) 

my_file(sr, sd) = sd * sr.z + sr.y

Updated
/*
Describe your code here
*/

// early adopter company called "campusco", many employees work onsite. 

employees_at_campusco_campus = 50 to 200

campusco_employees_missing_3days_work_per_month_percentage = 0.01 to 0.02
Updated
/*
Relative value table of a give directly dollar against an agent foundations dollar against a prosaic alignment dollar
*/
agent_foundations = {
  chance_of_insight_per_year_per_researcher = 1e-7 to 1e-3

  yearly_cost_per_researcher = 3.5e5 to 1.7e6 // usd

  num_researchers = 10 to 100
Updated
/*
Describe your code here
*/

a = normal(2, 5)
Updated
/*
Describe your code here
*/

a = normal(2, 5)
Updated

weekName(n) = "benchday on week" + n
weekField(n) = { name: weekName(n), default: "0" }
weekFields = List.map(List.upTo(0, 8), weekField)

Calculator.make({
  fn: {|a, b| a + b },
  description: "90%CI for the free weights kit usage by me",
  fields: weekFields
})