Added some missing static files

This commit is contained in:
Brandon Rozek 2025-05-09 21:06:34 -04:00
parent 91be2d9667
commit 5097c69635
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567
38 changed files with 3000131 additions and 30 deletions

View file

@ -20,14 +20,14 @@ bridgy_syndication:
---
Looking at Aaron Parecki's [“Fun with QR Codes”](https://aaronparecki.com/articles/2015/10/05/1/fun-with-qr-codes) inspired me to play with QR Codes myself. Using the tool [QArt Coder](http://research.swtch.com/qr/draw) made by [Russ Cox](https://plus.google.com/116810148281701144465), I made a QR Code with my face in it!
![](https://brandonrozek.com/wp-content/uploads/2016/10/qrcode-large-1.png)
![](/files/images/blog/qrcode-large-1.png)
### Why QR Codes?
QR Codes aren't prevalent in the United States of America. In fact, they're often viewed by technologists as a [joke](http://picturesofpeoplescanningqrcodes.tumblr.com/). But as [Christina Xu](http://www.christinaxu.org/) points out on her Medium post [“Pictures of Chinese People Scanning QR Codes”](https://medium.com/chrysaora-weekly/pictures-of-chinese-people-scanning-qr-codes-a564047ec58f), it's not a joke everywhere. In fact, many people actually depend on this humble little QR code to get by in their day. Another story, my family and I go out to eat sometimes. Occasionally, we'll knock into a Heinz Ketchup bottle.
![Picture of Heinz ketch bottle with QR Code](https://brandonrozek.com/wp-content/uploads/2016/10/heinz-2-768x1024.jpg)
![Picture of Heinz ketch bottle with QR Code](/files/images/blog/heinz-2-768x1024.jpg)
Image by Azad Zahoory.

View file

@ -23,4 +23,4 @@ First go to File->Knit Document. If this is your first time, then it will instal
Once that is downloaded, it will let you choose between three different file formats (HTML, PDF, MS Word). For the purposes of blog posts, I like to output it in HTML so I can copy and paste the code. But for personal use, I like using PDFs
After you select the file format, hit compile, and voila! A nice neat compiled report is created for you. Here is a [pdf](https://brandonrozek.com/wp-content/uploads/2017/03/LifeExpectancy.pdf) example of the report I made.
After you select the file format, hit compile, and voila! A nice neat compiled report is created for you. Here is a [pdf](/files/reports/LifeExpectancy.pdf) example of the report I made.

View file

@ -41,7 +41,7 @@ grep -oE '[0-9]+' Random.csv > Random_corrected.csv
Do this with all three files and make sure to keep track of which is which.
Here are a copy of my files for [Firefox](https://brandonrozek.com/wp-content/uploads/2017/03/Firefox_corrected.csv), [Chrome](https://brandonrozek.com/wp-content/uploads/2017/03/Chrome_corrected-1.csv), and [IE11](https://brandonrozek.com/wp-content/uploads/2017/03/IE11_corrected.csv)
Here are a copy of my files for [Firefox](/data/browser-random/Firefox_corrected.csv), [Chrome](/data/browser-random/Chrome_corrected-1.csv), and [IE11](/data/browser-random/IE11_corrected.csv)
## Check Conditions
@ -70,19 +70,19 @@ ie11 = read.csv("~/IE11_corrected.csv", header = F)
hist(ie11$V1, main = "Distribution of Random Values for IE11", xlab = "Random Value")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/ie11hist.png)
![](/files/images/blog/ie11hist.png)
```R
hist(firefox$V1, main = "Distribution of Random Values for Firefox", xlab = "Random Value")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/firefoxhist.png)
![](/files/images/blog/firefoxhist.png)
```R
hist(chrome$V1, main = "Distribution of Random Values for Chrome", xlab = "Random Value")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/chromehist.png)
![](/files/images/blog/chromehist.png)
## Chi-Square Test
@ -134,4 +134,4 @@ As you can see in the test results below, we fail to reject the null hypothesis
## Conclusion
At a 5% significance level, we fail to obtain enough evidence to suggest that the distribution of random number is not uniform. This is a good thing since it shows us that our random number generators give all numbers an equal chance of being represented. We can use `Math.random()` with ease of mind.
At a 5% significance level, we fail to obtain enough evidence to suggest that the distribution of random number is not uniform. This is a good thing since it shows us that our random number generators give all numbers an equal chance of being represented. We can use `Math.random()` with ease of mind.

View file

@ -46,7 +46,7 @@ The formula for a circle centered at the origin with radius one is $$x^2 + y^2 =
Let us focus again on the first quadrent, and do a Monte Carlo simulation to find the area of the quarter-circle
![](https://brandonrozek.com/wp-content/uploads/2017/03/circlefilled.png)
![](/files/images/blog/circlefilled.png)
We can do this by what is called the dart board method. We generate a random x and y between 0 and 1. If it satisfies the inequality $$x^2 + y^2 \leq 1$$ then it counts as being inside the circle, if not then it lies outside the circle.

View file

@ -26,7 +26,7 @@ Buttons are created using the JButton component. The constructor takes the text
JButton stopBtn = new JButton("Stop");
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/stopbutton.png)
![](/files/images/blog/stopbutton.png)
You can also add images inside a button. To do that you need to get the image and make it into an icon. The following code grabs the image file “smallpanda.jpg” from the current working directory.
@ -51,7 +51,7 @@ this.add(stopBtn);
this.add(feedBtn);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/smallpandabutton.png)
![](/files/images/blog/smallpandabutton.png)
### Labels and Textfields
@ -71,7 +71,7 @@ One of the most common forms of input is a text field, usually distinguished wit
this.add(nameInput);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/labeltextfield.png)
![](/files/images/blog/labeltextfield.png)
### Checkboxes
@ -87,7 +87,7 @@ Checkboxes are commonly used when giving the possibility for multiple answers. S
this.add(rice);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/checkboxes.png)
![](/files/images/blog/checkboxes.png)
You can even replace the default look of the checkbox with an image. To do this, you need to make image icons for both when it's checked and when it's unchecked.
@ -105,8 +105,8 @@ checkbox.setSelectedIcon(checkedIcon);
this.add(checkbox);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/unchecked.png)
![](https://brandonrozek.com/wp-content/uploads/2017/06/checked.png)
![](/files/images/blog/unchecked.png)
![](/files/images/blog/checked.png)
### Text Areas
@ -123,7 +123,7 @@ By default, when the someone inputs more text than the size can hold, it will au
JScrollPane scrollPane = new JScrollPane(textarea);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/textarea.png)
![](/files/images/blog/textarea.png)
### Radio Buttons
@ -147,7 +147,7 @@ this.add(radio2);
this.add(radio3);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/radiobuttons.png)
![](/files/images/blog/radiobuttons.png)
### JList
@ -188,7 +188,7 @@ list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.add(sp);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/JList.png)
![](/files/images/blog/JList.png)
### JComboBox
@ -205,4 +205,4 @@ cb.addItem("Steak");
this.add(cb);
```
![](https://brandonrozek.com/wp-content/uploads/2017/06/JComboBox.png)
![](/files/images/blog/JComboBox.png)

View file

@ -8,7 +8,7 @@ guid: https://brandonrozek.com/2017/03/2052-revision-v1/
permalink: /2017/03/2052-revision-v1/
tags: ["Statistics"]
---
![](https://brandonrozek.com/wp-content/uploads/2017/03/LifeExpectancyBoxplot.png)
![](/files/images/blog/LifeExpectancyBoxplot.png)
## Do females live longer than males?
@ -27,7 +27,7 @@ HA: The average female life expectancy is higher than the average male life expe
Since the website gives us an overlook at all of the counties in the United States we want to take a small sample of that so we can perform statistics. Using the entire dataset will result in looking at population parameters which doesn't leave room for inference.
A random number was chosen to pick the state and then the county. This was done a total of 101 times. The CSV file is located [here](https://brandonrozek.com/wp-content/uploads/2017/03/LifeExpectancy.csv) for convenience.
A random number was chosen to pick the state and then the county. This was done a total of 101 times. The CSV file is located [here](/data/LifeExpectancy.csv) for convenience.
## R Programming
@ -90,7 +90,7 @@ The male life expectancy distribution appears to be unimodal and symmetric.
hist(maleExpectancy, main = "Male Life Expectancy", xlab = "Age")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/maleLifeExpectancyHist.png)
![](/files/images/blog/maleLifeExpectancyHist.png)
Same with the female life expectancy distribution
@ -98,7 +98,7 @@ Same with the female life expectancy distribution
hist(femaleExpectancy, main = "Female Life Expectancy", xlab = "Age")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/femaleLifeExpectancyHist.png)
![](/files/images/blog/femaleLifeExpectancyHist.png)
Looking at the boxplot, we can see that the IQR of the female life expectancy is higher than the one of the males. The hypothesis test will show us if this is of significant difference. On the male's side there are two outliers. This violates the Nearly Normal Condition so we must proceed with caution in our test.
@ -107,7 +107,7 @@ Looking at the boxplot, we can see that the IQR of the female life expectancy is
boxplot(maleExpectancy, femaleExpectancy, names = c("Male Life Expectancy", "Female Life Expectancy"), ylab = "Age")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/LifeExpectancyBoxplot.png)
![](/files/images/blog/LifeExpectancyBoxplot.png)
Since the nearly normal condition was not met, we do not meet the assumptions necessary to perform a t-test. However, since the condition was violated by an outlier, let us perform a t-test with the outlier and without the outlier and compare the results.
@ -175,7 +175,7 @@ Looking at the boxplot, there are no more outliers present
boxplot(maleExpectancy2, ylab = "Age", main = "Male Life Expectancy w/o Outliers")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/MLifeExpectBoxplotNoOutliers.png)
![](/files/images/blog/MLifeExpectBoxplotNoOutliers.png)
The histogram still appears to be unimodal and symmetric
@ -183,7 +183,7 @@ The histogram still appears to be unimodal and symmetric
hist(maleExpectancy2, xlab = "Age", main = "Male Life Expectancy w/o Outliers")
```
![](https://brandonrozek.com/wp-content/uploads/2017/03/MLifeExpectHistNoOutliers.png)
![](/files/images/blog/MLifeExpectHistNoOutliers.png)
Without the outliers present, the nearly normal condition is now met. We can perform the t-test.