Skip to content

Commit 732952b

Browse files
committed
Cleanup and organization
1 parent d201cae commit 732952b

35 files changed

+207
-50
lines changed

content/applications/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# NumPy Applications
2+
3+
A collection of highlighting the use of NumPy for applications in science,
4+
engineering, and data analysis.

content/mooreslaw-tutorial.md renamed to content/applications/mooreslaw-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ kernelspec:
1212
---
1313

1414
# Determining Moore's Law with real data in NumPy
15-
![Scatter plot of MOS transistor count per microprocessor every two years as a demonstration of Moore's Law.](_static/01-mooreslaw-tutorial-intro.png)
15+
![Scatter plot of MOS transistor count per microprocessor every two years as a demonstration of Moore's Law.](../_static/01-mooreslaw-tutorial-intro.png)
1616

1717
_The number of transistors reported per a given chip plotted on a log scale in the y axis with the date of introduction on the linear scale x-axis. The blue data points are from a [transistor count table](https://en.wikipedia.org/wiki/Transistor_count#Microprocessors). The red line is an ordinary least squares prediction and the orange line is Moore's law._
1818

content/applications/mooreslaw_regression.csv

Lines changed: 186 additions & 0 deletions
Large diffs are not rendered by default.
8.83 KB
Binary file not shown.

content/tutorial-air-quality-analysis.md renamed to content/applications/tutorial-air-quality-analysis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kernelspec:
1414

1515
# Analyzing the impact of the lockdown on air quality in Delhi, India
1616

17-
![A grid showing the India Gate in smog above and clear air below](_static/11-delhi-aqi.jpg)
17+
![A grid showing the India Gate in smog above and clear air below](../_static/11-delhi-aqi.jpg)
1818

1919
## What you'll do
2020

@@ -124,7 +124,7 @@ We will calculate the AQI using [the method](https://app.cpcbccr.com/ccr_docs/FI
124124

125125
The Air Quality Index is calculated with the help of breakpoint ranges as shown in the chart below.
126126

127-
![Chart of the breakpoint ranges](_static/11-breakpoints.png)
127+
![Chart of the breakpoint ranges](../_static/11-breakpoints.png)
128128

129129

130130
Let's create two arrays to store the AQI ranges and breakpoints so that we can use them later for our calculations.
@@ -264,7 +264,7 @@ the data from 31st May, we truncated that during the moving averages step.
264264

265265
Hypothesis testing is a form of descriptive statistics used to help us make decisions with the data. From the calculated AQI data, we want to find out if there was a statistically significant difference in average AQI before and after the lockdown was imposed. We will use the left-tailed, [paired Student's t-test](https://en.wikipedia.org/wiki/Student%27s_t-test#Dependent_t-test_for_paired_samples) to compute two test statistics- the [`t statistic`](https://en.wikipedia.org/wiki/T-statistic) and the [`p value`](https://en.wikipedia.org/wiki/P-value). We will then compare these with the corresponding critical values to make a decision.
266266

267-
![Normal distribution plot showing area of rejection in one-tailed test (left tailed)](_static/11-one-tailed-test.svg)
267+
![Normal distribution plot showing area of rejection in one-tailed test (left tailed)](../_static/11-one-tailed-test.svg)
268268

269269
### Sampling
270270

@@ -343,7 +343,7 @@ print("The t value is {} and the p value is {}.".format(t_value, p_value))
343343

344344
We will now compare the calculated test statistics with the critical test statistics. The critical `t` value is calculated by looking up the [t-distribution table](https://en.wikipedia.org/wiki/Student%27s_t-distribution#Table_of_selected_values).
345345

346-
![Table of selected t values at different confidence levels. T value for 29 dof at 95% confidence level is highlighted with a yellow square](_static/11-t-table.png)
346+
![Table of selected t values at different confidence levels. T value for 29 dof at 95% confidence level is highlighted with a yellow square](../_static/11-t-table.png)
347347

348348
From the table above, the critical value is 1.699 for 29 `dof` at a confidence level of 95%. Since we are using the left tailed test, our critical value is -1.699. Clearly, the calculated `t` value is less than the critical value so we can safely reject the null hypothesis.
349349

content/tutorial-deep-learning-on-mnist.md renamed to content/applications/tutorial-deep-learning-on-mnist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The weighted sum is passed to the Non-linearity, then regularization and
2525
into the output layer. The output layer creates a prediction which can
2626
then be compared to existing data. The errors are used to calculate the
2727
loss function and update weights in the hidden layer and output
28-
layer.)](_static/tutorial-deep-learning-on-mnist.png)
28+
layer.)](../_static/tutorial-deep-learning-on-mnist.png)
2929

3030
This tutorial was adapted from the work by [Andrew Trask](https://github.com/iamtrask/Grokking-Deep-Learning) (with the author's permission).
3131

@@ -362,7 +362,7 @@ The weighted sum is passed to the Non-linearity, then regularization and
362362
into the output layer. The output layer creates a prediction which can
363363
then be compared to existing data. The errors are used to calculate the
364364
loss function and update weights in the hidden layer and output
365-
layer.)](_static/tutorial-deep-learning-on-mnist.png)
365+
layer.)](../_static/tutorial-deep-learning-on-mnist.png)
366366

367367
- _The input layer_:
368368

content/tutorial-static_equilibrium.md renamed to content/applications/tutorial-static_equilibrium.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ print("Reaction moment =", M)
207207
Let's say that instead of a force acting perpendicularly to the beam, a force was applied to our pole through a wire that was also attached to the ground.
208208
Given the tension in this cord, all you need to solve this problem are the physical locations of these objects.
209209

210-
![Image representing the problem](_static/static_eqbm-fig01.png)
210+
![Image representing the problem](../_static/static_eqbm-fig01.png)
211211

212212
In response to the forces acting upon the pole, the base generated reaction forces in the x and y directions, as well as a reaction moment.
213213

@@ -266,7 +266,7 @@ print("Reaction moment =", M)
266266
Let's look at a slightly more complicated model. In this example you will be observing a beam with two cables and an applied force. This time you need to find both the tension in the cords and the reaction forces of the beam. *(Source: [Vector Mechanics for Engineers: Statics](https://www.mheducation.com/highered/product/vector-mechanics-engineers-statics-beer-johnston/M9780077687304.html), Problem 4.106)*
267267

268268

269-
![image.png](_static/problem4.png)
269+
![image.png](../_static/problem4.png)
270270

271271
Define distance *a* as 3 meters
272272

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy