This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 13.68 | 781.65 | |
|---|---|---|
| 12.49 | 722.25 | |
| 13.04 | 721.65 | |
| 18.26 | 1367.97 | |
| 15.67 | 988.95 | |
| 17.96 | 1267.92 | |
| 6.92 | 295.66 | |
| 6.96 | 355.72 | |
| 16.93 | 1210.87 | |
| 17.64 | 1360.34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from random import randint | |
| def random_door(): | |
| return randint(1, 3) | |
| trial_count = 10000 | |
| stay_wins = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application | |
| import javafx.beans.property.SimpleStringProperty | |
| import javafx.collections.FXCollections | |
| import javafx.collections.ObservableList | |
| import javafx.scene.control.TextField | |
| import tornadofx.* | |
| import java.time.LocalDate | |
| import java.time.format.DateTimeFormatter | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.distribution.NormalDistribution | |
| import org.nield.kotlinstatistics.randomFirst | |
| import kotlin.math.exp | |
| import kotlin.math.ln | |
| // See graph | |
| // https://www.desmos.com/calculator/6cb10atg3l | |
| // Helpful Resources: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.distribution.NormalDistribution | |
| import kotlin.math.pow | |
| // Desmos graph: https://www.desmos.com/calculator/pb4ewmqdvy | |
| val points = sequenceOf( | |
| 1.4,1.3, | |
| 3.1,2.3, | |
| 3.6,2.4, | |
| 1.7,1.5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.ojalgo.random.Normal | |
| import scientifik.kmath.linear.MatrixContext | |
| import scientifik.kmath.linear.VirtualMatrix | |
| import scientifik.kmath.structures.Matrix | |
| import java.net.URL | |
| import kotlin.math.pow | |
| fun main() { | |
| val points = URL("https://tinyurl.com/y58sesrr") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.concurrent.ThreadLocalRandom | |
| import kotlin.math.exp | |
| import kotlin.math.ln | |
| import kotlin.math.pow | |
| fun main() { | |
| val observations = doubleArrayOf( | |
| 1.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun main() { | |
| val testCode = """ | |
| x = 3 | |
| print(x) | |
| """ | |
| val program = compile(testCode) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import plotly.express as px | |
| iris = px.data.iris() | |
| fig = px.scatter_3d(iris, x='sepal_length', y='sepal_width', z='petal_width', | |
| color='petal_length', symbol='species') | |
| fig.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import List | |
| class Point: | |
| def __init__(self, x: int, y: bool): | |
| self.x = x | |
| self.y = y | |
| points: List[Point] = [ |