-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgorithm.txt
67 lines (61 loc) · 2.42 KB
/
algorithm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#logistic_regression
Step 1 : Start
Step 2 : Include required libraries(mlbench, ggplot)
Step 3 : Create diabetes dataset for training
Step 4 : Create logistic regression model
Step 5 : Print summary
Step 6 : Create dataset for predicting diabetes
Step 7 : Predict probability of diabetes
Step 8 : print 'pos' if probability is greater than 0.5 else print 'neg'
Step 9 : Stop
#linear regression
Step 1 : Start
Step 2 : Include required libraries(ggplot)
Step 3 : Create linear regression model using mtcars dataset
Step 4 : Print summary
Step 5 : Plot linear regression model using ggplot
Step 6 : Stop
#Descriptive Statistics
Step 1 : Start
Step 2 : Create 2 data samples
Step 3 : Select entire data to be evaluated
Step 4 : Select Data from Menu bar
Step 5 : From the drop down menu select Statistics -> Descriptive Statistics
Step 6 : Enter result cell
Step 7 : Choose column in Grouped by
Step 8 : Click ok
Step 9 : Stop
#Linear regression in Calc
Step 1 : Start
Step 2 : Enter data sample
Step 3 : Select entire data sample
Step 4 : Select insert from Menu bar and Click on chart
Step 5 : Choose XY (Scatter) as chart type
Step 6 : Select points only
Step 7 : Click Next-> Next-> Next
Step 8 : In chart elements give Title and axis labels
Step 9 : Click Finish
Step 10 : Select a point on the appeared scatter plot
Step 11 : Select insert from Menu bar and Click on Trend line
Step 12 : Select Type and choose linear as regression type
Step 13 : Check Show Equation and click ok
Step 14 : Using the Equation Predict Avg Expense
Step 15 : Stop
#Histogram in Calc
Step 1 : Start
Step 2 : Enter data sample
Step 3 : Calculate min and max of sample data using min() & max()
Step 4 : Choose lower bound of min value as starting value of bin, Choose Upper bound of max value
as ending value of bin
Step 5 : Select all cells next to bin values to calculate frequency
Step 6 : Calculate frequency using the Equation “=Frequency(Data;class)” (Where data is the sample
data and class is bin values)
Step 7 : After entering equation click Shift+Ctrl+Enter to execute
Step 8 : Select Entire bin and Frequency(Including Labels)
Step 9 : Select insert from Menu bar and Click on chart
Step 10 : Choose Column as chart type and click next
Step 11 : Check Data series in columns, First row as label and First column as label
Step 12 : Click next->next
Step 13 : In chart elements give Title and axis labels
Step 14 : Click Finish
Step 15 : Stop