Optimisation and Regression Flashcards

1
Q

What are independent variables

A

Independent variables are input variables that can be freely changed or manipulated, e.g. age of a person

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are dependent variables

A

Dependent variables are output that cannot be changed freely without altering the inputs, e.g. temperature of a room after adjusting the thermostat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are categorical variables

A

A categorical variable is a characteristic that in not quantifiable, e.g. type of fruit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are nominal variables

A

A nominal variable is a categorical variable where there is no natural order or hierarchy, e.g. gender of person

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are ordinal variables

A

An ordinal variable is a categorical variable where there is a natural order or hierarchy, e.g. Education level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are numeric variables

A

A numeric variable is a characteristic that is quantifiable, e.g. Number of items sold

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are continuous variables

A

A continuous variable is a numeric variable that takes real values of infinite precision, e.g. Time taken to complete a task (in seconds)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are discrete variables

A

A discrete variable is a numeric variable that takes finite options, e.g. number of cars in a car park

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a function

A

A function defines the relationship between inputs and output(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is a function like a mathematical model

A

A function is like a mathematical model because it tells how the output(s) would vary given a change in inputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the definition of optimization

A

Optimization is the process of finding the best option or solution form a set of alternatives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the goal of optimization

A

The goal of optimization is to find a specific vector of input or independent variables that produce a desired output or dependent variable value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the input variables in optimization

A

The input variables in optimization are the independent variables, which can be free changed or manipulated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the dependent variable in optimization

A

The dependent variable in optimization is the output, which cannot be changed freely without altering the inputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the objective of optimization

A

The objective of optimization is to maximize or minimize a particular objective function, which is a mathematical expression that represents the relationship between the input and output variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some examples of optimization problems

A

Finding the most profitable investment portfolio given a set of assets and market conditions
Designing an aeroplane wing that minimizes drag and maximise lift
Determining the optimal production schedule for a manufacturing plant to minimize costs and maximise profits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are some common techniques used in optimization

A

Trial and Error
Geometric
Metaheuristics
Data-driven

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the trial and error approach

A

The trial and error approach involves trying different solutions and observing the outcome to find the best option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the geometric approach

A

The geometric approach involves generating new points using some form of geometric knowledge, such as rotating or reflecting a point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the calculus approach

A

The calculus approach involves evaluating the function and its derivatives to direct the search in the direction that minimises or maximises the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are metaheuristics

A

Metaheuristics are problem-solving techniques that draw inspiration from natural processes to find solutions. Examples include simulated annealing, genetic algorithms, and particle swarm optimisation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the data-driven approach

A

The data-driven approach involves using information gathered from previous solutions to improve search for the best option. This can include machine learning or statistical modelling to make predictions based on past data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

When should you use trial and error

A

When the problem is simple, and the number of possible solutions is limited. It is also appropriate when the cost of failure is low and the outcome of each trial can be easily observed

24
Q

When should you use geometric

A

When the problem involves finding an optimal geometric arrangement or position. It is also appropriate when the optimization problem can be formulated as a geometric optimization problem, such as finding the shortest distance between two points

25
When should you use calculus
When the optimization problem can be formulated as a mathematical function and the function and its derivatives can be easily evaluated. It is also appropriate when the optimization problem involves finding the maximum or minimum value of a continuous function
26
When should you use metaheuristics
When the optimization problem is complex and the search space is large and/or multi-dimensional. Metaheuristics can be used when the optimization problem is non-linear or when the function to be optimized is not known
27
When should you use data-driven
When there is a large amount of data available and patterns can be extracted from the data. It is also appropriate when the optimization problem is complex and the relationship between the input and output variables is not well-understood
28
Is finding the global optimum always feasible in optimization
No, finding the global optimum can be difficult or even impossible, especially when dealing with complex problems with a large number of variables and constraints
29
What is a local optimum
A local optimum is the best solution within a certain region of the search space
30
Is a local optimum always the best
No, a local optimum may not always be the best solution for the overall problem
31
How can local optima be found
Local optima can be found using various optimization algorithms, such as geometrics or metaheurestics
32
Why are we usually happy with a solution that is "good enough"
Finding the global is often too difficult, so we settle for a solution that is "good enough" to meet requirements of the problem
33
What is regression
Regression is the process of predicting a premise value for the output (or dependent) variable based on a value of the input (or independent) variable
34
What is linear regression
Linear regression is a type of regression where the relationship between the input variable(s) and the output variable is modelled as a straight line
35
What are the characteristics of a line in linear regression
A line in linear regression is straight with no bends, has no thickness, and extends to positive or negative infinity
36
What is the mathematical function for a line in linear regression
y = mx + c, where y is the output variable, x is the input variable, m is the slope of the line, and c is the y-intercept of the line
37
How is linear regression used for prediction
In linear regression, the input variable(s) are used to predict the output variable by finding the best-fitting line that minimizes the distance between predicted values and the actual values. Once the line is established, the value of the output variable can be predicted for any given value of the input variable
38
How do you generalise a linear equation for 1-D input space
y = f(x,m,c) = mx + c
39
How do you generalise a linear equation for 2-D input space
y = f(x0, x1, m0, m1, c) = m0x0 + m1x1 + c
40
How do you generalise a linear equation for N-D input space (Check notes)
y = f(x0, x1, ..., xn-1, m0, m1, ..., mn-1, c) = m0x0 + m1x1 + ... + mn-1xn-1 + c
41
What does the error or residual represent in a linear regression context
The error on residual represents the difference between the predicted value and the actual value of the dependent variable for a particular data point in linear regression
42
How do we calculate the error or residual for a single data point
To calculate the error or residual for a single data point, we subtract the predicted value from the actual value of the dependent value
43
Why do we square the error or residual in linear regression
We square the error or residual in linear regression to avoid cancellation of positive and negative errors and to emphasize larger errors, which helps in identifying and reducing them
44
What does a negative error or residual value indicate in linear regression
A negative error or residual value indicates that the predicted value is higher than the actual value of the dependent variable for a particular data point in linear regression
45
What is the error or residual value in the given example (check notes), where the estimated value is y = 1000 and the measured value is y = 1025
The error or residual value is e = 1025 - 1000 = 25, and the squared error or residual is e^2 = 625
46
What is the model estimate
The model estimate is the predicted value of the output variable based on the input variable(s)
47
What is the true measurement
The true measurement is the actual value of the output variable
48
General Error Function (for one point)
Check notes
49
General Error Function (for k points)
Check notes
50
General Error Function (for k points)
Check notes
51
What is a neuron
A neuron is the basic unit of a brain that works as an information messenger
52
How does a neuron work
A neuron receives electrical impulses and chemical signals through its axon and forwards them - if it is excited enough - to other neurons through its dendrites
53
What happens when neurons pass messages to each other
The simple message passing between neurons can lead to complex behaviours and functions
54
What is the role of axons and dendrites in neurons
Axons are responsible for transmitting electrical impulses and chemical signals away from the neuron's cell body, while dendrites receive impulses from other neurons and transmit them towards the neuron's cell body
55
How are neurons related to artificial neural networks
Artificial neural networks are inspired by the structure and function of biological neurons, and use mathematical models of neurons to perform tasks such as classification, prediction, and control
56
READ YOUR NOTES FOR IMAGES
NOW