R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

getwd()
## [1] "C:/Users/Francesco Innocenti/Desktop/Statistica Descrittiva in R"
setwd("C:/Users/Francesco Innocenti/Downloads")
getwd()
## [1] "C:/Users/Francesco Innocenti/Downloads"
dir()
##   [1] "05b-visual-calculations.zip"                                                                                                                                                             
##   [2] "1747381853934.jpeg"                                                                                                                                                                      
##   [3] "2025-01_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [4] "2025-03_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [5] "2025-04_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [6] "2025-05_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [7] "2025-06_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [8] "2025-07_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##   [9] "2025-08_FInnocenti_Timesheet_Estia.xlsx"                                                                                                                                                 
##  [10] "23+Mamma+non+ho+perso+l'ISS.zip"                                                                                                                                                         
##  [11] "45937d73-3f74-47aa-8f23-cc22885cb05e.webp"                                                                                                                                               
##  [12] "46456d6f-513c-4315-9227-1b67dbda1ba8.pdf"                                                                                                                                                
##  [13] "74225046 (1)(P455VV026 (2)).csv"                                                                                                                                                         
##  [14] "9791221706024.lcpl"                                                                                                                                                                      
##  [15] "Accommodation-booking-form-Resident-IAISS-20-26-september-2025-v2.pdf"                                                                                                                   
##  [16] "Accommodation booking form - Resident IAISS 20-26 september 2025 - v2.pdf"                                                                                                               
##  [17] "account-statement_2025-03-01_2025-08-23_it-it_542ea0.pdf"                                                                                                                                
##  [18] "Adventure Works DW 2020 M01.pbix"                                                                                                                                                        
##  [19] "ALTEN INTERVIEW P1.docx"                                                                                                                                                                 
##  [20] "ALTEN INTERVIEW P1.mp3"                                                                                                                                                                  
##  [21] "ALTEN INTERVIEW.docx"                                                                                                                                                                    
##  [22] "ALTEN INTERVIEW.m4a"                                                                                                                                                                     
##  [23] "archive"                                                                                                                                                                                 
##  [24] "Boarding-Pass-Montecatini-Roma-3268694183.pdf"                                                                                                                                           
##  [25] "book.PNG"                                                                                                                                                                                
##  [26] "books.csv"                                                                                                                                                                               
##  [27] "books.xlsx"                                                                                                                                                                              
##  [28] "Breaking Bad Dataset.csv"                                                                                                                                                                
##  [29] "Breaking Bad Dataset.xlsx"                                                                                                                                                               
##  [30] "Breaking Bad description - Wikipedia.txt"                                                                                                                                                
##  [31] "Breaking_Bad.jpg"                                                                                                                                                                        
##  [32] "Breaking_Bad_Logo.png"                                                                                                                                                                   
##  [33] "Calcolo delle Probabilità.pptx"                                                                                                                                                          
##  [34] "Candidatura per la posizione di Junior Data Analyst.docx"                                                                                                                                
##  [35] "Capture.PNG"                                                                                                                                                                             
##  [36] "Carta di circolazione SKODA2.pdf"                                                                                                                                                        
##  [37] "Certificato di Laurea.pdf"                                                                                                                                                               
##  [38] "Certificato di malattia telematico (PS).jpeg"                                                                                                                                            
##  [39] "certificato palestra.jpg"                                                                                                                                                                
##  [40] "Champions_League_2024_25.csv"                                                                                                                                                            
##  [41] "ChatGPT Image Aug 10, 2025, 05_38_17 PM.ico"                                                                                                                                             
##  [42] "ChatGPT Image Aug 10, 2025, 05_38_17 PM.png"                                                                                                                                             
##  [43] "cma5uicfj001aoderwefxtywo.zip"                                                                                                                                                           
##  [44] "cmexgfhbi0002exeshruihfxn"                                                                                                                                                               
##  [45] "cmexgfhbi0002exeshruihfxn.zip"                                                                                                                                                           
##  [46] "Codice Fiscale.pdf"                                                                                                                                                                      
##  [47] "DALL·E 2025-01-06 11.34.25 - A cartoon-style portrait of a man with curly hair, glasses, wearing a green sweater and a red and black collared shirt underneath. The background is s.webp"
##  [48] "DALL·E 2025-02-08 11.26.02 - A funny and vibrant soccer team crest inspired by Tuscany, Italy. The crest has a classic shield shape with golden edges, featuring a wild boar wearin.webp"
##  [49] "Dat Visualization in Tableau.docx"                                                                                                                                                       
##  [50] "desktop.ini"                                                                                                                                                                             
##  [51] "Dichiarazione d'Impegno - Italiano - 01.07.2024.pdf"                                                                                                                                     
##  [52] "Distribuzione_Frequenze_peso.csv"                                                                                                                                                        
##  [53] "Distribuzioni_Frequenza_in_R.docx"                                                                                                                                                       
##  [54] "download.png"                                                                                                                                                                            
##  [55] "dstribuzione_tonni.csv"                                                                                                                                                                  
##  [56] "Eempio.png"                                                                                                                                                                              
##  [57] "Eligo Italia - AI & Data.pdf"                                                                                                                                                            
##  [58] "Esempio.png"                                                                                                                                                                             
##  [59] "esercizio_–_crea_una_galleria_di_miniature.py"                                                                                                                                           
##  [60] "Esplorare_Dati_in_R.docx"                                                                                                                                                                
##  [61] "EY Interview.docx"                                                                                                                                                                       
##  [62] "farmaci.csv"                                                                                                                                                                             
##  [63] "file.cdv.xlsx"                                                                                                                                                                           
##  [64] "file.csv.xlsx"                                                                                                                                                                           
##  [65] "Francesco Innocenti_CV .pdf"                                                                                                                                                             
##  [66] "Francesco_Innocenti_CV.pdf"                                                                                                                                                              
##  [67] "francescoinno2311@gmail.com.pdf"                                                                                                                                                         
##  [68] "frequenze_BB.csv"                                                                                                                                                                        
##  [69] "Frequenze_cl.csv"                                                                                                                                                                        
##  [70] "geometry (1).py"                                                                                                                                                                         
##  [71] "geometry.py"                                                                                                                                                                             
##  [72] "Gianluca Scannavino _ LinkedIn.pdf"                                                                                                                                                      
##  [73] "Glossario_esteso_ipywidgets_onenote.docx"                                                                                                                                                
##  [74] "Glossario_ipywidgets_onenote.docx"                                                                                                                                                       
##  [75] "grafico.png"                                                                                                                                                                             
##  [76] "IAISS-2025-Schedule.pdf"                                                                                                                                                                 
##  [77] "IBM_logo.svg.png"                                                                                                                                                                        
##  [78] "Immagine 2025-06-12 222322.png"                                                                                                                                                          
##  [79] "Immagine 2025-06-21 165218.png"                                                                                                                                                          
##  [80] "Immagine 2025-08-08 012614.pdf"                                                                                                                                                          
##  [81] "Immagine 2025-08-08 012614.png"                                                                                                                                                          
##  [82] "Importare_Dati_in_R.docx"                                                                                                                                                                
##  [83] "Indici di Forma.pptx"                                                                                                                                                                    
##  [84] "Innocenti Francesco CV ENG.pdf"                                                                                                                                                          
##  [85] "Innocenti Francesco_CV_eng.docx"                                                                                                                                                         
##  [86] "invite (1).ics"                                                                                                                                                                          
##  [87] "invite.ics"                                                                                                                                                                              
##  [88] "iris.csv"                                                                                                                                                                                
##  [89] "La distribuzione Normale.pptx"                                                                                                                                                           
##  [90] "Liga_2023.xlsx"                                                                                                                                                                          
##  [91] "materiale-20250827T165355Z-1-001"                                                                                                                                                        
##  [92] "materiale-20250827T165355Z-1-001.zip"                                                                                                                                                    
##  [93] "Microsoft_365_Plans_Presentation.pptx"                                                                                                                                                   
##  [94] "Modulo assegnazione monitor - Francesco Innocenti_13022025 fi.pdf"                                                                                                                       
##  [95] "Modulo assegnazione monitor - Francesco Innocenti_13022025.docx"                                                                                                                         
##  [96] "Modulo assegnazione monitor - Francesco Innocenti_13022025.pdf"                                                                                                                          
##  [97] "my_snake.py"                                                                                                                                                                             
##  [98] "nascite e morti.csv"                                                                                                                                                                     
##  [99] "NBC_Superstore.png"                                                                                                                                                                      
## [100] "Netflix.png"                                                                                                                                                                             
## [101] "netflix_titles.csv"                                                                                                                                                                      
## [102] "netflix_titles.xlsx"                                                                                                                                                                     
## [103] "new_shirts1.csv"                                                                                                                                                                         
## [104] "Nico Marmi Fattura.pdf"                                                                                                                                                                  
## [105] "NNCFNC90S11G999A. FI.pdf"                                                                                                                                                                
## [106] "NNCFNC90S11G999A.pdf"                                                                                                                                                                    
## [107] "ordini.csv"                                                                                                                                                                              
## [108] "Paesi_membri.csv"                                                                                                                                                                        
## [109] "Piano Ferie_NomeCognome_2025.xlsx"                                                                                                                                                       
## [110] "poesie-20250427T140929Z-001.zip"                                                                                                                                                         
## [111] "Premier_League_2024.xlsx"                                                                                                                                                                
## [112] "Presentazione 1.docx"                                                                                                                                                                    
## [113] "Prezzo_Diamanti.csv"                                                                                                                                                                     
## [114] "prezzo_monolocali (1).csv"                                                                                                                                                               
## [115] "prezzo_monolocali.csv"                                                                                                                                                                   
## [116] "prezzo_monolocali_centro.csv"                                                                                                                                                            
## [117] "proai.png"                                                                                                                                                                               
## [118] "prodotti.csv"                                                                                                                                                                            
## [119] "ProfessionAI Borsa di Studio.docx"                                                                                                                                                       
## [120] "ProfessionAI Data Science.docx"                                                                                                                                                          
## [121] "professionai_datascience.pdf"                                                                                                                                                            
## [122] "progetto-finale-flowes.tar.gz"                                                                                                                                                           
## [123] "Progetto Statistica in R.docx"                                                                                                                                                           
## [124] "pROGETTO.drawio"                                                                                                                                                                         
## [125] "proverbi (1).txt"                                                                                                                                                                        
## [126] "proverbi (2).txt"                                                                                                                                                                        
## [127] "proverbi.docx"                                                                                                                                                                           
## [128] "proverbi.txt"                                                                                                                                                                            
## [129] "proverbi_filtrati (1).txt"                                                                                                                                                               
## [130] "proverbi_filtrati (2).txt"                                                                                                                                                               
## [131] "proverbi_filtrati (3).txt"                                                                                                                                                               
## [132] "proverbi_filtrati (4).txt"                                                                                                                                                               
## [133] "proverbi_filtrati (5).txt"                                                                                                                                                               
## [134] "proverbi_filtrati.docx"                                                                                                                                                                  
## [135] "proverbi_filtrati.txt"                                                                                                                                                                   
## [136] "proverbi_filtrati1 (1).txt"                                                                                                                                                              
## [137] "proverbi_filtrati1.txt"                                                                                                                                                                  
## [138] "python-3.13.3-amd64.exe"                                                                                                                                                                 
## [139] "R-4.5.1-win.exe"                                                                                                                                                                         
## [140] "raccolta_poesie (1).txt"                                                                                                                                                                 
## [141] "raccolta_poesie.txt"                                                                                                                                                                     
## [142] "raccolta_poesie_esempio.docx"                                                                                                                                                            
## [143] "Radial Bar chart values.txt"                                                                                                                                                             
## [144] "Real Estate Texas.csv"                                                                                                                                                                   
## [145] "Referto_Sensi.pdf"                                                                                                                                                                       
## [146] "Registrazione 2025-03-26 184655 (online-audio-converter.com).mp3"                                                                                                                        
## [147] "Registrazione 2025-06-20 190420.mp4"                                                                                                                                                     
## [148] "Ricevute di pagamento elevatore.pdf"                                                                                                                                                     
## [149] "Rosa_Inter_2024.xlsx"                                                                                                                                                                    
## [150] "Rosa_Inter_2024.xlxs"                                                                                                                                                                    
## [151] "RStudio-2025.05.1-513.exe"                                                                                                                                                               
## [152] "s-l1600 (3).webp"                                                                                                                                                                        
## [153] "sales.csv"                                                                                                                                                                               
## [154] "Sample - Superstore.xlsx"                                                                                                                                                                
## [155] "sample_-_superstore.xls"                                                                                                                                                                 
## [156] "script.py"                                                                                                                                                                               
## [157] "serie_a_2024_25.csv"                                                                                                                                                                     
## [158] "Service Manager AI&DATA Job Details _ EY.pdf"                                                                                                                                            
## [159] "session-buddy-export-2025-05-01-02-57-33.csv"                                                                                                                                            
## [160] "session-buddy-export-2025-05-01-02-58-40.py"                                                                                                                                             
## [161] "shirts (1).xlsx"                                                                                                                                                                         
## [162] "shirts (2).xlsx"                                                                                                                                                                         
## [163] "shirts (3).xlsx"                                                                                                                                                                         
## [164] "shirts.xlsx"                                                                                                                                                                             
## [165] "shirts_stats (1).json"                                                                                                                                                                   
## [166] "shirts_stats (2).json"                                                                                                                                                                   
## [167] "shirts_stats.json"                                                                                                                                                                       
## [168] "shirts1 (1).csv"                                                                                                                                                                         
## [169] "shirts1.csv"                                                                                                                                                                             
## [170] "shirts1.json"                                                                                                                                                                            
## [171] "slides-20250721T213850Z-1-001.zip"                                                                                                                                                       
## [172] "Software BioMarket.drawio.pdf"                                                                                                                                                           
## [173] "Software gestionale BioMarket.drawio"                                                                                                                                                    
## [174] "Software gestionale BioMarket.drawio.png"                                                                                                                                                
## [175] "sppese.csv"                                                                                                                                                                              
## [176] "statistica-descrittiva-per-datascience-2dbbed6efb63299deb7a5f707f54df44c80b3c4a"                                                                                                         
## [177] "statistica-descrittiva-per-datascience-2dbbed6efb63299deb7a5f707f54df44c80b3c4a.zip"                                                                                                     
## [178] "Studente.py"                                                                                                                                                                             
## [179] "studenti.csv"                                                                                                                                                                            
## [180] "Suddivisione_Classi_in_R.docx"                                                                                                                                                           
## [181] "superstore.xlsx"                                                                                                                                                                         
## [182] "TableauPublicDesktop-64bit-2025-2-0.exe"                                                                                                                                                 
## [183] "Tappa21-vtyrj (online-audio-converter.com).mp3"                                                                                                                                          
## [184] "Tappa21-vtyrj.mp4"                                                                                                                                                                       
## [185] "Test_Esame.pdf"                                                                                                                                                                          
## [186] "Ticket.pdf"                                                                                                                                                                              
## [187] "tonni.csv"                                                                                                                                                                               
## [188] "UK ETA.pdf"                                                                                                                                                                              
## [189] "untitled"                                                                                                                                                                                
## [190] "vendite.csv"                                                                                                                                                                             
## [191] "WhatsApp Image 2025-03-22 at 10.51.32.jpeg"                                                                                                                                              
## [192] "WhatsApp Image 2025-04-28 at 15.52.03.jpeg"                                                                                                                                              
## [193] "WhatsApp Image 2025-08-05 at 19.03.48.jpeg"                                                                                                                                              
## [194] "WhatsApp Unknown 2025-07-06 at 19.59.29.zip"                                                                                                                                             
## [195] "WIESE_Accommodation-booking-form-Resident-IAISS-20-26-september-2025-v2.pdf"                                                                                                             
## [196] "Workshop_ Creazione di un agente AI con Langflow.pptx (2) (1).pdf"
data<-read.csv("Real Estate Texas.csv")
head(data)
##       city year month sales volume median_price listings months_inventory
## 1 Beaumont 2010     1    83 14.162       163800     1533              9.5
## 2 Beaumont 2010     2   108 17.690       138200     1586             10.0
## 3 Beaumont 2010     3   182 28.701       122400     1689             10.6
## 4 Beaumont 2010     4   200 26.819       123200     1708             10.6
## 5 Beaumont 2010     5   202 28.833       123100     1771             10.9
## 6 Beaumont 2010     6   189 27.219       122800     1803             11.1