Publications by Patrick Ford

UK National Lottery.

01.12.2023

New code to predict possible winning combinations, code explaination below code chunk. library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggp...

1238 sym R (2651 sym/6 pcs)

UK National Lottery.

29.11.2023

Predicting Lottery Numbers Based on Observed Frequencies: Explanation: This R code aims to predict future lottery numbers by analysing the historical frequencies of winning numbers. The code loads lottery data, reshapes it for analysis, and calculates the observed frequencies of each winning number. Rather than adhering to a specific probability ...

2756 sym R (4398 sym/14 pcs) 1 img

UK National Lottery.

29.11.2023

Predicting Lottery Numbers Based on Observed Frequencies: Explanation: This R code aims to predict future lottery numbers by analysing the historical frequencies of winning numbers. The script loads lottery data, reshapes it for analysis, and calculates the observed frequencies of each winning number. Rather than adhering to a specific probabilit...

2759 sym R (4672 sym/15 pcs) 1 img

US Mega Millions Predictor

29.11.2023

10 Possible winning lines: The prediction system looks at the historical data to identify the winning numbers with the highest cumulative frequency. If there are ties or no historical data, it generates a random combination. This process is repeated for the specified number of predictions (n). The result is a list of predicted winning combinations....

1492 sym R (4521 sym/13 pcs)

US Mega Millions Predictor

28.11.2023

10 Possible winning lines: The prediction system looks at the historical data to identify the winning numbers with the highest cumulative frequency. If there are ties or no historical data, it generates a random combination. This process is repeated for the specified number of predictions (n). The result is a list of predicted winning combinations....

1496 sym R (6198 sym/17 pcs)

UK National Lottery

28.11.2023

Analysing UK Lottery Data and Making Predictions. This R code analyses historical UK lottery data to gain insights into the frequency of winning numbers over time. The code covers data loading, transformation, visualisation, and the generation of predictions based on cumulative frequencies. Data: 19/11/1994 to 25/11/2023. install.packages("tidyver...

1627 sym R (7263 sym/20 pcs) 2 img

UK National Lottery.

28.11.2023

Predicting Lottery Numbers Based on Observed Frequencies: Explanation: This R code aims to predict future lottery numbers by analysing the historical frequencies of winning numbers. The script loads lottery data, reshapes it for analysis, and calculates the observed frequencies of each winning number. Rather than adhering to a specific probabilit...

2500 sym R (4200 sym/14 pcs) 1 img

UK National Lottery.

28.11.2023

Analyzing UK Lottery Data and Making Predictions. This R script analyses historical UK lottery data to gain insights into the frequency of winning numbers over time. The code covers data loading, transformation, visualisation, and the generation of predictions based on cumulative frequencies. Data: 19/11/1994 to 25/11/2023. install.packages("tidyv...

1629 sym R (7258 sym/20 pcs) 2 img

UK National Lottery.

28.11.2023

Predicting Lottery Numbers Based on Observed Frequencies: Explanation: This R code aims to predict future lottery numbers by analysing the historical frequencies of winning numbers. The script loads lottery data, reshapes it for analysis, and calculates the observed frequencies of each winning number. Rather than adhering to a specific probabilit...

2502 sym R (4197 sym/14 pcs) 1 img

Prime Numbers

16.11.2023

Prime Number Generator, Print and Plot & save to csv file # Load the ggplot2 package for plotting library(ggplot2) # Function to check if a number is prime is_prime <- function(n) { if (n <= 1) { return(FALSE) } for (i in 2:sqrt(n)) { if (n %% i == 0) { return(FALSE) } } return(TRUE) } # Function to generate prime numb...

67 sym R (1656 sym/3 pcs) 1 img