Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ node_modules/*
*.log
*.out
*.pdf
*.fdb_latexmk
*.fls
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ fastTR:

pdf:
make pdfDLT
make openDLT
open:
make openDLT


pdf-authors:
pdflatex $(authors).tex

ss:
./parse_latex_structure.sh $(fName).tex
Binary file removed figures/heat-map.jpg
Binary file not shown.
Binary file removed figures/price-vs-distance-paris.png
Binary file not shown.
22 changes: 16 additions & 6 deletions includes/macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@
\fbox{\bfseries\sffamily\scriptsize#1}
{\sf\small$\blacktriangleright$\textit{#2}$\blacktriangleleft$}
}
\newcommand{\ap}[1]{\nnbb{\textcolor{blue}{Ant}}{\textcolor{blue}{#1}\xspace}}
\newcommand{\Oracle}[0]{Gas Oracle\xspace}
\newcommand{\Oracles}[0]{Gas Oracles\xspace}
\newcommand{\miro}[0]{Mir{\'{o}}\xspace}
\newcommand{\gr}{graphical representation\xspace}
\newcommand{\M}{Miró\xspace}
\newcommand{\todo}[1]{\nnbb{\textcolor{blue}{ToDo}}{\textcolor{blue}{#1}\xspace}\\}

% Define a custom color scheme
\definecolor{codebackground}{rgb}{0.75,0.99,0.99} % Light gray background
Expand All @@ -67,3 +62,18 @@
tabsize=4, % Tab width
language=Python % Specify Python as the language
}

\lstdefinestyle{clean}{
backgroundcolor=\color{gray!5},
basicstyle=\ttfamily\small,
frame=single,
rulecolor=\color{gray!50},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue!70!black}\bfseries,
commentstyle=\color{gray!70}\itshape,
stringstyle=\color{teal!60!black},
breaklines=true,
showstringspaces=false,
captionpos=b
}
193 changes: 0 additions & 193 deletions main.fdb_latexmk

This file was deleted.

430 changes: 0 additions & 430 deletions main.fls

This file was deleted.

Binary file removed main.synctex.gz
Binary file not shown.
169 changes: 44 additions & 125 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,135 +14,68 @@
% https://easychair.org/cfp/DLT-2022
% \title{A comparison between \\Libra/Diem and other Blockchains}
% \title{Comparative Study on Libra, Ethereum and Solana Blockchain}
\title{A Study on \dots}
\title{Your Paper Title Here \dots}

\author{
\IEEEauthorblockN{Giuseppe Antonio Pierro}
\IEEEauthorblockA{
\textit{Dep. of Mathematics and Computer Science} \\
\textit{University of Cagliari}\\
Cagliari, Italy\\
antonio.pierro@gmail.com
giuseppea.pierro@unica.it
}
}
\maketitle

% The Libra Blockchain, 2020-05-26.pdf

%================ ABSTRACT ================
\begin{abstract}
% TODO the abstract should be shorter
This research paper aims to analyze the Airbnb dataset, focusing on various factors that influence prices of listings.
The dataset encompasses key features such as price, room type, person capacity, host characteristics, cleanliness rating, and geographical attributes.
The study poses the research question: "What are the factors that influence the price and location of Airbnb listings?"
The author postulates that the pricing is significantly influenced by the distance from the center.

\todo{It should summarize the whole paper concisely while highlighting novelty and results.}
\lipsum[1]
\end{abstract}

%================ KEYWORDS ================
\begin{IEEEkeywords}
Airbnb, location price, geographical attribute
\todo{List 3–5 keywords describing your work (e.g., deep learning, forecasting, metaheuristics, healthcare analytics).}
\end{IEEEkeywords}

%:================================
%================ INTRODUCTION ================
\section{Introduction}
The rise of Airbnb~\cite{andreu2020airbnb} has transformed the hospitality industry, allowing individuals to rent accommodations.
Understanding the determinants of pricing and location is crucial for both hosts and guests.
This paper explores the dataset to uncover insights into the factors shaping Airbnb prices and locations.

\lipsum[2-3]

\lipsum[3-4]

\lipsum[5-6]

\section{Dataset Description}
The Airbnb dataset consists of several columns, including price, room type, person capacity, host characteristics, cleanliness rating, and geographical attributes \cite{bathwal2024flightprice}.
These variables provide a comprehensive view of the listings and their characteristics.

The mean, the median, minimum (min), the 25th, 50th, and 75th percentiles and maximum (max) are calculated for each variable shown in the table.

\begin{table*}[!htp]
\centering
\caption{Generated by Spread-LaTeX}\label{tab:spread_latex}
\resizebox{\textwidth}{!}{%
\begin{tabular}{p{0.2\textwidth}p{0.8\textwidth}}
\toprule
\textbf{Name} & \textbf{Description} \\
\midrule
realSum & Represents the total price or sum associated with the Airbnb listing. \\
room\_type & Indicates the type of room, such as "Entire home/apt" or "Private room." \\
room\_shared & Binary indicator (True/False) if the room is shared. \\
room\_private & Binary indicator (True/False) if the room is private. \\
person\_capacity & Specifies the maximum number of people the accommodation can host. \\
host\_is\_superhost & Binary indicator (True/False) if the host is recognized as a superhost. \\
multi & Binary indicator (True/False) if the listing is part of a multi-listing. \\
biz & Binary indicator (True/False) if the listing is associated with a business. \\
cleanliness\_rating & Represents the cleanliness rating of the accommodation. \\
guest\_satisfaction\_overall & Represents the overall guest satisfaction rating. \\
bedrooms & Specifies the number of bedrooms in the accommodation. \\
dist & Represents the distance to a certain location or point of interest. \\
metro\_dist & Represents the distance to a metro or subway station. \\
attr\_index & Represents an attraction index, possibly related to nearby attractions. \\
attr\_index\_norm & Normalized version of the attraction index. \\
rest\_index & Represents a restaurant index, possibly related to nearby restaurants. \\
rest\_index\_norm & Normalized version of the restaurant index. \\
lng & Represents the longitude coordinate of the accommodation. \\
lat & Represents the latitude coordinate of the accommodation. \\
\bottomrule
\end{tabular}%
}
\end{table*}

\subsection{Brief motivation and context}
\todo{Explain why this topic matters and what real-world or theoretical problem motivates your work.}
\lipsum[1]




\lipsum[2-3]

\section{Research Questions}
The primary research question addressed in this study is: "What are the factors that influence the price and location of Airbnb listings?"
This overarching question will guide the exploration of various aspects within the dataset.

\lipsum[2]

This study aims to explore the patterns and relationships within the Los Angeles Airbnb dataset. Specifically, it seeks to address the following research questions:
\subsection{Main contributions}
\todo{List 2–4 clear, concise bullet points summarizing what this paper contributes.}
\begin{itemize}
\item \textbf{RQ\_1}: What patterns exist in the data regarding property types, pricing, and availability across different neighborhoods in Los Angeles?
\item \textbf{RQ\_2}: How do key variables such as price and property location interact to influence occupancy rates?
\item \textbf{RQ\_3}: What factors most significantly impact customer ratings and reviews, and how do they correlate with host behavior or property characteristics?
\item \todo{First contribution}
\item \todo{Second contribution}
\end{itemize}
\lipsum[1]

\lipsum[3]

\section{Research Hypotheses}
Based on initial observations, a hypothesis is proposed that the distance from the city center significantly influences Airbnb pricing.
It is hypothesized that listings closer to the center command higher prices due to factors such as proximity to attractions, events, and better infrastructure.

\begin{itemize}
\item \textbf{RH\_1\_0}: There are no significant patterns in the data regarding property types, pricing, and availability across different neighborhoods in Los Angeles.
\item \textbf{RH\_1\_A}: Significant patterns exist in the data regarding property types, pricing, and availability across different neighborhoods in Los Angeles.
%================ RELATED WORK ================
\section{Related Work and Background}
\todo{Summarize relevant prior studies and approaches. Highlight what they achieve and where they fall short. Emphasize how your method differs or improves upon them.}

\item \textbf{RH\_2\_0}: There is no significant interaction between key variables such as price and property location in influencing occupancy rates.
\item \textbf{RH\_2\_A}: Key variables such as price and property location significantly interact to influence occupancy rates.
%================ DATASET + METHODOLOGY ================
\section{Dataset and Methodology}

\item \textbf{RH\_3\_0}: Factors such as customer ratings and reviews are not significantly correlated with host behavior or property characteristics.
\item \textbf{RH\_3\_A}: Factors such as customer ratings and reviews are significantly correlated with host behavior or property characteristics.
\end{itemize}
\subsection{Dataset description}
\todo{Describe the dataset(s): source, size, variables, preprocessing steps, and any relevant ethical aspects.}
\lipsum[1]

\lipsum[2-3]

\section{Results}
\lipsum[2-3]
Table~\ref{tab:df-statitistics} shows the summary statiticst of Airbnb dataset.
\begin{figure}[ht]
\centering
\includegraphics[width=\columnwidth]{figures/price-vs-distance-paris.png}
\caption{Box plot representing the price based on the distance from the metro for the city of Paris}
\label{fig:box-plot-paris}
\end{figure}
\subsection{Experimental setup}
\todo{Describe tools, frameworks, model parameters, and evaluation metrics used in your experiments.}
\lipsum[1]

%================ RESULTS AND DISCUSSION ================
\section{Results and Discussion}

\subsection{Quantitative results}
\todo{Present main results (tables, figures). Include accuracy, error, or performance metrics.}
Figure \ref{fig:fig2} \lipsum[1]

\begin{table}[ht]
Expand Down Expand Up @@ -173,41 +106,27 @@ \section{Results}
\end{figure*}
\lipsum[1]

Figure \ref{fig:heat-map} \lipsum[1]
\begin{figure}[ht]
\centering
\includegraphics[width=\columnwidth]{figures/heat-map.jpg}
\caption{Box plot representing the price based on the distance from the metro for the city of Paris}
\label{fig:heat-map}
\end{figure}

\section{Discussion}
The discussion section will delve into the findings related to the research questions and hypotheses.
It will explore the correlation between distance from the center and pricing, considering potential confounding variables.
Additionally, it will analyze how other variables such as room type, host superhost status, and cleanliness rating impact pricing and location.

\subsection{Comparison and interpretation}
\todo{Compare with baselines or state-of-the-art methods. Discuss why your approach performs better or differently.}
\lipsum[1]

\lipsum[2]

\lipsum[3-4]

\section{Conclusion}
In conclusion, this research contributes valuable insights into the factors influencing Airbnb prices and locations.
The analysis sheds light on the importance of geographic proximity to the center and other variables in determining listing prices.
These findings can benefit both hosts and guests in making informed decisions within the Airbnb marketplace.

This research provides a foundation for further exploration and understanding of the dynamic factors at play in the Airbnb ecosystem.

%================ CONCLUSION ================
\section{Conclusion and Future Work}
\todo{Summarize key findings and contributions. Suggest possible future extensions or applications. Keep it concise (5–6 sentences).}
\lipsum[1]


%================ Authors ================
\section{authors}
\subsection{Giuseppe Antonio Pierro}
Giuseppe Antonio Pierro obtained his Ph.D. in Physics from the University of Bari and CERN, Geneva~\cite{cern},
and his Ph.D. in Mathematics and Computer Science from the University of Cagliari and Inria, Lille.
Prior to that, \lipsum[1]
\subsection{Antonio Pierro}
\lipsum[1]

\section{Appendix}
%================ APPENDIX (OPTIONAL) ================
\appendix
\section{Supplementary Material}
\todo{Optional: include additional tables, Code, or proofs that support your main text.}

The analysis on the dataset was conducted using the Python programming language~\cite{rayhanrise, van1995python} and some of its libraries.
The Python libraries utilized include matplotlib~\cite{Hunter:2007}, pandas, and numpy.
Expand All @@ -216,7 +135,7 @@ \section{Appendix}

Listing \ref{mylist2} \dots.

\begin{lstlisting}[style=inferno, label={mylist2}, caption={Recursive Factorial Function}, linewidth=\columnwidth]
\begin{lstlisting}[style=clean, label={mylist2}, caption={Recursive Factorial Function}, linewidth=\columnwidth]
# This is a sample Python code
def greet(name):
"""Function to greet a user"""
Expand All @@ -231,7 +150,7 @@ \section{Appendix}


Listing \ref{mylist3} \lipsum[1]
\begin{lstlisting}[style=inferno , label={mylist3}, caption={Recursive Factorial Function}, linewidth=\columnwidth]
\begin{lstlisting}[style=clean , label={mylist3}, caption={Recursive Factorial Function}, linewidth=\columnwidth]
import kagglehub

# Download latest version
Expand Down
15 changes: 0 additions & 15 deletions package.json

This file was deleted.

54 changes: 54 additions & 0 deletions parse_latex_structure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

# Recursively parse a LaTeX file and all its \input{} dependencies for section structure
parse_file() {
local file="$1"
# Remove possible .tex extension for \input{} compatibility
local basefile="${file%.tex}"
# If file does not exist, try adding .tex
if [ ! -f "$file" ]; then
if [ -f "$basefile.tex" ]; then
file="$basefile.tex"
else
echo "File $file not found."
return
fi
fi
# Read file line by line
while IFS= read -r line; do
# If line is an \input{...}, recursively parse the included file
if [[ $line =~ \\input\{([^}]*)\} ]]; then
included_file="${BASH_REMATCH[1]}"
# Recursively parse the included file
parse_file "$included_file"
fi
# Print section, subsection, subsubsection lines for later processing
if [[ $line =~ \\section\{.*\} ]] || [[ $line =~ \\subsection\{.*\} ]] || [[ $line =~ \\subsubsection\{.*\} ]]; then
echo "$line"
fi
done < "$file"
}

# Check if a file is provided as an argument
if [ $# -eq 0 ]; then
echo "Usage: $0 <file.tex>"
exit 1
fi

# Start recursive parsing and pipe to awk for formatting
parse_file "$1" | awk '
{
if ($0 ~ /\\section\{/) {
title = substr($0, index($0, "{") + 1)
title = substr(title, 1, length(title) - 1)
printf "[Section] %s\n", title
} else if ($0 ~ /\\subsection\{/) {
title = substr($0, index($0, "{") + 1)
title = substr(title, 1, length(title) - 1)
printf " [Subsection] %s\n", title
} else if ($0 ~ /\\subsubsection\{/) {
title = substr($0, index($0, "{") + 1)
title = substr(title, 1, length(title) - 1)
printf " [Subsubsection] %s\n", title
}
}'
1 change: 0 additions & 1 deletion zip/Readme.md

This file was deleted.

Binary file removed zip/antonio-dbms-report.zip
Binary file not shown.