Regular Expressions: every developer's best friend and worst nightmare! Join Andrei Zmievski, PHP developer and author of the PHP Regex (PCRE) extension, on a journey that will take you from your first steps into the world of regular expressions to the mastery of this most useful of tools. A must for everyone who's ever wondered what /(?=\d+)bar/ means.
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 6: Normal Probability Distribution
6.1: The Standard Normal Distribution
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 6: Normal Probability Distribution
6.5: Assessing Normality
Regular Expressions: every developer's best friend and worst nightmare! Join Andrei Zmievski, PHP developer and author of the PHP Regex (PCRE) extension, on a journey that will take you from your first steps into the world of regular expressions to the mastery of this most useful of tools. A must for everyone who's ever wondered what /(?=\d+)bar/ means.
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 6: Normal Probability Distribution
6.1: The Standard Normal Distribution
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 6: Normal Probability Distribution
6.5: Assessing Normality
This presentation educates you about objectives of python with example syntax, OOP Terminology, Creating Classes, Creating Instance Objects, Accessing Attributes and Built-In Class Attributes.
Slides were formed by referring to the text Machine Learning by Tom M Mitchelle (Mc Graw Hill, Indian Edition) and by referring to Video tutorials on NPTEL
Short Notes on Automata Theory
Automata theory is the study of abstract machines and automata, as well as the computational problems that can be solved using them. It is a theory in theoretical computer science and discrete mathematics (a subject of study in both mathematics and computer science). The word automata (the plural of automaton) comes from the Greek word αὐτόματα, which means "self-making".
This presentation educates you about objectives of python with example syntax, OOP Terminology, Creating Classes, Creating Instance Objects, Accessing Attributes and Built-In Class Attributes.
Slides were formed by referring to the text Machine Learning by Tom M Mitchelle (Mc Graw Hill, Indian Edition) and by referring to Video tutorials on NPTEL
Short Notes on Automata Theory
Automata theory is the study of abstract machines and automata, as well as the computational problems that can be solved using them. It is a theory in theoretical computer science and discrete mathematics (a subject of study in both mathematics and computer science). The word automata (the plural of automaton) comes from the Greek word αὐτόματα, which means "self-making".
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Forklift Classes Overview by Intella PartsIntella Parts
Discover the different forklift classes and their specific applications. Learn how to choose the right forklift for your needs to ensure safety, efficiency, and compliance in your operations.
For more technical information, visit our website https://intellaparts.com
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
Maintaining high-quality standards in the production of TMT bars is crucial for ensuring structural integrity in construction. Addressing common defects through careful monitoring, standardized processes, and advanced technology can significantly improve the quality of TMT bars. Continuous training and adherence to quality control measures will also play a pivotal role in minimizing these defects.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Automobile Management System Project Report.pdfKamal Acharya
The proposed project is developed to manage the automobile in the automobile dealer company. The main module in this project is login, automobile management, customer management, sales, complaints and reports. The first module is the login. The automobile showroom owner should login to the project for usage. The username and password are verified and if it is correct, next form opens. If the username and password are not correct, it shows the error message.
When a customer search for a automobile, if the automobile is available, they will be taken to a page that shows the details of the automobile including automobile name, automobile ID, quantity, price etc. “Automobile Management System” is useful for maintaining automobiles, customers effectively and hence helps for establishing good relation between customer and automobile organization. It contains various customized modules for effectively maintaining automobiles and stock information accurately and safely.
When the automobile is sold to the customer, stock will be reduced automatically. When a new purchase is made, stock will be increased automatically. While selecting automobiles for sale, the proposed software will automatically check for total number of available stock of that particular item, if the total stock of that particular item is less than 5, software will notify the user to purchase the particular item.
Also when the user tries to sale items which are not in stock, the system will prompt the user that the stock is not enough. Customers of this system can search for a automobile; can purchase a automobile easily by selecting fast. On the other hand the stock of automobiles can be maintained perfectly by the automobile shop manager overcoming the drawbacks of existing system.
Event Management System Vb Net Project Report.pdfKamal Acharya
In present era, the scopes of information technology growing with a very fast .We do not see any are untouched from this industry. The scope of information technology has become wider includes: Business and industry. Household Business, Communication, Education, Entertainment, Science, Medicine, Engineering, Distance Learning, Weather Forecasting. Carrier Searching and so on.
My project named “Event Management System” is software that store and maintained all events coordinated in college. It also helpful to print related reports. My project will help to record the events coordinated by faculties with their Name, Event subject, date & details in an efficient & effective ways.
In my system we have to make a system by which a user can record all events coordinated by a particular faculty. In our proposed system some more featured are added which differs it from the existing system such as security.
3. The Normal Distribution:
as mathematical function
(pdf)
2
)
(
2
1
2
1
)
(
x
e
x
f
Note constants:
=3.14159
e=2.71828
This is a bell shaped
curve with different
centers and spreads
depending on and
4. The Normal PDF
1
2
1 2
)
(
2
1
dx
e
x
It’s a probability function, so no matter what the values
of and , must integrate to 1!
5. Normal distribution is defined
by its mean and standard dev.
E(X)= =
Var(X)=2 =
Standard Deviation(X)=
dx
e
x
x
2
)
(
2
1
2
1
2
)
(
2
1
2
)
2
1
(
2
dx
e
x
x
6. **The beauty of the normal curve:
No matter what and are, the area between - and
+ is about 68%; the area between -2 and +2 is
about 95%; and the area between -3 and +3 is
about 99.7%. Almost all values fall within 3 standard
deviations.
9. How good is rule for real data?
Check some example data:
The mean of the weight of the women = 127.8
The standard deviation (SD) = 15.5
10. 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0
0
5
1 0
1 5
2 0
2 5
P
e
r
c
e
n
t
P O U N D S
127.8 143.3
112.3
68% of 120 = .68x120 = ~ 82 runners
In fact, 79 runners fall within 1-SD (15.5 lbs) of the mean.
11. 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0
0
5
1 0
1 5
2 0
2 5
P
e
r
c
e
n
t
P O U N D S
127.8
96.8
95% of 120 = .95 x 120 = ~ 114 runners
In fact, 115 runners fall within 2-SD’s of the mean.
158.8
12. 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0
0
5
1 0
1 5
2 0
2 5
P
e
r
c
e
n
t
P O U N D S
127.8
81.3
99.7% of 120 = .997 x 120 = 119.6 runners
In fact, all 120 runners fall within 3-SD’s of the mean.
174.3
13. Example
Suppose SAT scores roughly follows a
normal distribution in the U.S. population of
college-bound students (with range
restricted to 200-800), and the average math
SAT is 500 with a standard deviation of 50,
then:
68% of students will have scores between 450
and 550
95% will be between 400 and 600
99.7% will be between 350 and 650
14. Example
BUT…
What if you wanted to know the math SAT
score corresponding to the 90th percentile
(=90% of students are lower)?
P(X≤Q) = .90
90
.
2
)
50
(
1
200
)
50
500
(
2
1 2
Q x
dx
e
Solve for Q?….Yikes!
15. The Standard Normal (Z):
“Universal Currency”
The formula for the standardized normal
probability density function is
2
2
)
(
2
1
)
1
0
(
2
1
2
1
2
)
1
(
1
)
(
Z
Z
e
e
Z
p
16. The Standard Normal Distribution (Z)
All normal distributions can be converted into
the standard normal curve by subtracting the
mean and dividing by the standard deviation:
X
Z
Somebody calculated all the integrals for the standard
normal and put them in a table! So we never have to
integrate!
Even better, computers now do all the integration.
17. Comparing X and Z units
Z
100
2.0
0
200 X ( = 100, = 50)
( = 0, = 1)
18. Example
For example: What’s the probability of getting a math SAT
score of 575 or less, =500 and =50?
5
.
1
50
500
575
Z
i.e., A score of 575 is 1.5 standard deviations above the mean
5
.
1
2
1
575
200
)
50
500
(
2
1 2
2
2
1
2
)
50
(
1
)
575
( dz
e
dx
e
X
P
Z
x
Yikes!
But to look up Z= 1.5 in standard normal chart (or enter
into SAS) no problem! = .9332
19. Practice problem
If birth weights in a population are
normally distributed with a mean of 109
oz and a standard deviation of 13 oz,
a. What is the chance of obtaining a birth
weight of 141 oz or heavier when
sampling birth records at random?
b. What is the chance of obtaining a birth
weight of 120 or lighter?
20. Answer
a. What is the chance of obtaining a birth
weight of 141 oz or heavier when
sampling birth records at random?
46
.
2
13
109
141
Z
From the chart or SAS Z of 2.46 corresponds to a right tail (greater
than) area of: P(Z≥2.46) = 1-(.9931)= .0069 or .69 %
21. Answer
b. What is the chance of obtaining a birth
weight of 120 or lighter?
From the chart or SAS Z of .85 corresponds to a left tail area of:
P(Z≤.85) = .8023= 80.23%
85
.
13
109
120
Z
22. Looking up probabilities in the
standard normal table
What is the area to the
left of Z=1.51 in a
standard normal curve?
Z=1.51
Z=1.51
Area is 93.45%
23. Normal probabilities in SAS
data _null_;
theArea=probnorm(1.5);
put theArea;
run;
0.9331927987
And if you wanted to go the other direction (i.e., from the area to the Z
score (called the so-called “Probit” function
data _null_;
theZValue=probit(.93);
put theZValue;
run;
1.4757910282
The “probnorm(Z)” function gives you
the probability from negative infinity to
Z (here 1.5) in a standard normal curve.
The “probit(p)” function gives you the
Z-value that corresponds to a left-tail
area of p (here .93) from a standard
normal curve. The probit function is also
known as the inverse standard normal
function.
24. Probit function: the inverse
(area)= Z: gives the Z-value that goes with the probability you want
For example, recall SAT math scores example. What’s the score that
corresponds to the 90th percentile?
In Table, find the Z-value that corresponds to area of .90 Z= 1.28
Or use SAS
data _null_;
theZValue=probit(.90);
put theZValue;
run;
1.2815515655
If Z=1.28, convert back to raw SAT score
1.28 =
X – 500 =1.28 (50)
X=1.28(50) + 500 = 564 (1.28 standard deviations above the mean!)
`
50
500
X
25. Are my data “normal”?
Not all continuous random variables are
normally distributed!!
It is important to evaluate how well the
data are approximated by a normal
distribution
26. Are my data normally
distributed?
1. Look at the histogram! Does it appear bell
shaped?
2. Compute descriptive summary measures—are
mean, median, and mode similar?
3. Do 2/3 of observations lie within 1 std dev of
the mean? Do 95% of observations lie within
2 std dev of the mean?
4. Look at a normal probability plot—is it
approximately linear?
5. Run tests of normality (such as Kolmogorov-
Smirnov). But, be cautious, highly influenced
by sample size!
27. Data from our class…
Median = 6
Mean = 7.1
Mode = 0
SD = 6.8
Range = 0 to 24
(= 3.5 )
28. Data from our class…
Median = 5
Mean = 5.4
Mode = none
SD = 1.8
Range = 2 to 9
(~ 4 )
29. Data from our class…
Median = 3
Mean = 3.4
Mode = 3
SD = 2.5
Range = 0 to 12
(~ 5 )
30. Data from our class…
Median = 7:00
Mean = 7:04
Mode = 7:00
SD = :55
Range = 5:30 to 9:00
(~4 )
31. Data from our class…
7.1 +/- 6.8 =
0.3 – 13.9
0.3 13.9
40. Data from our class…
7:04+/- 0:55 =
6:09 – 7:59
6:09 7:59
41. Data from our class…
7:04+/- 2*0:55
=
5:14 – 8:54
5:14
8:54
42. Data from our class…
7:04+/- 2*0:55
=
4:19 – 9:49
4:19
9:49
43. The Normal Probability Plot
Normal probability plot
Order the data.
Find corresponding standardized normal quantile
values:
Plot the observed data values against normal
quantile values.
Evaluate the plot for evidence of linearity.
area
tail
-
left
particular
a
to
s
correspond
that
value
Z
the
gives
which
function,
probit
the
is
where
)
1
n
i
(
quantile
th
i
48. Formal tests for normality
Results:
Coffee: Strong evidence of non-normality
(p<.01)
Writing love: Moderate evidence of non-
normality (p=.01)
Exercise: Weak to no evidence of non-
normality (p>.10)
Wakeup time: No evidence of non-normality
(p>.25)
49. Normal approximation to the
binomial
When you have a binomial distribution where n is
large and p is middle-of-the road (not too small, not
too big, closer to .5), then the binomial starts to look
like a normal distribution in fact, this doesn’t even
take a particularly large n
Recall: What is the probability of being a smoker among
a group of cases with lung cancer is .6, what’s the
probability that in a group of 8 cases you have less
than 2 smokers?
50. Normal approximation to the
binomial
When you have a binomial distribution where
n is large and p isn’t too small (rule of thumb:
mean>5), then the binomial starts to look like
a normal distribution
Recall: smoking example…
1 4 5
2 3 6 7 8
0
.27 Starting to have a normal
shape even with fairly small
n. You can imagine that if n
got larger, the bars would get
thinner and thinner and this
would look more and more
like a continuous function,
with a bell curve shape. Here
np=4.8.
51. Normal approximation to
binomial
1 4 5
2 3 6 7 8
0
.27
What is the probability of fewer than 2 smokers?
Normal approximation probability:
=4.8
=1.39
2
39
.
1
8
.
2
39
.
1
)
8
.
4
(
2
Z
Exact binomial probability (from before) = .00065 + .008 = .00865
P(Z<2)=.022
52. A little off, but in the right ballpark… we could also use the value
to the left of 1.5 (as we really wanted to know less than but not
including 2; called the “continuity correction”)…
37
.
2
39
.
1
3
.
3
39
.
1
)
8
.
4
(
5
.
1
Z
P(Z≤-2.37) =.0069
A fairly good approximation of
the exact probability, .00865.
53. Practice problem
1. You are performing a cohort study. If the probability
of developing disease in the exposed group is .25 for
the study duration, then if you sample (randomly)
500 exposed people, What’s the probability that at
most 120 people develop the disease?
55. Proportions…
The binomial distribution forms the basis of
statistics for proportions.
A proportion is just a binomial count divided
by n.
For example, if we sample 200 cases and find 60
smokers, X=60 but the observed proportion=.30.
Statistics for proportions are similar to
binomial counts, but differ by a factor of n.
56. Stats for proportions
For binomial:
)
1
(
)
1
(
2
p
np
p
np
np
x
x
x
For proportion:
n
p
p
n
p
p
n
p
np
p
p
p
p
)
1
(
)
1
(
)
1
(
ˆ
2
2
ˆ
ˆ
P-hat stands for “sample
proportion.”
Differs by
a factor of
n.
Differs
by a
factor
of n.
57. It all comes back to Z…
Statistics for proportions are based on a
normal distribution, because the
binomial can be approximated as
normal if np>5